|
static uword | nat_pre_node_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 def_next) |
| The NAT inline functions. More...
|
|
static u8 | is_interface_addr (snat_main_t *sm, vlib_node_runtime_t *node, u32 sw_if_index0, u32 ip4_addr) |
|
static u8 | maximum_sessions_exceeded (snat_main_t *sm, u32 thread_index) |
|
static void | nat_send_all_to_node (vlib_main_t *vm, u32 *bi_vector, vlib_node_runtime_t *node, vlib_error_t *error, u32 next) |
|
static void | user_session_increment (snat_main_t *sm, snat_user_t *u, u8 is_static) |
|
static void | nat44_delete_user_with_no_session (snat_main_t *sm, snat_user_t *u, u32 thread_index) |
|
static void | nat44_delete_session (snat_main_t *sm, snat_session_t *ses, u32 thread_index) |
|
static int | nat44_set_tcp_session_state_i2o (snat_main_t *sm, f64 now, snat_session_t *ses, vlib_buffer_t *b, u32 thread_index) |
| Set TCP session state. More...
|
|
static int | nat44_set_tcp_session_state_o2i (snat_main_t *sm, f64 now, snat_session_t *ses, u8 tcp_flags, u32 tcp_ack_number, u32 tcp_seq_number, u32 thread_index) |
|
static u32 | nat44_session_get_timeout (snat_main_t *sm, snat_session_t *s) |
|
static void | nat44_session_update_counters (snat_session_t *s, f64 now, uword bytes, u32 thread_index) |
|
static void | nat44_session_update_lru (snat_main_t *sm, snat_session_t *s, u32 thread_index) |
| Per-user LRU list maintenance. More...
|
|
static void | make_ed_kv (ip4_address_t *l_addr, ip4_address_t *r_addr, u8 proto, u32 fib_index, u16 l_port, u16 r_port, u64 value, clib_bihash_kv_16_8_t *kv) |
|
static void | split_ed_kv (clib_bihash_kv_16_8_t *kv, ip4_address_t *l_addr, ip4_address_t *r_addr, u8 *proto, u32 *fib_index, u16 *l_port, u16 *r_port) |
|
static void | make_sm_kv (clib_bihash_kv_8_8_t *kv, ip4_address_t *addr, u8 proto, u32 fib_index, u16 port) |
|
static_always_inline int | get_icmp_i2o_ed_key (vlib_buffer_t *b, ip4_header_t *ip0, u32 rx_fib_index, u64 value, u8 *nat_proto, u16 *l_port, u16 *r_port, clib_bihash_kv_16_8_t *kv) |
|
static_always_inline int | get_icmp_o2i_ed_key (vlib_buffer_t *b, ip4_header_t *ip0, u32 rx_fib_index, u64 value, u8 *nat_proto, u16 *l_port, u16 *r_port, clib_bihash_kv_16_8_t *kv) |
|
static void | mss_clamping (snat_main_t *sm, tcp_header_t *tcp, ip_csum_t *sum) |
|
static int | snat_not_translate_fast (snat_main_t *sm, 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...
|
|
static void | increment_v4_address (ip4_address_t *a) |
|