Skip to content

Enable RA with prefix option handling#906

Draft
sknat wants to merge 1 commit intomasterfrom
nsk-add-ra-pfx-handling
Draft

Enable RA with prefix option handling#906
sknat wants to merge 1 commit intomasterfrom
nsk-add-ra-pfx-handling

Conversation

@sknat
Copy link
Collaborator

@sknat sknat commented Feb 18, 2026

This patch enables and adds support for handling router advertisements carrying a prefix information option with the flag A unset i.e. the SLAAC disabled, but the L flag set i.e. on-link info.

When this is the case, we remove all addresses covered by the prefix received, select the one with the longest prefixlen and reinsert it updating its prefixlen to match the packet info.

This is useful when the interface address is set by dhcpv6 and default to /128 when the assigned prefix is actually /64

This patch enables and adds support for handling router advertisements
carrying a prefix information option with the flag A unset
i.e. the SLAAC disabled, but the L flag set i.e. on-link info.

When this is the case, we remove all addresses covered by the
prefix received, select the one with the longest prefixlen and
reinsert it updating its prefixlen to match the packet info.

This is useful when the interface address is set by dhcpv6 and
default to /128 when the assigned prefix is actually /64

Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
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.

1 participant