FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
pcap_funcs.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

clib_error_tpcap_write (pcap_main_t *pm)
 Write out data to output file. More...
 
clib_error_tpcap_read (pcap_main_t *pm)
 Read data from file. More...
 
static void * pcap_add_packet (pcap_main_t *pm, f64 time_now, u32 n_bytes_in_trace, u32 n_bytes_in_packet)
 Add packet. More...
 
static void pcap_add_buffer (pcap_main_t *pm, struct vlib_main_t *vm, u32 buffer_index, u32 n_bytes_in_trace)
 Add buffer (vlib_buffer_t) to the trace. More...
 

Function Documentation

◆ pcap_add_buffer()

static void pcap_add_buffer ( pcap_main_t pm,
struct vlib_main_t vm,
u32  buffer_index,
u32  n_bytes_in_trace 
)
inlinestatic

Add buffer (vlib_buffer_t) to the trace.

Parameters
*pm- pcap_main_t
*vm- vlib_main_t
buffer_index- u32
n_bytes_in_trace- u32

Definition at line 63 of file pcap_funcs.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pcap_add_packet()

static void* pcap_add_packet ( pcap_main_t pm,
f64  time_now,
u32  n_bytes_in_trace,
u32  n_bytes_in_packet 
)
inlinestatic

Add packet.

Parameters
*pm- pcap_main_t
time_now- f64
n_bytes_in_trace- u32
n_bytes_in_packet- u32
Returns
Packet Data

Definition at line 37 of file pcap_funcs.h.

+ Here is the caller graph for this function:

◆ pcap_read()

clib_error_t* pcap_read ( pcap_main_t pm)

Read data from file.

Read data from file.

Returns
rc - clib_error_t

Definition at line 179 of file pcap.c.

+ Here is the caller graph for this function:

◆ pcap_write()

clib_error_t* pcap_write ( pcap_main_t pm)

Write out data to output file.

Write out data to output file.

Returns
rc - clib_error_t

Definition at line 89 of file pcap.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: