-typedef enum {\r
- IP4_ETHER_PROTO = 0x0800,\r
-\r
- IP4_PROTO_ICMP = 0x01,\r
- IP4_PROTO_IGMP = 0x02,\r
-\r
- //\r
- // The packet is received as link level broadcast/multicast/promiscuous.\r
- //\r
- IP4_LINK_BROADCAST = 0x00000001,\r
- IP4_LINK_MULTICAST = 0x00000002,\r
- IP4_LINK_PROMISC = 0x00000004,\r
-\r
- //\r
- // IP4 address cast type classfication. Keep it true that any\r
- // type bigger than or equal to LOCAL_BROADCAST is broadcast.\r
- //\r
- IP4_PROMISCUOUS = 1,\r
- IP4_LOCAL_HOST,\r
- IP4_MULTICAST,\r
- IP4_LOCAL_BROADCAST, // Destination is 255.255.255.255\r
- IP4_SUBNET_BROADCAST,\r
- IP4_NET_BROADCAST,\r
-\r
- //\r
- // IP4 header flags\r
- //\r
- IP4_HEAD_DF_MASK = 0x4000,\r
- IP4_HEAD_MF_MASK = 0x2000,\r
- IP4_HEAD_OFFSET_MASK = 0x1fff\r
-} IP_ENUM_TYPES;\r
+//\r
+// IP4 header flags\r
+//\r
+#define IP4_HEAD_DF_MASK 0x4000\r
+#define IP4_HEAD_MF_MASK 0x2000\r
+#define IP4_HEAD_OFFSET_MASK 0x1fff\r