[ECOS] DHCP w/ Win2K server?

Hugo Tyson hmt@redhat.com
Fri Nov 23 07:44:00 GMT 2001

Hugo Tyson <hmt@redhat.com> writes:
> "Dan Conti" <danc@iobjects.com> 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:
        DHCP time 51: 60
        DHCP time 58: 30
        DHCP time 59: 52
        subnet mask:
      domain server:
        domain name: hmt10.cambridge.redhat.com
       IP broadcast:

(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:
        DHCP time 51: 60

(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

More information about the Ecos-discuss mailing list