FD.io VPP
v21.01.1
Vector Packet Processing
|
Deterministic NAT (CGN) outside to inside translation. More...
Go to the source code of this file.
Data Structures | |
struct | det44_out2in_trace_t |
Macros | |
#define | foreach_det44_out2in_error |
Enumerations | |
enum | det44_out2in_next_t { DET44_OUT2IN_NEXT_DROP, DET44_OUT2IN_NEXT_LOOKUP, DET44_OUT2IN_NEXT_ICMP_ERROR, DET44_OUT2IN_N_NEXT } |
enum | det44_out2in_error_t { DET44_OUT2IN_N_ERROR } |
Functions | |
static u8 * | format_det44_out2in_trace (u8 *s, va_list *args) |
u32 | icmp_match_out2in_det (vlib_node_runtime_t *node, u32 thread_index, vlib_buffer_t *b0, ip4_header_t *ip0, ip4_address_t *addr, u16 *port, u32 *fib_index, nat_protocol_t *proto, void *d, void *e, u8 *dont_translate) |
Get address and port values to be used for ICMP packet translation and create session if needed. More... | |
u32 | det44_icmp_out2in (vlib_buffer_t *b0, ip4_header_t *ip0, icmp46_header_t *icmp0, u32 sw_if_index0, u32 rx_fib_index0, vlib_node_runtime_t *node, u32 next0, u32 thread_index, void *d, void *e) |
VLIB_NODE_FN() | det44_out2in_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
Variables | |
static char * | det44_out2in_error_strings [] |
vlib_node_registration_t | det44_out2in_node |
(constructor) VLIB_REGISTER_NODE (det44_out2in_node) More... | |
Deterministic NAT (CGN) outside to inside translation.
Definition in file det44_out2in.c.
#define foreach_det44_out2in_error |
Definition at line 50 of file det44_out2in.c.
enum det44_out2in_error_t |
Enumerator | |
---|---|
DET44_OUT2IN_N_ERROR |
Definition at line 56 of file det44_out2in.c.
enum det44_out2in_next_t |
Enumerator | |
---|---|
DET44_OUT2IN_NEXT_DROP | |
DET44_OUT2IN_NEXT_LOOKUP | |
DET44_OUT2IN_NEXT_ICMP_ERROR | |
DET44_OUT2IN_N_NEXT |
Definition at line 35 of file det44_out2in.c.
u32 det44_icmp_out2in | ( | vlib_buffer_t * | b0, |
ip4_header_t * | ip0, | ||
icmp46_header_t * | icmp0, | ||
u32 | sw_if_index0, | ||
u32 | rx_fib_index0, | ||
vlib_node_runtime_t * | node, | ||
u32 | next0, | ||
u32 | thread_index, | ||
void * | d, | ||
void * | e | ||
) |
Definition at line 233 of file det44_out2in.c.
VLIB_NODE_FN() det44_out2in_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
Definition at line 71 of file det44_out2in.c.
u32 icmp_match_out2in_det | ( | vlib_node_runtime_t * | node, |
u32 | thread_index, | ||
vlib_buffer_t * | b0, | ||
ip4_header_t * | ip0, | ||
ip4_address_t * | addr, | ||
u16 * | port, | ||
u32 * | fib_index, | ||
nat_protocol_t * | proto, | ||
void * | d, | ||
void * | e, | ||
u8 * | dont_translate | ||
) |
Get address and port values to be used for ICMP packet translation and create session if needed.
[in,out] | node | NAT node runtime |
[in] | thread_index | thread index |
[in,out] | b0 | buffer containing packet to be translated |
[in,out] | ip0 | ip header |
[out] | p_proto | protocol used for matching |
[out] | p_value | address and port after NAT translation |
[out] | p_dont_translate | if packet should not be translated |
d | optional parameter | |
e | optional parameter |
Definition at line 100 of file det44_out2in.c.
|
static |
Definition at line 64 of file det44_out2in.c.
vlib_node_registration_t det44_out2in_node |
(constructor) VLIB_REGISTER_NODE (det44_out2in_node)
Definition at line 819 of file det44_out2in.c.