Skip to content

Commit

Permalink
🍒Supress SLAAC trigger
Browse files Browse the repository at this point in the history
Need to check for matching address rather than prefix because for a 6LN, the SLAAC prefix is never stored in the prefix list, since everything is considered off-link.
  • Loading branch information
xnumad committed Feb 10, 2024
1 parent e583f0d commit 32d1cd9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sys/net/gnrc/network_layer/ipv6/nib/nib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,14 @@ static uint32_t _handle_pio(gnrc_netif_t *netif, const icmpv6_hdr_t *icmpv6,

if (pio->flags & NDP_OPT_PI_FLAGS_A
&& pio->prefix_len == SLAAC_PREFIX_LENGTH
#if IS_ACTIVE(CONFIG_GNRC_IPV6_STABLE_PRIVACY)
&& (gnrc_netif_ipv6_addr_pfx_idx(netif, &pio->prefix, pio->prefix_len) < 0)
/* if the prefix is already known,
* do not cause generation of a potentially different
* stable privacy address (keyword DAD_Counter).
* refer to https://datatracker.ietf.org/doc/html/rfc4862#section-5.5.3 d)
* */
#endif
) {
_auto_configure_addr(netif, &pio->prefix, pio->prefix_len);
}
Expand Down

0 comments on commit 32d1cd9

Please sign in to comment.