IPv4 header. More...
Data Fields | |
uint8_t | vers_ihl |
Version (4 bits) + Internet header length (4 bits) More... | |
uint8_t | tos |
Type of service. More... | |
uint16_t | pkt_len |
Total length. More... | |
uint16_t | id |
Identification. More... | |
uint16_t | flags_frag_offset |
Flags (3 bits) + Fragment offset (13 bits) More... | |
uint8_t | ttl |
Time to live. More... | |
uint8_t | proto |
Protocol. More... | |
uint16_t | checksum |
Header checksum. More... | |
uint32_t | src_ip |
Source address. More... | |
uint32_t | dst_ip |
Destination address. More... | |
IPv4 header.
Definition at line 98 of file gnunet-helper-nat-client.c.
uint8_t ip_header::vers_ihl |
Version (4 bits) + Internet header length (4 bits)
Definition at line 103 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint8_t ip_header::tos |
Type of service.
Definition at line 108 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint16_t ip_header::pkt_len |
Total length.
Definition at line 113 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint16_t ip_header::id |
Identification.
Definition at line 118 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint16_t ip_header::flags_frag_offset |
Flags (3 bits) + Fragment offset (13 bits)
Definition at line 123 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint8_t ip_header::ttl |
Time to live.
Definition at line 128 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint8_t ip_header::proto |
Protocol.
Definition at line 133 of file gnunet-helper-nat-client.c.
Referenced by process_icmp_response(), send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint16_t ip_header::checksum |
Header checksum.
Definition at line 138 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint32_t ip_header::src_ip |
Source address.
Definition at line 143 of file gnunet-helper-nat-client.c.
Referenced by process_icmp_response(), send_icmp(), send_icmp_echo(), and send_icmp_udp().
uint32_t ip_header::dst_ip |
Destination address.
Definition at line 148 of file gnunet-helper-nat-client.c.
Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().