10 typedef struct sIPv4Header tIPv4Header;
15 unsigned Version: 4; // = 4
16 unsigned HeaderLength: 4; // in 4-byte chunks
18 Uint8 DiffServices; // Differentiated Services
24 unsigned DontFragment: 1;
25 unsigned MoreFragments: 1;
26 unsigned FragOffLow: 5;
28 Uint8 FragOffHi; // Number of 8-byte blocks from the original start
30 Uint8 TTL; // Max number of hops effectively
32 Uint16 HeaderChecksum; // One's Complement Sum of the entire header must equal zero
40 #define IP4PROT_ICMP 1
42 #define IP4PROT_UDP 17
44 #define IPV4_ETHERNET_ID 0x0800