AW: [En-Nut-Discussion] DHCP fix for requesting Gateway and DNS
Oliver.Schulz at bong.de
Wed Jan 14 10:36:36 CET 2004
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
> 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.
More information about the En-Nut-Discussion