summaryrefslogtreecommitdiff
path: root/sbin/slaacd/slaacd.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-04-21 17:32:12 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-04-21 17:32:12 +0000
commit0ba65104e8c71a431eca60969a513e8ecfb7cb11 (patch)
tree8ebdb9557a7b7f6b41ff138abc0176a70b907220 /sbin/slaacd/slaacd.c
parent92420e9039ee8ae0d58c3f1c260cf3a24407ccae (diff)
Implement rule 5.5 of RFC 6724 (Default Address Selection for IPv6)
Rule 5.5: Prefer addresses in a prefix advertised by the next-hop. For this we have to track the (link-local) address of the advertising router per interface address and compare it with the selected route. Rule 5.5 is useful in multi-homing setups where we have more than one prefix and default router. We have to use the source address with the correct default gateway otherwise traffic is likely going to be dropped because of BCP 38. While here refactor in6_update_ifa() a bit to make the code clearer and consistently use (var & flag) instead of (var & flag) != 0. Patiently reviewed by & OK bluhm.
Diffstat (limited to 'sbin/slaacd/slaacd.c')
0 files changed, 0 insertions, 0 deletions