From b7b2c8fcdeed1e2c362d8097af67d5e78d2f097b Mon Sep 17 00:00:00 2001 From: nifi Date: Thu, 27 May 2010 20:28:29 +0000 Subject: [PATCH] Added macro to identify address attributes for use in header processing modules --- core/net/rime/packetbuf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/rime/packetbuf.h b/core/net/rime/packetbuf.h index 265d9ae4b..d5c6a4ee8 100644 --- a/core/net/rime/packetbuf.h +++ b/core/net/rime/packetbuf.h @@ -40,7 +40,7 @@ * * This file is part of the Contiki operating system. * - * $Id: packetbuf.h,v 1.11 2010/04/30 07:25:51 adamdunkels Exp $ + * $Id: packetbuf.h,v 1.12 2010/05/27 20:28:29 nifi Exp $ */ /** @@ -376,6 +376,7 @@ enum { #define PACKETBUF_NUM_ATTRS (PACKETBUF_ATTR_MAX - PACKETBUF_NUM_ADDRS) #define PACKETBUF_ADDR_FIRST PACKETBUF_ADDR_SENDER +#define PACKETBUF_IS_ADDR(type) ((type) >= PACKETBUF_ADDR_FIRST) #if PACKETBUF_CONF_ATTRS_INLINE