FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
NAT44 hairpinning. More...
Go to the source code of this file.
Macros | |
#define | foreach_nat44_hairpin_error _(PROCESSED, "NAT44 hairpinning packets processed") |
Variables | |
static char * | nat44_hairpin_error_strings [] |
vnet_feature_arc_registration_t | vnet_feat_arc_ip4_local |
vlib_node_registration_t | nat44_hairpinning_node |
(constructor) VLIB_REGISTER_NODE (nat44_hairpinning_node) More... | |
vlib_node_registration_t | nat44_ed_hairpinning_node |
(constructor) VLIB_REGISTER_NODE (nat44_ed_hairpinning_node) More... | |
vlib_node_registration_t | snat_hairpin_dst_node |
(constructor) VLIB_REGISTER_NODE (snat_hairpin_dst_node) More... | |
vlib_node_registration_t | nat44_ed_hairpin_dst_node |
(constructor) VLIB_REGISTER_NODE (nat44_ed_hairpin_dst_node) More... | |
vlib_node_registration_t | snat_hairpin_src_node |
(constructor) VLIB_REGISTER_NODE (snat_hairpin_src_node) More... | |
vlib_node_registration_t | nat44_ed_hairpin_src_node |
(constructor) VLIB_REGISTER_NODE (nat44_ed_hairpin_src_node) More... | |
NAT44 hairpinning.
Definition in file nat44_hairpinning.c.
#define foreach_nat44_hairpin_error _(PROCESSED, "NAT44 hairpinning packets processed") |
Definition at line 43 of file nat44_hairpinning.c.
Enumerator | |
---|---|
NAT44_HAIRPIN_N_ERROR |
Definition at line 46 of file nat44_hairpinning.c.
enum nat_hairpin_next_t |
Enumerator | |
---|---|
NAT_HAIRPIN_NEXT_LOOKUP | |
NAT_HAIRPIN_NEXT_DROP | |
NAT_HAIRPIN_N_NEXT |
Definition at line 36 of file nat44_hairpinning.c.
Enumerator | |
---|---|
SNAT_HAIRPIN_SRC_NEXT_DROP | |
SNAT_HAIRPIN_SRC_NEXT_SNAT_IN2OUT | |
SNAT_HAIRPIN_SRC_NEXT_SNAT_IN2OUT_WH | |
SNAT_HAIRPIN_SRC_NEXT_INTERFACE_OUTPUT | |
SNAT_HAIRPIN_SRC_N_NEXT |
Definition at line 27 of file nat44_hairpinning.c.
static_always_inline int is_hairpinning | ( | snat_main_t * | sm, |
ip4_address_t * | dst_addr | ||
) |
VLIB_NODE_FN() nat44_ed_hairpin_dst_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
VLIB_NODE_FN() nat44_ed_hairpin_src_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
VLIB_NODE_FN() nat44_ed_hairpinning_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
void nat44_ed_hairpinning_unknown_proto | ( | snat_main_t * | sm, |
vlib_buffer_t * | b, | ||
ip4_header_t * | ip | ||
) |
Definition at line 382 of file nat44_hairpinning.c.
|
inlinestatic |
Definition at line 541 of file nat44_hairpinning.c.
VLIB_NODE_FN() nat44_hairpinning_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
void nat44_reass_hairpinning | ( | snat_main_t * | sm, |
vlib_buffer_t * | b0, | ||
ip4_header_t * | ip0, | ||
u16 | sport, | ||
u16 | dport, | ||
u32 | proto0, | ||
int | is_ed | ||
) |
Definition at line 429 of file nat44_hairpinning.c.
void nat_hairpinning_sm_unknown_proto | ( | snat_main_t * | sm, |
vlib_buffer_t * | b, | ||
ip4_header_t * | ip | ||
) |
Definition at line 355 of file nat44_hairpinning.c.
|
inlinestatic |
Definition at line 657 of file nat44_hairpinning.c.
VLIB_NODE_FN() snat_hairpin_dst_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
|
inlinestatic |
Definition at line 789 of file nat44_hairpinning.c.
VLIB_NODE_FN() snat_hairpin_src_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame | ||
) |
int snat_hairpinning | ( | snat_main_t * | sm, |
vlib_buffer_t * | b0, | ||
ip4_header_t * | ip0, | ||
udp_header_t * | udp0, | ||
tcp_header_t * | tcp0, | ||
u32 | proto0, | ||
int | is_ed | ||
) |
Definition at line 90 of file nat44_hairpinning.c.
u32 snat_icmp_hairpinning | ( | snat_main_t * | sm, |
vlib_buffer_t * | b0, | ||
ip4_header_t * | ip0, | ||
icmp46_header_t * | icmp0, | ||
int | is_ed | ||
) |
Definition at line 199 of file nat44_hairpinning.c.
vlib_node_registration_t nat44_ed_hairpin_dst_node |
(constructor) VLIB_REGISTER_NODE (nat44_ed_hairpin_dst_node)
Definition at line 774 of file nat44_hairpinning.c.
vlib_node_registration_t nat44_ed_hairpin_src_node |
(constructor) VLIB_REGISTER_NODE (nat44_ed_hairpin_src_node)
Definition at line 898 of file nat44_hairpinning.c.
vlib_node_registration_t nat44_ed_hairpinning_node |
(constructor) VLIB_REGISTER_NODE (nat44_ed_hairpinning_node)
Definition at line 642 of file nat44_hairpinning.c.
|
static |
Definition at line 54 of file nat44_hairpinning.c.
vlib_node_registration_t nat44_hairpinning_node |
(constructor) VLIB_REGISTER_NODE (nat44_hairpinning_node)
Definition at line 620 of file nat44_hairpinning.c.
vlib_node_registration_t snat_hairpin_dst_node |
(constructor) VLIB_REGISTER_NODE (snat_hairpin_dst_node)
Definition at line 752 of file nat44_hairpinning.c.
vlib_node_registration_t snat_hairpin_src_node |
(constructor) VLIB_REGISTER_NODE (snat_hairpin_src_node)
Definition at line 874 of file nat44_hairpinning.c.
vnet_feature_arc_registration_t vnet_feat_arc_ip4_local |