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... | |
Standard IPv4 header.
Definition at line 102 of file gnunet_tun_lib.h.
unsigned int GNUNET_TUN_IPv4Header::header_length |
Definition at line 105 of file gnunet_tun_lib.h.
Referenced by GNUNET_TUN_initialize_ipv4_header(), message_token(), and process_helper_messages().
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().
uint8_t GNUNET_TUN_IPv4Header::diff_serv |
Definition at line 113 of file gnunet_tun_lib.h.
uint16_t GNUNET_TUN_IPv4Header::total_length |
Length of the packet, including this header.
Definition at line 118 of file gnunet_tun_lib.h.
Referenced by GNUNET_TUN_calculate_tcp4_checksum(), GNUNET_TUN_calculate_udp4_checksum(), GNUNET_TUN_initialize_ipv4_header(), message_token(), and process_helper_messages().
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().
unsigned int GNUNET_TUN_IPv4Header::flags |
Definition at line 125 of file gnunet_tun_lib.h.
unsigned int GNUNET_TUN_IPv4Header::fragmentation_offset |
Definition at line 127 of file gnunet_tun_lib.h.
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().
uint8_t GNUNET_TUN_IPv4Header::protocol |
L4-protocol, for example, IPPROTO_UDP or IPPROTO_TCP.
Definition at line 137 of file gnunet_tun_lib.h.
Referenced by GNUNET_TUN_calculate_tcp4_checksum(), GNUNET_TUN_calculate_udp4_checksum(), GNUNET_TUN_initialize_ipv4_header(), GNUNET_TUN_initialize_ipv6_header(), icmp_from_helper(), message_token(), and process_helper_messages().
uint16_t GNUNET_TUN_IPv4Header::checksum |
Checksum.
Definition at line 142 of file gnunet_tun_lib.h.
Referenced by GNUNET_TUN_initialize_ipv4_header().
struct in_addr GNUNET_TUN_IPv4Header::source_address |
Origin of the packet.
Definition at line 147 of file gnunet_tun_lib.h.
Referenced by GNUNET_TUN_calculate_tcp4_checksum(), GNUNET_TUN_calculate_udp4_checksum(), GNUNET_TUN_initialize_ipv4_header(), message_token(), process_helper_messages(), send_icmp_packet_via_tun(), send_tcp_packet_via_tun(), and send_udp_packet_via_tun().
struct in_addr GNUNET_TUN_IPv4Header::destination_address |
Destination of the packet.
Definition at line 152 of file gnunet_tun_lib.h.
Referenced by GNUNET_TUN_initialize_ipv4_header(), message_token(), process_helper_messages(), send_icmp_packet_via_tun(), send_tcp_packet_via_tun(), and send_udp_packet_via_tun().