This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DHCP w/ Win2K server?



> From: Grant Edwards <grante@visi.com>
> On Fri, Nov 30, 2001 at 01:11:01PM +0000, Hugo Tyson wrote:
> > 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*.
> 
> Rats.  Mine does the same thing (even the 60 second lease
> time).  Why didn't I notice that?
> 
> > 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.
> 
> As of a few months ago, those two times get defaulted to
> reasonable values if they're not present (IIRC, the default
> value calculation will match the default values used by the
> Linux server: 1/2 and 3/4 of the lease time), but requesting
> them is probably the right thing to do.

Indeed, the code in eCos does just that if it doesn't get the values.  But
I'd rather see all the stuff I'm used to seeing, IYSWIM - hence the far
larger patch that I applied.
 
> The lack of a netmask, OTOH, is the show stopper for me. :(
> 
> Fixing it's easy enough, but it's another half-day's worth of
> electronic paper-shuffling to get the fix out.

Well, it wasn't quite as easy as "easy enough" ;-)  See the patch...

	- Huge


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]