GNUnet  0.11.x
Data Fields
GNUNET_TUN_IPv4Header Struct Reference

Standard IPv4 header. More...

#include <gnunet_tun_lib.h>

Data Fields

unsigned int header_length: 4
 
unsigned int version: 4
 
uint8_t diff_serv
 
uint16_t total_length
 Length of the packet, including this header. More...
 
uint16_t identification
 Unique random ID for matching up fragments. More...
 
unsigned int flags: 3
 
unsigned int fragmentation_offset: 13
 
uint8_t ttl
 How many more hops can this packet be forwarded? More...
 
uint8_t protocol
 L4-protocol, for example, IPPROTO_UDP or IPPROTO_TCP. More...
 
uint16_t checksum
 Checksum. More...
 
struct in_addr source_address
 Origin of the packet. More...
 
struct in_addr destination_address
 Destination of the packet. More...
 

Detailed Description

Standard IPv4 header.

Definition at line 98 of file gnunet_tun_lib.h.

Field Documentation

◆ header_length

unsigned int GNUNET_TUN_IPv4Header::header_length

◆ version

unsigned int GNUNET_TUN_IPv4Header::version

Definition at line 102 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_initialize_ipv4_header(), and process_helper_messages().

◆ diff_serv

uint8_t GNUNET_TUN_IPv4Header::diff_serv

Definition at line 109 of file gnunet_tun_lib.h.

◆ total_length

uint16_t GNUNET_TUN_IPv4Header::total_length

Length of the packet, including this header.

Definition at line 114 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_calculate_tcp4_checksum(), GNUNET_TUN_calculate_udp4_checksum(), GNUNET_TUN_initialize_ipv4_header(), and message_token().

◆ identification

uint16_t GNUNET_TUN_IPv4Header::identification

Unique random ID for matching up fragments.

Definition at line 119 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_initialize_ipv4_header().

◆ flags

unsigned int GNUNET_TUN_IPv4Header::flags

Definition at line 121 of file gnunet_tun_lib.h.

◆ fragmentation_offset

unsigned int GNUNET_TUN_IPv4Header::fragmentation_offset

Definition at line 123 of file gnunet_tun_lib.h.

◆ ttl

uint8_t GNUNET_TUN_IPv4Header::ttl

How many more hops can this packet be forwarded?

Definition at line 128 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_initialize_ipv4_header().

◆ protocol

uint8_t GNUNET_TUN_IPv4Header::protocol

◆ checksum

uint16_t GNUNET_TUN_IPv4Header::checksum

Checksum.

Definition at line 138 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_initialize_ipv4_header().

◆ source_address

struct in_addr GNUNET_TUN_IPv4Header::source_address

◆ destination_address

struct in_addr GNUNET_TUN_IPv4Header::destination_address

Destination of the packet.

Definition at line 148 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_initialize_ipv4_header(), message_token(), and process_helper_messages().


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