Sequence number now reported
This commit is contained in:
parent
168765a205
commit
16bdd2f18c
2 changed files with 5 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: nf.c,v 1.1 2007/03/14 00:30:46 adamdunkels Exp $
|
||||
* $Id: nf.c,v 1.2 2007/03/15 09:56:30 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -118,7 +118,8 @@ recv_from_ibc(struct ibc_conn *ibc, node_id_t from_id)
|
|||
if(!(hdr->originator_id == c->last_originator_id &&
|
||||
hdr->originator_seqno <= c->last_originator_seqno)) {
|
||||
|
||||
if(c->u->recv(c, from_id, hdr->originator_id, hops)) {
|
||||
if(c->u->recv(c, from_id, hdr->originator_id, hdr->originator_seqno,
|
||||
hops)) {
|
||||
|
||||
if(queuebuf != NULL) {
|
||||
queuebuf_to_rimebuf(queuebuf);
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: nf.h,v 1.1 2007/03/14 00:30:46 adamdunkels Exp $
|
||||
* $Id: nf.h,v 1.2 2007/03/15 09:56:30 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -49,7 +49,7 @@ struct nf_conn;
|
|||
|
||||
struct nf_ulayer {
|
||||
int (* recv)(struct nf_conn *c, node_id_t from,
|
||||
node_id_t originator, u8_t hops);
|
||||
node_id_t originator, u8_t seqno, u8_t hops);
|
||||
void (* sent)(struct nf_conn *c);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue