FD.io VPP  v16.09
Vector Packet Processing
snat.h File Reference
+ Include dependency graph for snat.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  snat_session_key_t
 
struct  snat_user_key_t
 
struct  snat_user_t
 
struct  snat_address_t
 
struct  snat_main_t
 
struct  snat_runtime_t
 
struct  icmp_echo_header_t
 

Macros

#define SNAT_SESSION_STATIC   (1<<0)
 

Enumerations

enum  snat_protocol_t { SNAT_PROTOCOL_UDP = 0, SNAT_PROTOCOL_TCP, SNAT_PROTOCOL_ICMP }
 

Functions

typedef CLIB_PACKED (struct{snat_session_key_t out2in;snat_session_key_t in2out;u32 flags;u32 per_user_index;u32 per_user_list_head_index;f64 last_heard;u64 total_bytes;u32 total_pkts;u32 outside_address_index;}) snat_session_t
 
void snat_free_outside_address_and_port (snat_main_t *sm, snat_session_key_t *k, u32 address_index)
 
int snat_alloc_outside_address_and_port (snat_main_t *sm, snat_session_key_t *k, u32 *address_indexp)
 

Variables

snat_main_t snat_main
 
vlib_node_registration_t snat_in2out_node
 (constructor) VLIB_REGISTER_NODE (snat_in2out_node) More...
 
vlib_node_registration_t snat_out2in_node
 (constructor) VLIB_REGISTER_NODE (snat_out2in_node) More...
 
format_function_t format_snat_user
 

Macro Definition Documentation

#define SNAT_SESSION_STATIC   (1<<0)

Definition at line 90 of file snat.h.

Enumeration Type Documentation

Enumerator
SNAT_PROTOCOL_UDP 
SNAT_PROTOCOL_TCP 
SNAT_PROTOCOL_ICMP 

Definition at line 59 of file snat.h.

Function Documentation

typedef CLIB_PACKED ( struct{snat_session_key_t out2in;snat_session_key_t in2out;u32 flags;u32 per_user_index;u32 per_user_list_head_index;f64 last_heard;u64 total_bytes;u32 total_pkts;u32 outside_address_index;}  )
int snat_alloc_outside_address_and_port ( snat_main_t sm,
snat_session_key_t k,
u32 address_indexp 
)

Definition at line 379 of file snat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void snat_free_outside_address_and_port ( snat_main_t sm,
snat_session_key_t k,
u32  address_index 
)

Definition at line 361 of file snat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

format_function_t format_snat_user

Definition at line 163 of file snat.h.

vlib_node_registration_t snat_in2out_node

(constructor) VLIB_REGISTER_NODE (snat_in2out_node)

Definition at line 28 of file in2out.c.

snat_main_t snat_main

Definition at line 27 of file snat.c.

vlib_node_registration_t snat_out2in_node

(constructor) VLIB_REGISTER_NODE (snat_out2in_node)

Definition at line 28 of file out2in.c.