From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hugo Tyson To: Subject: Re: [ECOS] DHCP w/ Win2K server? Date: Fri, 30 Nov 2001 05:12:00 -0000 Message-ID: References: X-SW-Source: 2001-11/msg00435.html Message-ID: <20011130051200.6SRKXJ7WBrSRIzVs3vzwnC4MSAhr-QC4wyWwjU3vdjg@z> Hugo Tyson writes: > "Dan Conti" writes: > > Unfortunately my eCos version is a bit outdated at this point, so if i > > gave you a patch it almost certainly wouldn't apply properly. > > OK, I'll get something together for the trunk. > > I believe it will be good to add that tag to all *FOUR* places DHCP sends a > packet, DHCPSTATE_REQUESTING, RENEWING, REBINDING and the initial broadcast > one in INIT. 'Course I'll test it, but only with LINUX dhcpd. Interesting. The LINUX dhcpd normally returns all these DHCP options: DHCP message: 5 ACK DHCP server id: 10.16.19.66 DHCP time 51: 60 DHCP time 58: 30 DHCP time 59: 52 subnet mask: 255.255.255.0 gateway: 10.16.19.66 domain server: 10.16.19.66 domain name: hmt10.cambridge.redhat.com IP broadcast: 10.16.19.255 (Yes, this lease is very very short, it's my testbench obviously) If I add: set_fixed_tag( xmit, TAG_DHCP_PARM_REQ_LIST, TAG_GATEWAY, 1 ); then all I get back are these: DHCP message: 5 ACK DHCP server id: 10.16.19.66 DHCP time 51: 60 gateway: 10.16.19.66 (whether I add it in INIT case or not) It seems obvious that what's happening is this: if the LINUX dhcpd sees no specific option requests, it uses a sensible and generous list; if it sees any specific request, it sends that option *only*. So for backward compatibility, I shall add specific requests for *all* those options that I am used to seeing - the absence of the "half time" and "nearly done" times is particularly distressing. - Huge