]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Made pbuf flags unsigned. Added "incoming broadcast" flag.
authorlikewise <likewise>
Sat, 3 May 2003 09:44:09 +0000 (09:44 +0000)
committerlikewise <likewise>
Sat, 3 May 2003 09:44:09 +0000 (09:44 +0000)
src/include/lwip/pbuf.h

index eb3be89cf22bd3d25486483ab2422d4e0141e9f6..01d0e9b1b0ae7535749d11c251faedae5676deb5 100644 (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 */