FD.io VPP
v20.01-48-g3e0dafb74
Vector Packet Processing
|
Deterministic/CGN NAT44 inside to outside network translation. More...
Go to the source code of this file.
Data Structures | |
struct | nat_det_in2out_trace_t |
Macros | |
#define | foreach_nat_det_in2out_error |
Functions | |
static u8 * | format_nat_det_in2out_trace (u8 *s, va_list *args) |
u32 | icmp_match_in2out_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_in2out_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
Variables | |
static char * | nat_det_in2out_error_strings [] |
vlib_node_registration_t | snat_det_in2out_node |
(constructor) VLIB_REGISTER_NODE (snat_det_in2out_node) More... | |
Deterministic/CGN NAT44 inside to outside network translation.
Definition in file nat_det_in2out.c.
#define foreach_nat_det_in2out_error |
Definition at line 45 of file nat_det_in2out.c.
Enumerator | |
---|---|
NAT_DET_IN2OUT_N_ERROR |
Definition at line 52 of file nat_det_in2out.c.
Enumerator | |
---|---|
NAT_DET_IN2OUT_NEXT_LOOKUP | |
NAT_DET_IN2OUT_NEXT_DROP | |
NAT_DET_IN2OUT_NEXT_ICMP_ERROR | |
NAT_DET_IN2OUT_N_NEXT |
Definition at line 37 of file nat_det_in2out.c.
u32 icmp_match_in2out_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_in2out.c.
VLIB_NODE_FN() snat_det_in2out_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
|
static |
Definition at line 60 of file nat_det_in2out.c.
vlib_node_registration_t snat_det_in2out_node |
(constructor) VLIB_REGISTER_NODE (snat_det_in2out_node)
Definition at line 890 of file nat_det_in2out.c.