FD.io VPP
v18.01-8-g0eacf49
Vector Packet Processing
|
Definitions for punt infrastructure. More...
Go to the source code of this file.
Data Structures | |
struct | punt_packetdesc_t |
struct | punt_client_t |
struct | punt_main_t |
Macros | |
#define | punt_error(n, s) PUNT_ERROR_##n, |
#define | PUNT_PACKETDESC_VERSION 1 |
Enumerations | |
enum | punt_error_t { PUNT_N_ERROR } |
enum | punt_action_e { PUNT_L2 = 0, PUNT_IP4_ROUTED, PUNT_IP6_ROUTED } |
Functions | |
clib_error_t * | vnet_punt_add_del (vlib_main_t *vm, u8 ipv, u8 protocol, u16 port, bool is_add) |
Request IP traffic punt to the local TCP/IP stack. More... | |
clib_error_t * | vnet_punt_socket_add (vlib_main_t *vm, u32 header_version, bool is_ip4, u8 protocol, u16 port, char *client_pathname) |
clib_error_t * | vnet_punt_socket_del (vlib_main_t *vm, bool is_ip4, u8 l4_protocol, u16 port) |
char * | vnet_punt_get_server_pathname (void) |
Variables | |
punt_main_t | punt_main |
Definitions for punt infrastructure.
Definition in file punt.h.
enum punt_action_e |
enum punt_error_t |
clib_error_t* vnet_punt_add_del | ( | vlib_main_t * | vm, |
u8 | ipv, | ||
u8 | protocol, | ||
u16 | port, | ||
bool | is_add | ||
) |
Request IP traffic punt to the local TCP/IP stack.
Note
vm | vlib_main_t corresponding to the current thread |
ipv | IP protcol version. 4 - IPv4, 6 - IPv6, ~0 for both IPv6 and IPv4 |
protocol | 8-bits L4 protocol value UDP is 17 TCP is 1 |
port | 16-bits L4 (TCP/IP) port number when applicable (UDP only) |
Definition at line 688 of file punt.c.
char* vnet_punt_get_server_pathname | ( | void | ) |
clib_error_t* vnet_punt_socket_add | ( | vlib_main_t * | vm, |
u32 | header_version, | ||
bool | is_ip4, | ||
u8 | protocol, | ||
u16 | port, | ||
char * | client_pathname | ||
) |
clib_error_t* vnet_punt_socket_del | ( | vlib_main_t * | vm, |
bool | is_ip4, | ||
u8 | l4_protocol, | ||
u16 | port | ||
) |
punt_main_t punt_main |