mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc/nib: don't add routers from WPAN as default router for 6LBR
This avoids a race condition where the default router slots for the 6LBR are used up by router advertisements from the 6Lo network that arrived before router advertisements from the upstream network. The border router should ignore 'default routers' from the 6Lo network as it consitutes the uplink for that network.
This commit is contained in:
parent
37db22edea
commit
f544890056
@ -675,7 +675,7 @@ static void _handle_rtr_adv(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6,
|
||||
}
|
||||
#endif /* !CONFIG_GNRC_IPV6_NIB_6LBR */
|
||||
#endif /* CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C */
|
||||
if (rtr_adv->ltime.u16 != 0) {
|
||||
if (!gnrc_netif_is_6lbr(netif) && rtr_adv->ltime.u16 != 0) {
|
||||
uint16_t rtr_ltime = byteorder_ntohs(rtr_adv->ltime);
|
||||
|
||||
dr = _nib_drl_add(&ipv6->src, netif->pid);
|
||||
|
Loading…
Reference in New Issue
Block a user