Page MenuHomeFreeBSD

dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925
ClosedPublic

Authored by michaelo on Sep 23 2024, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 12:36 PM
Unknown Object (File)
Thu, Nov 7, 10:40 AM
Unknown Object (File)
Mon, Nov 4, 2:41 PM
Unknown Object (File)
Sun, Nov 3, 9:07 AM
Unknown Object (File)
Fri, Nov 1, 2:12 AM
Unknown Object (File)
Thu, Oct 31, 6:15 AM
Unknown Object (File)
Sat, Oct 26, 11:22 PM
Unknown Object (File)
Thu, Oct 24, 5:48 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jlduran requested changes to this revision.Sep 23 2024, 5:40 PM
jlduran added a subscriber: jlduran.
sbin/dhclient/dhcp.h
177

For me, either DHO_V_I_VENDOR_CLASS or DHO_VI_VENDOR_CLASS are fine, however, they must match the definition in the header file (same for DHO_V_I_VENDOR_OPTS and DHO_VI_VENDOR_OPTS).

This revision now requires changes to proceed.Sep 23 2024, 5:40 PM

Tested against a Kea server, with a simplified version of the following example:
https://github.com/isc-projects/kea/blob/master/doc/examples/kea4/vivso.json

NOTE: For my future reference/testing:

Basically, just add:

{
    "data": "1",
    "name": "vivso-suboptions",
    "always-send": true
}

The essential part is always-send, by default Kea will send this option only if requested.

This revision is now accepted and ready to land.Sep 24 2024, 12:52 PM

Thank you Jose and Tom.