#include <ip.h>

Data Fields | |
| uint8_t | ip_hl:4 |
| Header length. | |
| uint8_t | ip_v:4 |
| Version. | |
| uint8_t | ip_tos |
| Type of service. | |
| short | ip_len |
| Total length. | |
| uint16_t | ip_id |
| Identification. | |
| short | ip_off |
| Fragment offset field. | |
| uint8_t | ip_ttl |
| Time to live. | |
| uint8_t | ip_p |
| Protocol. | |
| uint16_t | ip_sum |
| Checksum. | |
| uint32_t | ip_src |
| Source IP address. | |
| uint32_t | ip_dst |
| Destination IP address. | |
| uint32_t | ip_option |
| Option. | |
| short ip_opt::ip_len |
| short ip_opt::ip_off |