Data Fields

libtrace_t Struct Reference

A libtrace input trace. More...

Collaboration diagram for libtrace_t:
Collaboration graph
[legend]

Data Fields

struct libtrace_format_tformat
 The capture format for the input trace.
struct libtrace_event_status_t event
 Details of the most recent PACKET event reported by the trace.
void * format_data
 Pointer to the "global" data for the capture format module.
struct libtrace_filter_tfilter
 A BPF filter to be applied to all packets read by the trace - used only if the capture format does not support filters natively.
size_t snaplen
 The snap length to be applied to all packets read by the trace - used only if the capture format does not support snapping natively.
uint64_t accepted_packets
 Count of the number of packets returned to the libtrace user.
uint64_t filtered_packets
 Count of the number of packets filtered by libtrace.
char * uridata
 The filename from the uri for the trace.
io_t * io
 The libtrace IO reader for this trace (if applicable).
libtrace_err_t err
 Error information for the trace.
bool started
 Boolean flag indicating whether the trace has been started.

Detailed Description

A libtrace input trace.


Field Documentation

Count of the number of packets returned to the libtrace user.

Referenced by trace_create(), trace_event(), trace_get_accepted_packets(), and trace_read_packet().

Error information for the trace.

Referenced by trace_create(), trace_create_dead(), trace_get_err(), and trace_is_err().

Details of the most recent PACKET event reported by the trace.

Referenced by trace_create(), trace_create_dead(), and trace_destroy().

A BPF filter to be applied to all packets read by the trace - used only if the capture format does not support filters natively.

Referenced by trace_config(), trace_create(), trace_create_dead(), and trace_read_packet().

Count of the number of packets filtered by libtrace.

Referenced by trace_create(), trace_create_dead(), trace_get_filtered_packets(), and trace_read_packet().

Pointer to the "global" data for the capture format module.

Referenced by trace_create_dead(), and trace_destroy_dead().

The libtrace IO reader for this trace (if applicable).

Referenced by trace_create(), and trace_create_dead().

The snap length to be applied to all packets read by the trace - used only if the capture format does not support snapping natively.

Referenced by trace_config(), trace_create(), trace_create_dead(), and trace_read_packet().

Boolean flag indicating whether the trace has been started.

Referenced by trace_create(), trace_create_dead(), trace_destroy(), trace_pause(), trace_read_packet(), and trace_start().

The filename from the uri for the trace.

Referenced by trace_create(), trace_create_dead(), trace_destroy(), and trace_open_file().


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