FD.io VPP
v21.01.1
Vector Packet Processing
|
Deterministic NAT (CGN) inlines. More...
Go to the source code of this file.
Functions | |
static_always_inline int | det44_is_interface_addr (vlib_node_runtime_t *node, u32 sw_if_index0, u32 ip4_addr) |
static_always_inline int | det44_translate (vlib_node_runtime_t *node, u32 sw_if_index0, ip4_header_t *ip0, u32 proto0, u32 rx_fib_index0) |
Check if packet should be translated. More... | |
Deterministic NAT (CGN) inlines.
Definition in file det44_inlines.h.
static_always_inline int det44_is_interface_addr | ( | vlib_node_runtime_t * | node, |
u32 | sw_if_index0, | ||
u32 | ip4_addr | ||
) |
Definition at line 27 of file det44_inlines.h.
static_always_inline int det44_translate | ( | vlib_node_runtime_t * | node, |
u32 | sw_if_index0, | ||
ip4_header_t * | ip0, | ||
u32 | proto0, | ||
u32 | rx_fib_index0 | ||
) |
Check if packet should be translated.
Packets aimed at outside interface and external address with active session should be translated.
node | NAT runtime data |
sw_if_index0 | index of the inside interface |
ip0 | IPv4 header |
proto0 | NAT protocol |
rx_fib_index0 | RX FIB index |
Definition at line 64 of file det44_inlines.h.