Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DHCP support again





On Wed, 14 Jan 1998, Mike Hammer wrote:

> At 06:00 PM 1/14/98 +0200, you wrote:
> >
> >
> >On Wed, 14 Jan 1998, Vlad Lungu wrote:
> >But I have a little problem and I think is server-related.
> >If I'm using DHCP the normal way (i.e. no fixed address declared), the
> >server doesn't send the bootfile name even when explicitely requested.
> >I'm using  the ISC dhcpd server.

The problem is definitely in the server. Ted Lemon, the author of ISC
dhcpd, said that the bug was not fixed yet because doesn't make sense to
send the same bootfile to ALL the clients on a subnet, which is true.
Also, he said that my fix seems OK, so here it is:
--------------------cut here-----------------------------------------
--- dhcp-2.0b1pl0.orig/server/dhcp.c	Sat Dec  6 06:04:50 1997
+++ dhcp-2.0b1pl0/server/dhcp.c	Wed Jan 14 19:00:51 1998
@@ -607,6 +607,8 @@
 		state -> filename = user_class -> group -> filename;
 	else if (vendor_class  && vendor_class -> group -> filename)
 		state -> filename = vendor_class -> group -> filename;
+	if (lease -> subnet && lease -> subnet -> group -> filename)
+		state -> filename = lease -> subnet -> group -> filename;
 	else state -> filename = (char *)0;
 
 	/* Choose a server name as above. */
--------------------cut here-----------------------------------------

> Hi,
> I'm going to try your v0.0.2 with etherboot-3.2 with Windows NT DHCP
TNX alot.
> server.  I'll let you know of the status as soon as i get etherboot
> to work.  I've been using netboot-0.7.2 for sometime now and really
> not familiar with using etherboot, so standby.
Sorry, I'm using etherboot because 8k PROMs are easier to find :-)
> 
> Regards
> 
> 



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.