Simplified reachability detections by sending probes only in PROBE
state.
This commit is contained in:
parent
419ffddd0a
commit
51e3999054
|
@ -212,12 +212,11 @@ uip_ds6_periodic(void)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NBR_DELAY:
|
case NBR_DELAY:
|
||||||
if(stimer_expired(&locnbr->reachable) && (uip_len == 0)) {
|
if(stimer_expired(&locnbr->reachable)) {
|
||||||
locnbr->state = NBR_PROBE;
|
locnbr->state = NBR_PROBE;
|
||||||
locnbr->nscount = 1;
|
locnbr->nscount = 0;
|
||||||
PRINTF("DELAY: moving to PROBE + NS %u\n", locnbr->nscount);
|
PRINTF("DELAY: moving to PROBE\n");
|
||||||
uip_nd6_ns_output(NULL, &locnbr->ipaddr, &locnbr->ipaddr);
|
stimer_set(&locnbr->sendns, 0);
|
||||||
stimer_set(&locnbr->sendns, uip_ds6_if.retrans_timer / 1000);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NBR_PROBE:
|
case NBR_PROBE:
|
||||||
|
|
Loading…
Reference in a new issue