GNUnet 0.22.2
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 102 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 106 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 113 of file gnunet_tun_lib.h.

◆ total_length

uint16_t GNUNET_TUN_IPv4Header::total_length

◆ identification

uint16_t GNUNET_TUN_IPv4Header::identification

Unique random ID for matching up fragments.

Definition at line 123 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_initialize_ipv4_header().

◆ flags

unsigned int GNUNET_TUN_IPv4Header::flags

Definition at line 125 of file gnunet_tun_lib.h.

◆ fragmentation_offset

unsigned int GNUNET_TUN_IPv4Header::fragmentation_offset

Definition at line 127 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 132 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 142 of file gnunet_tun_lib.h.

Referenced by GNUNET_TUN_initialize_ipv4_header().

◆ source_address

◆ destination_address

struct in_addr GNUNET_TUN_IPv4Header::destination_address

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