From 7e73e4728dde6374559961c4205d62a4397f161a Mon Sep 17 00:00:00 2001 From: likewise Date: Sat, 3 May 2003 09:44:09 +0000 Subject: [PATCH] Made pbuf flags unsigned. Added "incoming broadcast" flag. --- src/include/lwip/pbuf.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/include/lwip/pbuf.h b/src/include/lwip/pbuf.h index eb3be89c..01d0e9b1 100644 --- a/src/include/lwip/pbuf.h +++ b/src/include/lwip/pbuf.h @@ -55,10 +55,13 @@ typedef enum { /* Definitions for the pbuf flag field (these are not the flags that are passed to pbuf_alloc()). */ -#define PBUF_FLAG_RAM 0x00 /* Flags that pbuf data is stored in RAM */ -#define PBUF_FLAG_ROM 0x01 /* Flags that pbuf data is stored in ROM */ -#define PBUF_FLAG_POOL 0x02 /* Flags that the pbuf comes from the pbuf pool */ -#define PBUF_FLAG_REF 0x04 /* Flags thet the pbuf payload refers to RAM */ +#define PBUF_FLAG_RAM 0x00U /* Flags that pbuf data is stored in RAM */ +#define PBUF_FLAG_ROM 0x01U /* Flags that pbuf data is stored in ROM */ +#define PBUF_FLAG_POOL 0x02U /* Flags that the pbuf comes from the pbuf pool */ +#define PBUF_FLAG_REF 0x04U /* Flags thet the pbuf payload refers to RAM */ + +/** indicates this packet was broadcast on the link */ +#define PBUF_FLAG_LINK_BROADCAST 0x80U struct pbuf { /** next pbuf in singly linked pbuf chain */