Browse Source

gnrc_ndp: stop multicast RS retransmissions on RA reception

6LoWPAN interfaces already do that, other interface happily continue
multicasting RSs even if a router was found.
cc430
Martine Lenders 7 years ago
parent
commit
8722699fb2
  1. 4
      sys/net/gnrc/network_layer/ndp/gnrc_ndp.c

4
sys/net/gnrc/network_layer/ndp/gnrc_ndp.c

@ -609,10 +609,10 @@ void gnrc_ndp_rtr_adv_handle(kernel_pid_t iface, gnrc_pktsnip_t *pkt, ipv6_hdr_t
}
#endif
_stale_nc(iface, &ipv6->src, l2src, l2src_len);
/* stop multicast router solicitation retransmission timer */
xtimer_remove(&if_entry->rtr_sol_timer);
#ifdef MODULE_GNRC_SIXLOWPAN_ND
if (if_entry->flags & GNRC_IPV6_NETIF_FLAGS_SIXLOWPAN) {
/* stop multicast router solicitation retransmission timer */
xtimer_remove(&if_entry->rtr_sol_timer);
/* 3/4 of the time should be "well before" enough the respective timeout
* not to run out; see https://tools.ietf.org/html/rfc6775#section-5.4.3 */
next_rtr_sol *= 3;

Loading…
Cancel
Save