Data Fields

libtrace_ip Struct Reference

Generic IP header structure. More...

Data Fields

LT_BITFIELD8 ip_hl:4
 Header Length.
LT_BITFIELD8 ip_v:4
 Version.
uint8_t ip_tos
 Type of Service.
uint16_t ip_len
 Total Length.
int16_t ip_id
 Identification.
uint16_t ip_off
 IP Fragment offset (and flags).
uint8_t ip_ttl
 Time to Live.
uint8_t ip_p
 Protocol.
uint16_t ip_sum
 Checksum.
struct in_addr ip_src
 Source Address.
struct in_addr ip_dst
 Destination Address.

Detailed Description

Generic IP header structure.


Field Documentation

struct in_addr libtrace_ip::ip_dst

Destination Address.

Referenced by trace_get_destination_address().

LT_BITFIELD8 libtrace_ip::ip_hl

Header Length.

Referenced by trace_get_payload_from_ip(), and trace_get_payload_length().

Identification.

Total Length.

Referenced by trace_get_payload_length().

IP Fragment offset (and flags).

Referenced by trace_get_payload_from_ip().

struct in_addr libtrace_ip::ip_src

Source Address.

Referenced by trace_get_source_address().

Checksum.

Type of Service.

Time to Live.

LT_BITFIELD8 libtrace_ip::ip_v

Version.

Referenced by trace_get_payload_from_ip().


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