IPv4 header. More...
#include <wipal/proto/ip4.hh>
Public Types | |
enum | addr_index { sa = 0, da = 1 } |
Public Attributes | |
union { | |
uint8_t version | |
uint8_t headerlength | |
}; | |
uint8_t | dsfield |
uint16_t | iplen |
uint16_t | identifier |
union { | |
uint16_t flags | |
uint16_t fragoffset | |
}; | |
uint8_t | ttl |
uint8_t | ipproto |
uint16_t | checksum |
addr | addrs [2] |
IPv4 header.