For detailed explanation of the IPv4 header fields refer to RFC791.
Definition at line 113 of file ip.h.
Data Fields | |
UINT8 | vihl |
UINT8 | tos |
UINT16 | tlen |
UINT16 | id |
UINT16 | frags |
UINT8 | ttl |
UINT8 | protocol |
UINT16 | checksum |
UINT32 | sip |
UINT32 | dip |
UINT8 | opt [MAX_IP_OPTLEN+1] |
UINT16 | buf_index |
|
Version & Header Length field Definition at line 115 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_ip_in(), and process_ip_out(). |
|
Type Of Service Definition at line 116 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_ip_in(), and process_ip_out(). |
|
Total Length Definition at line 117 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_ip_in(), and process_ip_out(). |
|
IP Identification number Definition at line 118 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_ip_in(), and process_ip_out(). |
|
Flags & Fragment offsett Definition at line 119 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_ip_in(), and process_ip_out(). |
|
Time to live Definition at line 120 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_ip_in(), and process_ip_out(). |
|
Protocol over IP Definition at line 121 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_icmp_in(), process_ip_in(), process_ip_out(), process_tcp_in(), process_udp_in(), and tcp_check_cs(). |
|
Header Checksum Definition at line 122 of file ip.h. Referenced by ip_check_cs(), process_ip_in(), and process_ip_out(). |
|
Source IP address Definition at line 123 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_icmp_in(), process_ip_in(), process_ip_out(), process_tcp_in(), process_udp_in(), tcp_check_cs(), and tcp_mapsocket(). |
|
Destination IP address Definition at line 124 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), process_icmp_in(), process_ip_in(), process_ip_out(), process_udp_in(), and tcp_check_cs(). |
|
Option field Definition at line 125 of file ip.h. Referenced by ip_check_cs(), ip_construct_cs(), and process_ip_in(). |
|
Next offset from the start of network buffer Definition at line 126 of file ip.h. Referenced by process_icmp_in(), process_ip_in(), process_tcp_in(), and process_udp_in(). |