![]() |
FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
Definitions for punt infrastructure. More...
Include dependency graph for punt.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | punt_packetdesc_t |
| struct | punt_client_t |
| struct | punt_thread_data_t_ |
| struct | punt_main_t |
| struct | punt_socket_detail_t_ |
Macros | |
| #define | punt_error(n, s) PUNT_ERROR_##n, |
| #define | PUNT_PACKETDESC_VERSION 1 |
Typedefs | |
| typedef struct punt_thread_data_t_ | punt_thread_data_t |
| typedef struct punt_socket_detail_t_ | punt_socket_detail_t |
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) |
| punt_socket_detail_t * | punt_socket_entries (u8 ipv) |
Variables | |
| punt_main_t | punt_main |
Definitions for punt infrastructure.
Definition in file punt.h.
| typedef struct punt_socket_detail_t_ punt_socket_detail_t |
| typedef struct punt_thread_data_t_ punt_thread_data_t |
| enum punt_action_e |
| enum punt_error_t |
| punt_socket_detail_t* punt_socket_entries | ( | u8 | ipv | ) |
| 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 708 of file punt.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 |