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) |
|
static clib_error_t * | af_packet_init (vlib_main_t *vm) |
|
#define AF_PACKET_DEBUG_SOCKET 0 |
#define AF_PACKET_RX_BLOCK_NR 1 |
#define AF_PACKET_RX_BLOCK_SIZE |
Value:#define AF_PACKET_RX_FRAMES_PER_BLOCK
#define AF_PACKET_RX_FRAME_SIZE
Definition at line 52 of file af_packet.c.
#define AF_PACKET_RX_FRAME_NR |
Value:#define AF_PACKET_RX_BLOCK_NR
#define AF_PACKET_RX_FRAMES_PER_BLOCK
Definition at line 50 of file af_packet.c.
#define AF_PACKET_RX_FRAME_SIZE (2048 * 5) |
#define AF_PACKET_RX_FRAMES_PER_BLOCK 1024 |
#define AF_PACKET_TX_BLOCK_NR 1 |
#define AF_PACKET_TX_BLOCK_SIZE |
Value:#define AF_PACKET_TX_FRAMES_PER_BLOCK
#define AF_PACKET_TX_FRAME_SIZE
Definition at line 44 of file af_packet.c.
#define AF_PACKET_TX_FRAME_NR |
Value:#define AF_PACKET_TX_BLOCK_NR
#define AF_PACKET_TX_FRAMES_PER_BLOCK
Definition at line 42 of file af_packet.c.
#define AF_PACKET_TX_FRAME_SIZE (2048 * 5) |
#define AF_PACKET_TX_FRAMES_PER_BLOCK 1024 |
#define DBG_SOCK |
( |
|
args... | ) |
|
int af_packet_create_if |
( |
vlib_main_t * |
vm, |
|
|
u8 * |
host_if_name, |
|
|
u8 * |
hw_addr_set, |
|
|
u32 * |
sw_if_index |
|
) |
| |
int af_packet_set_l4_cksum_offload |
( |
vlib_main_t * |
vm, |
|
|
u32 |
sw_if_index, |
|
|
u8 |
set |
|
) |
| |
unsigned int if_nametoindex |
( |
const char * |
ifname | ) |
|
static int is_bridge |
( |
const u8 * |
host_if_name | ) |
|
|
static |