From b2a28e6fc3eaf5af57f9d6bddabf4983a8fcab61 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Mon, 6 Dec 2010 09:48:48 +0000 Subject: [PATCH] Fixed error reported by Pieter Agten. The reachable time is specified in milliseconds, and must thus be divided by 1000. --- core/net/rpl/rpl-icmp6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/rpl/rpl-icmp6.c b/core/net/rpl/rpl-icmp6.c index 48a45ae4d..877cc79f9 100644 --- a/core/net/rpl/rpl-icmp6.c +++ b/core/net/rpl/rpl-icmp6.c @@ -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(", ");