GNUnet  0.11.x
Data Fields
ip_header Struct Reference

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...
 

Detailed Description

IPv4 header.

Definition at line 97 of file gnunet-helper-nat-client.c.

Field Documentation

◆ vers_ihl

uint8_t ip_header::vers_ihl

Version (4 bits) + Internet header length (4 bits)

Definition at line 102 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ tos

uint8_t ip_header::tos

Type of service.

Definition at line 107 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ pkt_len

uint16_t ip_header::pkt_len

Total length.

Definition at line 112 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ id

uint16_t ip_header::id

Identification.

Definition at line 117 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ flags_frag_offset

uint16_t ip_header::flags_frag_offset

Flags (3 bits) + Fragment offset (13 bits)

Definition at line 122 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ ttl

uint8_t ip_header::ttl

Time to live.

Definition at line 127 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ proto

uint8_t ip_header::proto

Protocol.

Definition at line 132 of file gnunet-helper-nat-client.c.

Referenced by process_icmp_response(), send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ checksum

uint16_t ip_header::checksum

Header checksum.

Definition at line 137 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ src_ip

uint32_t ip_header::src_ip

Source address.

Definition at line 142 of file gnunet-helper-nat-client.c.

Referenced by process_icmp_response(), send_icmp(), send_icmp_echo(), and send_icmp_udp().

◆ dst_ip

uint32_t ip_header::dst_ip

Destination address.

Definition at line 147 of file gnunet-helper-nat-client.c.

Referenced by send_icmp(), send_icmp_echo(), and send_icmp_udp().


The documentation for this struct was generated from the following files: