From e5fd1f47faf4af21717182d95edf647fb2ad7a69 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Mon, 7 Jun 2010 11:36:02 +0000 Subject: [PATCH] Copy the DTSN from the DIO when joining a DAG. --- core/net/rpl/rpl-dag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/rpl/rpl-dag.c b/core/net/rpl/rpl-dag.c index 2da63158c..bf54ad139 100644 --- a/core/net/rpl/rpl-dag.c +++ b/core/net/rpl/rpl-dag.c @@ -32,7 +32,7 @@ * * This file is part of the Contiki operating system. * - * $Id: rpl-dag.c,v 1.19 2010/06/06 21:42:50 nvt-se Exp $ + * $Id: rpl-dag.c,v 1.20 2010/06/07 11:36:02 nvt-se Exp $ */ /** * \file @@ -429,6 +429,7 @@ join_dag(uip_ipaddr_t *from, rpl_dio_t *dio) dag->min_rank = dag->rank; /* So far this is the lowest rank we know */ dag->version = dio->version; dag->best_parent = p; + dag->dtsn = dio->dtsn; dag->dio_intdoubl = dio->dag_intdoubl; dag->dio_intmin = dio->dag_intmin;