FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
af_packet.h File Reference
+ Include dependency graph for af_packet.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  af_packet_if_detail_t
 
struct  af_packet_if_t
 
struct  af_packet_main_t
 

Macros

#define MIN(x, y)   (((x)<(y))?(x):(y))
 

Functions

int af_packet_create_if (vlib_main_t *vm, u8 *host_if_name, u8 *hw_addr_set, u32 *sw_if_index)
 
int af_packet_delete_if (vlib_main_t *vm, u8 *host_if_name)
 
int af_packet_set_l4_cksum_offload (vlib_main_t *vm, u32 sw_if_index, u8 set)
 
int af_packet_dump_ifs (af_packet_if_detail_t **out_af_packet_ifs)
 

Variables

af_packet_main_t af_packet_main
 
vnet_device_class_t af_packet_device_class
 
vlib_node_registration_t af_packet_input_node
 (constructor) VLIB_REGISTER_NODE (af_packet_input_node) More...
 
format_function_t format_af_packet_device_name
 

Macro Definition Documentation

#define MIN (   x,
 
)    (((x)<(y))?(x):(y))

Definition at line 83 of file af_packet.h.

Function Documentation

int af_packet_create_if ( vlib_main_t vm,
u8 host_if_name,
u8 hw_addr_set,
u32 sw_if_index 
)

Definition at line 212 of file af_packet.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int af_packet_delete_if ( vlib_main_t vm,
u8 host_if_name 
)

Definition at line 395 of file af_packet.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int af_packet_dump_ifs ( af_packet_if_detail_t **  out_af_packet_ifs)

Definition at line 475 of file af_packet.c.

+ Here is the caller graph for this function:

int af_packet_set_l4_cksum_offload ( vlib_main_t vm,
u32  sw_if_index,
u8  set 
)

Definition at line 456 of file af_packet.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vnet_device_class_t af_packet_device_class
vlib_node_registration_t af_packet_input_node

(constructor) VLIB_REGISTER_NODE (af_packet_input_node)

Definition at line 369 of file node.c.

af_packet_main_t af_packet_main

Definition at line 37 of file af_packet.c.

format_function_t format_af_packet_device_name

Definition at line 81 of file af_packet.h.