diff --git a/core/net/neighbor-info.c b/core/net/neighbor-info.c index ff2a1c319..c9e8c4080 100644 --- a/core/net/neighbor-info.c +++ b/core/net/neighbor-info.c @@ -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"); }