From 1eb085834fc85ffcecb68c8677ce329bff5c3303 Mon Sep 17 00:00:00 2001 From: zhitao Date: Mon, 9 Mar 2009 12:54:27 +0000 Subject: [PATCH] Update announcement value after route metric saturates. Not doing this results in stubborn forwards from former children nodes. --- core/net/rime/collect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/rime/collect.c b/core/net/rime/collect.c index a7079a2cd..bd16ff567 100644 --- a/core/net/rime/collect.c +++ b/core/net/rime/collect.c @@ -36,7 +36,7 @@ * * This file is part of the Contiki operating system. * - * $Id: collect.c,v 1.20 2009/03/06 17:33:59 zhitao Exp $ + * $Id: collect.c,v 1.21 2009/03/09 12:54:27 zhitao Exp $ */ /** @@ -114,6 +114,7 @@ update_rtmetric(struct collect_conn *tc) rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1]); } tc->rtmetric = RTMETRIC_MAX; + announcement_set_value(&tc->announcement, tc->rtmetric); } else { /* We set our rtmetric to the rtmetric of our best neighbor plus