Page MenuHomeFreeBSD

nd6: Add router address and DHCPv6-PD flags in PIO headers
Needs ReviewPublic

Authored by pouria on Mar 31 2026, 9:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 18, 1:18 PM
Unknown Object (File)
Thu, Jun 4, 6:13 PM
Unknown Object (File)
Fri, May 29, 10:30 AM
Unknown Object (File)
May 23 2026, 8:09 AM
Unknown Object (File)
May 17 2026, 11:53 AM
Unknown Object (File)
May 16 2026, 11:41 PM
Unknown Object (File)
May 14 2026, 3:42 PM
Unknown Object (File)
May 11 2026, 2:11 AM

Details

Reviewers
bz
zlei
ae
markj
glebius
Group Reviewers
network
Summary

Make R-bit per RFC 6275 8.3 and P-bit per RFC 9762 7.1 in
Prefix Information option available to userland for future implementations.

RFC 9762 7.1: For each interface, the client MUST keep a list of every prefix
that was received from a PIO with the P flag set and currently has a non-zero
preferred lifetime.

RFC 6275 8.3: All IPv6 routers, *even those not serving as a home agent for Mobile IPv6*:
Each router SHOULD include at least one prefix with the Router
Address (R) bit set and with its full IP address in its Router Advertisements.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 71887
Build 68770: arc lint + arc unit

Event Timeline

@ae, that's where I said we would probably have conflict over the reserved flags.

I didn't include the sys/netinet6/nd6_rtr.c part yet, so there is no dependency with other ndp revisions.
But I want to push them at once. (ofc, if approved)

pouria retitled this revision from ndp: Add router address and DHCPv6-PD flags in PIO headers to nd6: Add router address and DHCPv6-PD flags in PIO headers.Apr 1 2026, 4:47 PM

Not an expert. Looks good code wise.