Skip to content

Conversation

@pallotron
Copy link
Contributor

This commit introduces GetDUIDLL, a helper function that generates a DUID-LL (Link-Layer) using the MAC address from the first available, up, and non-loopback network interface.

This provides a simple and reliable way to generate a stable DUID for a DHCPv6 client or server.

Context and Testing

@pmazzini asked me to merge this here rather than in dhcplb.
This is part dhcplb's facebookincubator/dhcplb#54
See PR for testing.

@pallotron pallotron force-pushed the GetDUIDLL branch 2 times, most recently from 05ffd81 to 7454a8c Compare October 20, 2025 17:58
This commit introduces `GetDUIDLL`, a helper function that generates a DUID-LL (Link-Layer) using the MAC address from the first available, up, and non-loopback network interface.

This provides a simple and reliable way to generate a stable DUID for a DHCPv6 client or server.

Signed-off-by: Angelo Failla <[email protected]>
@pmazzini pmazzini merged commit 175e84f into insomniacslk:master Oct 20, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants