dhcpv6: split clientid to a separate struct
authorDavid Härdeman <[email protected]>
Fri, 10 Oct 2025 07:05:02 +0000 (09:05 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 26 Oct 2025 21:28:52 +0000 (22:28 +0100)
commita3bf57a39958665911da1c552d141f6fe4596409
tree16c0ea4576032f26c2242c346ffb5a87dd9614e9
parent14da3727ac0ce89df0d1a80f4e29d3a8b04b1d9c
dhcpv6: split clientid to a separate struct

Change handle_client_request() so that the serverid and clientid are in
separate structs. This makes it easy to support a variable-length server DUID
in the future.

Note that some of the variables (like "dest") have a bit misleading names now,
but that is something that I plan to address later, this patch was
intentionally kept as simple as possible.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/274
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c