FD.io VPP  v21.06-3-gbb25fbf28
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

◆ MIN

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

Definition at line 85 of file af_packet.h.

Function Documentation

◆ af_packet_create_if()

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

Definition at line 235 of file af_packet.c.

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

◆ af_packet_delete_if()

int af_packet_delete_if ( vlib_main_t vm,
u8 host_if_name 
)

Definition at line 441 of file af_packet.c.

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

◆ af_packet_dump_ifs()

int af_packet_dump_ifs ( af_packet_if_detail_t **  out_af_packet_ifs)

Definition at line 525 of file af_packet.c.

+ Here is the caller graph for this function:

◆ af_packet_set_l4_cksum_offload()

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

Definition at line 501 of file af_packet.c.

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

Variable Documentation

◆ af_packet_device_class

vnet_device_class_t af_packet_device_class

◆ af_packet_input_node

vlib_node_registration_t af_packet_input_node

(constructor) VLIB_REGISTER_NODE (af_packet_input_node)

Definition at line 391 of file node.c.

◆ af_packet_main

af_packet_main_t af_packet_main

Definition at line 39 of file af_packet.c.

◆ format_af_packet_device_name

format_function_t format_af_packet_device_name

Definition at line 83 of file af_packet.h.