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?



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: 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


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