mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
Fixed error reported by Pieter Agten. The reachable time is specified in milliseconds, and must thus be divided by 1000.
This commit is contained in:
parent
4c9793f428
commit
b2a28e6fc3
@ -32,7 +32,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rpl-icmp6.c,v 1.28 2010/12/04 21:06:04 dak664 Exp $
|
||||
* $Id: rpl-icmp6.c,v 1.29 2010/12/06 09:48:48 nvt-se Exp $
|
||||
*/
|
||||
/**
|
||||
* \file
|
||||
@ -191,7 +191,7 @@ dio_input(void)
|
||||
packetbuf_addr(PACKETBUF_ADDR_SENDER),
|
||||
0, NBR_REACHABLE)) != NULL) {
|
||||
/* set reachable timer */
|
||||
stimer_set(&(nbr->reachable), UIP_ND6_REACHABLE_TIME);
|
||||
stimer_set(&nbr->reachable, UIP_ND6_REACHABLE_TIME / 1000);
|
||||
PRINTF("RPL: Neighbor added to neighbor cache ");
|
||||
PRINT6ADDR(&from);
|
||||
PRINTF(", ");
|
||||
|
Loading…
Reference in New Issue
Block a user