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:
nvt-se 2010-12-06 09:48:48 +00:00
parent 4c9793f428
commit b2a28e6fc3

View file

@ -32,7 +32,7 @@
* *
* This file is part of the Contiki operating system. * 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 * \file
@ -191,7 +191,7 @@ dio_input(void)
packetbuf_addr(PACKETBUF_ADDR_SENDER), packetbuf_addr(PACKETBUF_ADDR_SENDER),
0, NBR_REACHABLE)) != NULL) { 0, NBR_REACHABLE)) != NULL) {
/* set reachable timer */ /* 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 "); PRINTF("RPL: Neighbor added to neighbor cache ");
PRINT6ADDR(&from); PRINT6ADDR(&from);
PRINTF(", "); PRINTF(", ");