OK, after a fair amount of hacking, the DHCPClient element is I think much 
improved.

Eddie


Eddie Kohler wrote:
> Nick,
> 
> Thanks so much for this patch!  I tried to apply it a long time ago but 
> confused myself; eventually based on the RFCs you are right.  There are a 
> couple other places in the code that followed the same pattern that you 
> didn't 
> mention, so I just changed them.  Hopefully I will test the result.
> 
> Eddie
> 
> 
> Nick wrote:
>> Hi,
>>
>> I think in package dhcp, in
>> DHCPClient::make_discovery
>> it should be
>>   memcpy(&(discover_msg->magic), DHCP_OPTIONS_COOKIE, 4);
>>   option_ptr = discover_msg->options;
>> instead of
>>   memcpy(discover_msg->options, DHCP_OPTIONS_COOKIE, 4);
>>   option_ptr = discover_msg->options + 4;
>>
>> and in DHCPClient::make_release
>>   memcpy((unsigned char*)&(release_msg->magic), DHCP_OPTIONS_COOKIE, 4);
>>   option_ptr = release_msg->options;
>> instead of
>>   memcpy(release_msg->options, DHCP_OPTIONS_COOKIE, 4);
>>   option_ptr = release_msg->options + 4;
>>
>> otherwise I think the packages are not created correctly and seem to be 
>> dropped.
>>
>> Nick
>> PS. Hopefully this is the correct place to send this... If not excuse 
>> me. Btw click is cool!
>> _______________________________________________
>> click mailing list
>> [email protected]
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to