Fix coding style.
This commit is contained in:
parent
d0ebeb409e
commit
1e61fca653
1 changed files with 5 additions and 9 deletions
|
@ -126,15 +126,11 @@ neighbor_info_packet_sent(int status, int numtx)
|
||||||
add_neighbor(dest);
|
add_neighbor(dest);
|
||||||
#if UIP_DS6_LL_NUD
|
#if UIP_DS6_LL_NUD
|
||||||
nbr = uip_ds6_nbr_ll_lookup((uip_lladdr_t *)dest);
|
nbr = uip_ds6_nbr_ll_lookup((uip_lladdr_t *)dest);
|
||||||
if (nbr!=NULL) {
|
if(nbr != NULL &&
|
||||||
PRINTF("neighbor-info : nbr state = %u\n",nbr->state);
|
(nbr->state == STALE || nbr->state == DELAY || nbr->state == PROBE)) {
|
||||||
} else {
|
|
||||||
PRINTF("neighbor-info : no nbr\n");
|
|
||||||
}
|
|
||||||
if (nbr!=NULL && (nbr->state == STALE || nbr->state == DELAY || nbr->state == PROBE)) {
|
|
||||||
nbr->state = REACHABLE;
|
nbr->state = REACHABLE;
|
||||||
stimer_set(&nbr->reachable, UIP_ND6_REACHABLE_TIME / 1000);
|
stimer_set(&nbr->reachable, UIP_ND6_REACHABLE_TIME / 1000);
|
||||||
PRINTF("neighbor-info : received a linklayer ack : ");
|
PRINTF("neighbor-info : received a link layer ACK : ");
|
||||||
PRINTLLADDR((uip_lladdr_t *)dest);
|
PRINTLLADDR((uip_lladdr_t *)dest);
|
||||||
PRINTF(" is reachable.\n");
|
PRINTF(" is reachable.\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue