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.
I can add any supported needed for these fixes, just let me know.
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?
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