FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
det44_inlines.h File Reference

Deterministic NAT (CGN) inlines. More...

+ This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Deterministic NAT (CGN) inlines.

Definition in file det44_inlines.h.

Function Documentation

◆ det44_is_interface_addr()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ det44_translate()

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.

Parameters
nodeNAT runtime data
sw_if_index0index of the inside interface
ip0IPv4 header
proto0NAT protocol
rx_fib_index0RX FIB index
Returns
0 if packet should be translated otherwise 1

Definition at line 64 of file det44_inlines.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: