Bug 4279

Summary: DHCP Client: has no broadcast bit support
Product: Busybox Reporter: Bill <bspitz>
Component: NetworkingAssignee: unassigned
Status: RESOLVED WONTFIX    
Severity: minor CC: busybox-cvs
Priority: P4    
Version: 1.15.x   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Host: Target:
Build:

Description Bill 2011-09-29 05:57:26 UTC
It would be nice to have a UDHCPC configurable that says, then using broadcast Tx packets, to also set the broadcast bit in the flags. This would not be set when doing unicast T1 renews, only when doing broadcast discovery, request, or renews.
Comment 1 Bill 2011-09-29 05:57:54 UTC
I can add any supported needed for these fixes, just let me know.
Comment 2 Denys Vlasenko 2011-11-18 01:14:17 UTC
We have this code in add_client_options() which handles -B option:

        /* Request broadcast replies if we have no IP addr */
        if ((option_mask32 & OPT_B) && packet->ciaddr == 0)
                packet->flags |= htons(BROADCAST_FLAG);

Do you need something more to be done?
Comment 3 Bill 2011-11-18 02:09:28 UTC
So the newer distribution has this option availble from command line, sorry
I somehow missed this in the release notes. Our busybox is 1.11.2, and i 
didn't see this code. We will have to update to be able to utilize this feature. I think this will be good solution, then we can extend a user configurable to allow selection of this option if needed. Thanks