Reduce header before passing over to receiver
This commit is contained in:
parent
41630b0f03
commit
06386b6f30
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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) {
|
if(tc->hops_from_sink == SINK) {
|
||||||
|
|
||||||
|
rimebuf_hdrreduce(sizeof(struct hdr));
|
||||||
if(tc->cb->recv != NULL) {
|
if(tc->cb->recv != NULL) {
|
||||||
tc->cb->recv(&hdr->originator, hdr->originator_seqno,
|
tc->cb->recv(&hdr->originator, hdr->originator_seqno,
|
||||||
hdr->hopcount, hdr->retransmissions);
|
hdr->hopcount, hdr->retransmissions);
|
||||||
|
|
Loading…
Reference in a new issue