diff --git a/core/net/rime/collect.c b/core/net/rime/collect.c index 73b917a4c..16a37673f 100644 --- a/core/net/rime/collect.c +++ b/core/net/rime/collect.c @@ -33,7 +33,7 @@ * * This file is part of the Contiki operating system. * - * $Id: collect.c,v 1.65 2010/10/28 15:36:02 adamdunkels Exp $ + * $Id: collect.c,v 1.66 2010/11/06 14:32:10 adamdunkels Exp $ */ /** @@ -1472,6 +1472,12 @@ collect_depth(struct collect_conn *tc) return tc->rtmetric; } /*---------------------------------------------------------------------------*/ +const rimeaddr_t * +collect_parent(struct collect_conn *tc) +{ + return &tc->current_parent; +} +/*---------------------------------------------------------------------------*/ void collect_purge(struct collect_conn *tc) { diff --git a/core/net/rime/collect.h b/core/net/rime/collect.h index c1327f588..fe790b525 100644 --- a/core/net/rime/collect.h +++ b/core/net/rime/collect.h @@ -47,7 +47,7 @@ * * This file is part of the Contiki operating system. * - * $Id: collect.h,v 1.23 2010/10/28 15:36:02 adamdunkels Exp $ + * $Id: collect.h,v 1.24 2010/11/06 14:32:10 adamdunkels Exp $ */ /** @@ -126,6 +126,7 @@ int collect_send(struct collect_conn *c, int rexmits); void collect_set_sink(struct collect_conn *c, int should_be_sink); int collect_depth(struct collect_conn *c); +const rimeaddr_t *collect_parent(struct collect_conn *c); void collect_set_keepalive(struct collect_conn *c, clock_time_t period);