Made pbuf flags unsigned. Added "incoming broadcast" flag.

This commit is contained in:
likewise 2003-05-03 09:44:09 +00:00
parent 03bc7c868b
commit 7e73e4728d

View File

@ -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 */