FD.io VPP
v19.04-6-g6f05f72
Vector Packet Processing
|
Deterministic/CGN NAT44 outside to inside network translation. More...
Go to the source code of this file.
Data Structures | |
struct | nat_det_out2in_trace_t |
Macros | |
#define | foreach_nat_det_out2in_error |
Functions | |
static u8 * | format_nat_det_out2in_trace (u8 *s, va_list *args) |
u32 | icmp_match_out2in_det (snat_main_t *sm, vlib_node_runtime_t *node, u32 thread_index, vlib_buffer_t *b0, ip4_header_t *ip0, u8 *p_proto, snat_session_key_t *p_value, u8 *p_dont_translate, void *d, void *e) |
Get address and port values to be used for ICMP packet translation and create session if needed. More... | |
VLIB_NODE_FN() | snat_det_out2in_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
Variables | |
static char * | nat_det_out2in_error_strings [] |
vlib_node_registration_t | snat_det_out2in_node |
(constructor) VLIB_REGISTER_NODE (snat_det_out2in_node) More... | |
Deterministic/CGN NAT44 outside to inside network translation.
Definition in file nat_det_out2in.c.
#define foreach_nat_det_out2in_error |
Definition at line 45 of file nat_det_out2in.c.
Enumerator | |
---|---|
SNAT_OUT2IN_N_ERROR |
Definition at line 51 of file nat_det_out2in.c.
Enumerator | |
---|---|
NAT_DET_OUT2IN_NEXT_DROP | |
NAT_DET_OUT2IN_NEXT_LOOKUP | |
NAT_DET_OUT2IN_NEXT_ICMP_ERROR | |
NAT_DET_OUT2IN_N_NEXT |
Definition at line 30 of file nat_det_out2in.c.
u32 icmp_match_out2in_det | ( | snat_main_t * | sm, |
vlib_node_runtime_t * | node, | ||
u32 | thread_index, | ||
vlib_buffer_t * | b0, | ||
ip4_header_t * | ip0, | ||
u8 * | p_proto, | ||
snat_session_key_t * | p_value, | ||
u8 * | p_dont_translate, | ||
void * | d, | ||
void * | e | ||
) |
Get address and port values to be used for ICMP packet translation and create session if needed.
[in,out] | sm | NAT main |
[in,out] | node | NAT node runtime |
[in] | thread_index | thread index |
[in,out] | b0 | buffer containing packet to be translated |
[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 95 of file nat_det_out2in.c.
VLIB_NODE_FN() snat_det_out2in_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
|
static |
Definition at line 59 of file nat_det_out2in.c.
vlib_node_registration_t snat_det_out2in_node |
(constructor) VLIB_REGISTER_NODE (snat_det_out2in_node)
Definition at line 690 of file nat_det_out2in.c.