#include <ip.h>
Data Fields | |
u_char | ip_hl:4 |
Header length. | |
u_char | ip_v:4 |
Version. | |
u_char | ip_tos |
Type of service. | |
short | ip_len |
Total length. | |
u_short | ip_id |
Identification. | |
short | ip_off |
Fragment offset field. | |
u_char | ip_ttl |
Time to live. | |
u_char | ip_p |
Protocol. | |
u_short | ip_sum |
Checksum. | |
u_long | ip_src |
Source IP address. | |
u_long | ip_dst |
Destination IP address. |