From 1d1ab90642e0628fedef4b3f6559f0d5fc623381 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Mon, 30 Jun 2008 19:57:10 +0000 Subject: [PATCH] Added rimebuf attributes for RSSI, timestamp, and network ID (used for e.g. 802.15.4 PAN ID) --- core/net/rime/rimebuf.c | 5 ++++- core/net/rime/rimebuf.h | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/core/net/rime/rimebuf.c b/core/net/rime/rimebuf.c index b0c2690a3..2678d2aac 100644 --- a/core/net/rime/rimebuf.c +++ b/core/net/rime/rimebuf.c @@ -33,7 +33,7 @@ * * This file is part of the Contiki operating system. * - * $Id: rimebuf.c,v 1.15 2008/04/03 09:07:28 nifi Exp $ + * $Id: rimebuf.c,v 1.16 2008/06/30 19:57:10 adamdunkels Exp $ */ /** @@ -66,6 +66,9 @@ const char *rimebuf_attr_strings[] = "RIMEBUF_ATTR_MAX_REXMIT", "RIMEBUF_ATTR_NUM_REXMIT", "RIMEBUF_ATTR_LINK_QUALITY", + "RIMEBUF_ATTR_RSSI", + "RIMEBUF_ATTR_TIMESTAMP", + "RIMEBUF_ATTR_NETWORK_ID", "RIMEBUF_ATTR_RELIABLE", "RIMEBUF_ATTR_ERELIABLE", diff --git a/core/net/rime/rimebuf.h b/core/net/rime/rimebuf.h index 958526eb8..3c8e23a62 100644 --- a/core/net/rime/rimebuf.h +++ b/core/net/rime/rimebuf.h @@ -40,7 +40,7 @@ * * This file is part of the Contiki operating system. * - * $Id: rimebuf.h,v 1.14 2008/04/02 14:49:21 nifi Exp $ + * $Id: rimebuf.h,v 1.15 2008/06/30 19:57:10 adamdunkels Exp $ */ /** @@ -329,6 +329,10 @@ enum { RIMEBUF_ATTR_MAX_REXMIT, RIMEBUF_ATTR_NUM_REXMIT, RIMEBUF_ATTR_LINK_QUALITY, + RIMEBUF_ATTR_RSSI, + RIMEBUF_ATTR_TIMESTAMP, + RIMEBUF_ATTR_NETWORK_ID, + RIMEBUF_ATTR_RELIABLE, RIMEBUF_ATTR_ERELIABLE,