Collaboration diagram for libtrace_format_t:

Data Fields | |
| const char * | name |
| the uri name of this module | |
| const char * | version |
| the version of this module | |
| enum base_format_t | type |
| the RT protocol type of this module | |
| int(* | init_input )(libtrace_t *libtrace) |
| initialise an trace (or NULL if input is not supported) | |
| int(* | config_input )(libtrace_t *libtrace, trace_option_t option, void *value) |
| configure an trace (or NULL if input is not supported) | |
| int(* | start_input )(libtrace_t *libtrace) |
| start/unpause an trace (or NULL if input not supported) | |
| int(* | pause_input )(libtrace_t *libtrace) |
| pause an trace (or NULL if input not supported) | |
| int(* | init_output )(libtrace_out_t *libtrace) |
| initialise output traces (or NULL if output not supported) | |
| int(* | config_output )(libtrace_out_t *libtrace, trace_option_output_t option, void *) |
| configure output traces (or NULL if output not supported) | |
| int(* | start_output )(libtrace_out_t *libtrace) |
| start output traces (or NULL if output not supported) There is no pause for output traces, as packets are not arriving asyncronously | |
| int(* | fin_input )(libtrace_t *libtrace) |
| finish an input trace, cleanup (or NULL if input not supported) if the trace is not paused, libtrace will pause the trace before calling this function. | |
| int(* | fin_output )(libtrace_out_t *libtrace) |
| finish an output trace, cleanup (or NULL if output not supported) | |
| int(* | read_packet )(libtrace_t *libtrace, libtrace_packet_t *packet) |
| read a packet from a trace into the provided packet structure | |
| void(* | fin_packet )(libtrace_packet_t *packet) |
| finalise a packet cleanup any resources used by a packet that can't be reused for the next packet. | |
| int(* | write_packet )(libtrace_out_t *libtrace, libtrace_packet_t *packet) |
| write a packet to a trace from the provided packet (or NULL if output not supported) | |
| libtrace_linktype_t(* | get_link_type )(const libtrace_packet_t *packet) |
| return the libtrace link type for this packet | |
| libtrace_direction_t(* | get_direction )(const libtrace_packet_t *packet) |
| return the direction of this packet | |
| libtrace_direction_t(* | set_direction )(libtrace_packet_t *packet, libtrace_direction_t direction) |
| set the direction of this packet | |
| uint64_t(* | get_erf_timestamp )(const libtrace_packet_t *packet) |
| return the erf timestamp of the packet. | |
| timeval(* | get_timeval )(const libtrace_packet_t *packet) |
| return the timeval of this packet. | |
| double(* | get_seconds )(const libtrace_packet_t *packet) |
| return the timestamp of this packet. | |
| int(* | seek_erf )(libtrace_t *trace, uint64_t timestamp) |
| move the pointer within the trace. | |
| int(* | seek_timeval )(libtrace_t *trace, struct timeval tv) |
| move the pointer within the trace. | |
| int(* | seek_seconds )(libtrace_t *trace, double seconds) |
| move the pointer within the trace. | |
| int(* | get_capture_length )(const libtrace_packet_t *packet) |
| return the captured payload length | |
| int(* | get_wire_length )(const libtrace_packet_t *packet) |
| return the original length of the packet on the wire. | |
| int(* | get_framing_length )(const libtrace_packet_t *packet) |
| return the length of the trace framing header | |
| size_t(* | set_capture_length )(struct libtrace_packet_t *packet, size_t size) |
| truncate (snap) the packet | |
| int(* | get_fd )(const libtrace_t *trace) |
| return the filedescriptor associated with this interface. | |
| libtrace_eventobj_t(* | trace_event )(libtrace_t *trace, libtrace_packet_t *packet) |
| return the next event from this source | |
| void(* | help )(void) |
| return information about this trace format to standard out | |
| libtrace_format_t * | next |
| next pointer, should be NULL | |
|
|
configure an trace (or NULL if input is not supported)
|
|
|
configure output traces (or NULL if output not supported)
|
|
|
finish an input trace, cleanup (or NULL if input not supported) if the trace is not paused, libtrace will pause the trace before calling this function.
|
|
|
finish an output trace, cleanup (or NULL if output not supported)
|
|
|
finalise a packet cleanup any resources used by a packet that can't be reused for the next packet.
|
|
|
return the captured payload length
|
|
|
return the direction of this packet
|
|
|
return the erf timestamp of the packet.
|
|
|
return the filedescriptor associated with this interface.
|
|
|
return the length of the trace framing header
|
|
|
return the libtrace link type for this packet
|
|
|
return the timestamp of this packet.
|
|
|
return the timeval of this packet.
|
|
|
return the original length of the packet on the wire.
|
|
|
return information about this trace format to standard out
|
|
|
initialise an trace (or NULL if input is not supported)
|
|
|
initialise output traces (or NULL if output not supported)
|
|
|
the uri name of this module
|
|
|
next pointer, should be NULL
|
|
|
pause an trace (or NULL if input not supported)
|
|
|
read a packet from a trace into the provided packet structure
|
|
|
move the pointer within the trace.
|
|
|
move the pointer within the trace.
|
|
|
move the pointer within the trace.
|
|
|
truncate (snap) the packet
|
|
|
set the direction of this packet
|
|
|
start/unpause an trace (or NULL if input not supported)
|
|
|
start output traces (or NULL if output not supported) There is no pause for output traces, as packets are not arriving asyncronously
|
|
|
return the next event from this source
|
|
|
the RT protocol type of this module
|
|
|
the version of this module
|
|
|
write a packet to a trace from the provided packet (or NULL if output not supported)
|
1.4.2