AW: [En-Nut-Discussion] DHCP fix for requesting Gateway and DNS
harald.kipp at egnite.de
Wed Jan 14 13:58:27 CET 2004
May be after commiting, someone with a DHCP 3.0 server
can verify this patch? We do not have one installed.
At 10:36 14.01.2004 +0100, you wrote:
>I will take care of updating the CVS this evening...
> > -----Ursprüngliche Nachricht-----
> > Von: Damian Slee [mailto:damian at commtech.com.au]
> > Gesendet: Mittwoch, 14. Januar 2004 05:22
> > An: Ethernut User Chat (English)
> > Betreff: [En-Nut-Discussion] DHCP fix for requesting Gateway and DNS
> > Hi,
> > this fixes a problem I was having with ethernut and Win2k
> > DHCP Server, not getting the gateway setting. Hopefully this
> > change can be added to CVS.
> > I used Ethereal to look at what a Win2k client sent. In the
> > DHCP_DISCOVER and DHCP_REQUEST packets a Win2k client was
> > sending a parameter request option. In the parameter request
> > option, were the parameters Gateway(3), DNS(6) and net
> > mask(1), as well as many others like NetBIOS which we won't
> > worry about.
> > I added this parameter request option to ethernut's Discover
> > and Request functions.
> > So I have added to the header file dhcp.h
> > #define DHCPOPT_PARAMREQUEST 55
> > Add/Change to dhcpc.c, see attached. About 12lines of code added.
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
More information about the En-Nut-Discussion