[patch] udhcpc RFC-compliance

Jonas Danielsson jonas.danielsson at axis.com
Fri Jan 18 06:45:39 PST 2008


Hello,

The udhcp client currently does not follow RFC2131
(http://www.ietf.org/rfc/rfc2131.txt) when sending DHCPDECLINE and 
DHCPRELEASE
messages.

The send_decline function in clientpacket.c includes the Parameter request
list in the packet, something the RFC tells us that we MUST NOT do.
Also send_decline neglects to include the Requested ip address and the
Server identifier.

The function init_packet, also in clientpacket.c, always includes the
Vendor class identifier even tho the RFC tells us that we MUST NOT include
it in DHCPDECLINE or DHCPRELEASE messages. And send_release currently 
includes
the Requested IP address something we MUST NOT do.

The attached patch fixes this. It's against the daily snapshop of 20080118.

Regards
Jonas Danielsson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-20080118-udhcp.patch
Type: text/x-patch
Size: 2698 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080118/1841a8fe/attachment-0001.bin 


More information about the busybox mailing list