WAND Trace processing  4.0.5
libtrace_packet_t Struct Reference

The libtrace packet structure. More...

Collaboration diagram for libtrace_packet_t:

Data Fields

struct libtrace_ttrace
 Pointer to the trace. More...
 
void * header
 Pointer to the framing header. More...
 
void * payload
 Pointer to the link layer. More...
 
void * buffer
 Allocated buffer. More...
 
libtrace_rt_types_t type
 RT protocol type for the packet. More...
 
buf_control_t buf_control
 Describes memory ownership. More...
 
int capture_length
 Cached capture length. More...
 
int wire_length
 Cached wire length. More...
 
int payload_length
 Cached payload length. More...
 
int framing_length
 Cached framing length. More...
 
void * l2_header
 Cached link header. More...
 
libtrace_linktype_t link_type
 Cached link type. More...
 
uint32_t l2_remaining
 Cached link remaining. More...
 
void * l3_header
 Cached l3 header. More...
 
uint16_t l3_ethertype
 Cached l3 ethertype. More...
 
uint32_t l3_remaining
 Cached l3 remaining. More...
 
void * l4_header
 Cached transport header. More...
 
uint8_t transport_proto
 Cached transport protocol. More...
 
uint32_t l4_remaining
 Cached transport remaining. More...
 
uint64_t order
 Notes the order of this packet in relation to the input. More...
 
uint64_t hash
 A hash of the packet as supplied by the user. More...
 
int error
 The error status of pread_packet. More...
 
uint64_t internalid
 
void * srcbucket
 Internal identifier for the pkt. More...
 
pthread_mutex_t ref_lock
 Lock for reference counter. More...
 
int refcount
 Reference counter. More...
 
int which_trace_start
 Used to match packet to a started instance of the parent trace. More...
 

Detailed Description

The libtrace packet structure.

Applications shouldn't be meddling around in here

Field Documentation

void* libtrace_packet_t::buffer
int libtrace_packet_t::capture_length

Cached capture length.

Referenced by trace_clear_cache(), trace_get_capture_length(), and trace_set_capture_length().

int libtrace_packet_t::error

The error status of pread_packet.

Referenced by trace_copy_packet(), and trace_ppause().

int libtrace_packet_t::framing_length

Cached framing length.

Referenced by trace_clear_cache(), and trace_get_framing_length().

uint64_t libtrace_packet_t::hash

A hash of the packet as supplied by the user.

Referenced by trace_copy_packet(), trace_fin_packet(), trace_packet_get_hash(), and trace_packet_set_hash().

void* libtrace_packet_t::header
void* libtrace_packet_t::l2_header
uint32_t libtrace_packet_t::l2_remaining

Cached link remaining.

Referenced by trace_clear_cache(), trace_get_layer2(), and trace_get_layer3().

uint16_t libtrace_packet_t::l3_ethertype

Cached l3 ethertype.

Referenced by trace_clear_cache(), and trace_get_layer3().

void* libtrace_packet_t::l3_header

Cached l3 header.

Referenced by trace_clear_cache(), and trace_get_layer3().

uint32_t libtrace_packet_t::l3_remaining

Cached l3 remaining.

Referenced by trace_clear_cache(), and trace_get_layer3().

void* libtrace_packet_t::l4_header

Cached transport header.

Referenced by trace_clear_cache(), and trace_get_transport().

uint32_t libtrace_packet_t::l4_remaining

Cached transport remaining.

Referenced by trace_clear_cache(), and trace_get_transport().

libtrace_linktype_t libtrace_packet_t::link_type
uint64_t libtrace_packet_t::order

Notes the order of this packet in relation to the input.

Referenced by trace_copy_packet(), trace_fin_packet(), trace_packet_get_order(), trace_packet_set_order(), and trace_read_packet().

int libtrace_packet_t::payload_length

Cached payload length.

Referenced by trace_clear_cache(), and trace_get_payload_length().

pthread_mutex_t libtrace_packet_t::ref_lock
int libtrace_packet_t::refcount
void* libtrace_packet_t::srcbucket

Internal identifier for the pkt.

Referenced by trace_fin_packet().

uint8_t libtrace_packet_t::transport_proto

Cached transport protocol.

Referenced by trace_clear_cache(), and trace_get_transport().

libtrace_rt_types_t libtrace_packet_t::type
int libtrace_packet_t::wire_length

Cached wire length.

Referenced by trace_clear_cache(), and trace_get_wire_length().


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