dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

Enhancement - dhcpcd if_options bitfield has run out of space

Open ColinMcInnes opened this issue 10 months ago • 3 comments

Change how if-options does option lookup to get around the limitation of an unsigned long long bitfield.

Currently there is no more room to store runtime options, the field is maxed out at 64 options.

Create some if-options functions to do lookups and setting to make it easier to expand the bitfield behind the scenes (split up options field, or create and array or hash)

ColinMcInnes avatar Feb 20 '25 19:02 ColinMcInnes

Would it be better to have different option fields for intent? Some options only apply to DHCP6 for example. I've never really explored either approach but I do know we need to do something :)

rsmarples avatar Feb 21 '25 10:02 rsmarples

Would it be better to have different option fields for intent? Some options only apply to DHCP6 for example. I've never really explored either approach but I do know we need to do something :)

Depends on how many would be in each, and eventually it may fill up both. But definitely possible.

ColinMcInnes avatar Feb 21 '25 14:02 ColinMcInnes

We have freed up one bit! DHCPCD_DEBUG is available for re-use.

rsmarples avatar Feb 24 '25 16:02 rsmarples

No longer relevant since there are bits available for re-use.

ColinMcInnes avatar Nov 14 '25 23:11 ColinMcInnes