Go to the source code of this file.
|
unsigned int | if_nametoindex (const char *ifname) |
|
static u32 | af_packet_eth_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hi, u32 flags) |
|
static clib_error_t * | af_packet_fd_read_ready (clib_file_t *uf) |
|
static int | is_bridge (const u8 *host_if_name) |
|
static int | create_packet_v2_sock (int host_if_index, tpacket_req_t *rx_req, tpacket_req_t *tx_req, int *fd, u8 **ring) |
|
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) |
|
static clib_error_t * | af_packet_init (vlib_main_t *vm) |
|
◆ AF_PACKET_RX_BLOCK_NR
#define AF_PACKET_RX_BLOCK_NR 1 |
◆ AF_PACKET_RX_BLOCK_SIZE
#define AF_PACKET_RX_BLOCK_SIZE |
Value: AF_PACKET_RX_FRAMES_PER_BLOCK)
#define AF_PACKET_RX_FRAME_SIZE
Definition at line 52 of file af_packet.c.
◆ AF_PACKET_RX_FRAME_NR
#define AF_PACKET_RX_FRAME_NR |
Value: AF_PACKET_RX_FRAMES_PER_BLOCK)
#define AF_PACKET_RX_BLOCK_NR
Definition at line 50 of file af_packet.c.
◆ AF_PACKET_RX_FRAME_SIZE
#define AF_PACKET_RX_FRAME_SIZE (2048 * 5) |
◆ AF_PACKET_RX_FRAMES_PER_BLOCK
#define AF_PACKET_RX_FRAMES_PER_BLOCK 1024 |
◆ AF_PACKET_TX_BLOCK_NR
#define AF_PACKET_TX_BLOCK_NR 1 |
◆ AF_PACKET_TX_BLOCK_SIZE
#define AF_PACKET_TX_BLOCK_SIZE |
Value: AF_PACKET_TX_FRAMES_PER_BLOCK)
#define AF_PACKET_TX_FRAME_SIZE
Definition at line 44 of file af_packet.c.
◆ AF_PACKET_TX_FRAME_NR
#define AF_PACKET_TX_FRAME_NR |
Value: AF_PACKET_TX_FRAMES_PER_BLOCK)
#define AF_PACKET_TX_BLOCK_NR
Definition at line 42 of file af_packet.c.
◆ AF_PACKET_TX_FRAME_SIZE
#define AF_PACKET_TX_FRAME_SIZE (2048 * 5) |
◆ AF_PACKET_TX_FRAMES_PER_BLOCK
#define AF_PACKET_TX_FRAMES_PER_BLOCK 1024 |
◆ tpacket_req_t
◆ 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 |
|
) |
| |
◆ af_packet_delete_if()
◆ af_packet_dump_ifs()
◆ af_packet_eth_flag_change()
◆ af_packet_fd_read_ready()
◆ af_packet_init()
◆ af_packet_set_l4_cksum_offload()
int af_packet_set_l4_cksum_offload |
( |
vlib_main_t * |
vm, |
|
|
u32 |
sw_if_index, |
|
|
u8 |
set |
|
) |
| |
◆ create_packet_v2_sock()
◆ if_nametoindex()
unsigned int if_nametoindex |
( |
const char * |
ifname | ) |
|
◆ is_bridge()
static int is_bridge |
( |
const u8 * |
host_if_name | ) |
|
|
static |
◆ af_packet_main