mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-23 16:47:05 +08:00
ipv6: adjust MLD membership on address state changes
If MLD support is enabled, each locally assigned IPv6 address in the appropriate state must be a member of the solicited-node multicast group corresponding to that address. Ensure that this is always the case by (re-)deciding on the membership upon every address state change. By doing so, this patch enforces that user-initiated state changes to addresses (e.g., deletion) never cause a desynchronization with the corresponding solicited-node multicast group membership, thereby making such user-initiated state changes simpler and safer.
This commit is contained in:
committed by
sg
parent
d5bc856f45
commit
71810d0415
@@ -71,6 +71,9 @@ u16_t nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif);
|
||||
void nd6_reachability_hint(const ip6_addr_t *ip6addr);
|
||||
#endif /* LWIP_ND6_TCP_REACHABILITY_HINTS */
|
||||
void nd6_cleanup_netif(struct netif *netif);
|
||||
#if LWIP_IPV6_MLD
|
||||
void nd6_adjust_mld_membership(struct netif *netif, s8_t addr_idx, u8_t new_state);
|
||||
#endif /* LWIP_IPV6_MLD */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user