|
WAND Trace processing
4.0.5
|
The libtrace packet structure. More...

Data Fields | |
| struct libtrace_t * | trace |
| 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... | |
The libtrace packet structure.
Applications shouldn't be meddling around in here
| buf_control_t libtrace_packet_t::buf_control |
Describes memory ownership.
Referenced by demote_packet(), libtrace_make_packet_safe(), promote_packet(), trace_construct_packet(), trace_copy_packet(), trace_create_packet(), trace_destroy_packet(), trace_fin_packet(), trace_prepare_packet(), and trace_read_packet().
| void* libtrace_packet_t::buffer |
Allocated buffer.
Referenced by demote_packet(), promote_packet(), trace_construct_packet(), trace_copy_packet(), trace_destroy_packet(), and trace_fin_packet().
| 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 |
Pointer to the framing header.
Referenced by demote_packet(), promote_packet(), trace_construct_packet(), trace_copy_packet(), and trace_fin_packet().
| void* libtrace_packet_t::l2_header |
Cached link header.
Referenced by trace_clear_cache(), trace_get_layer2(), trace_get_layer3(), and trace_strip_packet().
| 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 |
Cached link type.
Referenced by trace_clear_cache(), trace_get_layer2(), trace_get_layer3(), and trace_get_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().
| void* libtrace_packet_t::payload |
Pointer to the link layer.
Referenced by demote_packet(), promote_packet(), trace_construct_packet(), trace_copy_packet(), trace_fin_packet(), trace_get_link(), trace_get_packet_buffer(), and trace_strip_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 |
Lock for reference counter.
Referenced by trace_create_packet(), trace_decrement_packet_refcount(), trace_destroy_packet(), and trace_increment_packet_refcount().
| int libtrace_packet_t::refcount |
Reference counter.
Referenced by trace_clear_cache(), trace_decrement_packet_refcount(), and trace_increment_packet_refcount().
| void* libtrace_packet_t::srcbucket |
Internal identifier for the pkt.
Referenced by trace_fin_packet().
| struct libtrace_t* libtrace_packet_t::trace |
Pointer to the trace.
Referenced by demote_packet(), pcap_get_direction(), promote_packet(), trace_apply_filter(), trace_construct_packet(), trace_copy_packet(), trace_decrement_packet_refcount(), trace_destroy_packet(), trace_event(), trace_fin_packet(), trace_get_capture_length(), trace_get_direction(), trace_get_erf_timestamp(), trace_get_format(), trace_get_framing_length(), trace_get_link_type(), trace_get_seconds(), trace_get_wire_length(), trace_prepare_packet(), trace_read_packet(), trace_set_capture_length(), trace_set_direction(), and trace_write_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 |
RT protocol type for the packet.
Referenced by demote_packet(), pcap_get_direction(), promote_packet(), trace_construct_packet(), and trace_copy_packet().
| int libtrace_packet_t::which_trace_start |
Used to match packet to a started instance of the parent trace.
Referenced by trace_copy_packet(), trace_create_packet(), trace_get_capture_length(), trace_get_direction(), trace_get_erf_timestamp(), trace_get_framing_length(), trace_get_link_type(), trace_get_seconds(), trace_get_wire_length(), and trace_read_packet().
| int libtrace_packet_t::wire_length |
Cached wire length.
Referenced by trace_clear_cache(), and trace_get_wire_length().