Update the last lookup time for a neighbor when actually doing a lookup. Also fixed some coding style issues.

This commit is contained in:
nvt 2012-04-22 00:31:56 +02:00
parent 534c734465
commit e4a305d353
2 changed files with 12 additions and 11 deletions

View file

@ -366,6 +366,7 @@ uip_ds6_nbr_lookup(uip_ipaddr_t *ipaddr)
((uip_ds6_element_t *)uip_ds6_nbr_cache, UIP_DS6_NBR_NB,
sizeof(uip_ds6_nbr_t), ipaddr, 128,
(uip_ds6_element_t **)&locnbr) == FOUND) {
locnbr->last_lookup = clock_time();
return locnbr;
}
return NULL;