ROHC compression/decompression library
|
Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet. More...
#include <ip.h>
Data Fields | |
ip_version | version |
The version of the IP packet. | |
union { | |
struct ipv4_hdr v4 | |
The IPv4 header. | |
struct ipv6_hdr v6 | |
The IPv6 header. | |
} | header |
The IP header. | |
const unsigned char * | data |
The whole IP data (header + payload) if not NULL. | |
unsigned int | size |
The length (in bytes) of the whole IP data (header + payload) |
Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet.
const unsigned char* ip_packet::data |
The whole IP data (header + payload) if not NULL.
Referenced by code_UO0_packet(), code_UO1_packet(), code_UO2_packet(), ip_create(), ip_get_next_header(), ip_get_protocol(), and ip_get_raw_data().
union { ... } ip_packet::header |
The IP header.
Referenced by ip_create(), ip_get_hdrlen(), ip_get_next_header(), ip_get_plen(), ip_get_protocol(), ip_get_tos(), ip_get_totlen(), ip_get_ttl(), ip_is_fragment(), ip_set_daddr(), ip_set_protocol(), ip_set_saddr(), ip_set_tos(), ip_set_ttl(), ipv4_get_daddr(), ipv4_get_df(), ipv4_get_header(), ipv4_get_id_nbo(), ipv4_get_saddr(), ipv4_set_df(), ipv4_set_id(), ipv6_get_daddr(), ipv6_get_flow_label(), ipv6_get_header(), ipv6_get_saddr(), and ipv6_set_flow_label().
unsigned int ip_packet::size |
The length (in bytes) of the whole IP data (header + payload)
Referenced by c_generic_encode(), ip_create(), and ip_get_totlen().
struct ipv4_hdr ip_packet::v4 |
The IPv4 header.
Referenced by ip_create(), ip_get_hdrlen(), ip_get_next_header(), ip_get_plen(), ip_get_protocol(), ip_get_tos(), ip_get_totlen(), ip_get_ttl(), ip_is_fragment(), ip_set_daddr(), ip_set_protocol(), ip_set_saddr(), ip_set_tos(), ip_set_ttl(), ipv4_get_daddr(), ipv4_get_df(), ipv4_get_header(), ipv4_get_id_nbo(), ipv4_get_saddr(), ipv4_set_df(), and ipv4_set_id().
struct ipv6_hdr ip_packet::v6 |
The IPv6 header.
Referenced by ip_create(), ip_get_next_header(), ip_get_plen(), ip_get_protocol(), ip_get_tos(), ip_get_ttl(), ip_set_daddr(), ip_set_protocol(), ip_set_saddr(), ip_set_tos(), ip_set_ttl(), ipv6_get_daddr(), ipv6_get_flow_label(), ipv6_get_header(), ipv6_get_saddr(), and ipv6_set_flow_label().
The version of the IP packet.
Referenced by ip_create(), ip_get_hdrlen(), ip_get_next_ext_from_ip(), ip_get_next_header(), ip_get_next_layer(), ip_get_plen(), ip_get_protocol(), ip_get_tos(), ip_get_totlen(), ip_get_ttl(), ip_get_version(), ip_is_fragment(), ip_set_daddr(), ip_set_protocol(), ip_set_saddr(), ip_set_tos(), ip_set_ttl(), ip_set_version(), ipv4_get_daddr(), ipv4_get_df(), ipv4_get_header(), ipv4_get_id(), ipv4_get_id_nbo(), ipv4_get_saddr(), ipv4_set_df(), ipv4_set_id(), ipv6_get_daddr(), ipv6_get_flow_label(), ipv6_get_header(), ipv6_get_saddr(), and ipv6_set_flow_label().