lookup_hashed_option()

Anshuman Singh Rawat asr245 at nyu.edu
Thu Jul 22 16:53:23 UTC 2004


Hi,
This is my first post on this list.
I have been trying to use dhcpinform to retrieve option 150 (private option) without success. However, if I send a dhcpdiscover message with that option included in request, the request is fulfilled by the server.
On tracing through the source, I found that for some reason, when a lookup is done on the hash functions (lookup_hashed_option()  to be precise), the 'hash[hashix]' is NULL when lookup is done from dhcpinform, and not NULL when lookup is done from ack_lease() (called from dhcpdiscover). I matched addresses of the parameters being passed in calls to lookup_hashed_option() from 2 different functions, and they are the same.
What am I missing here? Is there some place in source where the hash functions are being changed between the calls to dhcpdiscover() and dhcpinform() ?
Please help!!

Thanks.
-Anshuman



More information about the dhcp-hackers mailing list