mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Fix coding style.
This commit is contained in:
parent
d0ebeb409e
commit
1e61fca653
@ -107,7 +107,7 @@ neighbor_info_packet_sent(int status, int numtx)
|
||||
const rimeaddr_t *dest;
|
||||
link_metric_t packet_metric;
|
||||
#if UIP_DS6_LL_NUD
|
||||
uip_ds6_nbr_t * nbr;
|
||||
uip_ds6_nbr_t *nbr;
|
||||
#endif /* UIP_DS6_LL_NUD */
|
||||
|
||||
dest = packetbuf_addr(PACKETBUF_ADDR_RECEIVER);
|
||||
@ -125,16 +125,12 @@ neighbor_info_packet_sent(int status, int numtx)
|
||||
case MAC_TX_OK:
|
||||
add_neighbor(dest);
|
||||
#if UIP_DS6_LL_NUD
|
||||
nbr=uip_ds6_nbr_ll_lookup((uip_lladdr_t *) dest);
|
||||
if (nbr!=NULL) {
|
||||
PRINTF("neighbor-info : nbr state = %u\n",nbr->state);
|
||||
} else {
|
||||
PRINTF("neighbor-info : no nbr\n");
|
||||
}
|
||||
if (nbr!=NULL && (nbr->state == STALE || nbr->state == DELAY || nbr->state == PROBE)) {
|
||||
nbr = uip_ds6_nbr_ll_lookup((uip_lladdr_t *)dest);
|
||||
if(nbr != NULL &&
|
||||
(nbr->state == STALE || nbr->state == DELAY || nbr->state == PROBE)) {
|
||||
nbr->state = REACHABLE;
|
||||
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);
|
||||
PRINTF(" is reachable.\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user