From 06386b6f308cc7131b231a7fb9c0929f359ffeac Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Sun, 25 Mar 2007 21:44:06 +0000 Subject: [PATCH] Reduce header before passing over to receiver --- core/net/rime/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/rime/tree.c b/core/net/rime/tree.c index dc9cbfd8c..9303df7d1 100644 --- a/core/net/rime/tree.c +++ b/core/net/rime/tree.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: tree.c,v 1.8 2007/03/25 12:06:39 adamdunkels Exp $ + * $Id: tree.c,v 1.9 2007/03/25 21:44:06 adamdunkels Exp $ */ /** @@ -173,6 +173,7 @@ node_packet_received(struct ruc_conn *c, rimeaddr_t *from, u8_t seqno) if(tc->hops_from_sink == SINK) { + rimebuf_hdrreduce(sizeof(struct hdr)); if(tc->cb->recv != NULL) { tc->cb->recv(&hdr->originator, hdr->originator_seqno, hdr->hopcount, hdr->retransmissions);