FD.io VPP  v21.01.1
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_close (pcap_main_t *pm)
 Write out data to output file. More...
 
clib_error_tpcap_write (pcap_main_t *pm)
 Write PCAP 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 67 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 41 of file pcap_funcs.h.

+ Here is the caller graph for this function:

◆ pcap_close()

clib_error_t* pcap_close ( pcap_main_t pm)

Write out data to output file.

Close the file created by pcap_write function.

Write out data to output file.

Close the file created by pcap_write function.

Returns
rc - clib_error_t

Definition at line 74 of file pcap.c.

+ 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 176 of file pcap.c.

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

◆ pcap_write()

clib_error_t* pcap_write ( pcap_main_t pm)

Write PCAP 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: