FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
NAT port/address allocation lib. More...
Go to the source code of this file.
Data Structures | |
struct | nat_timeouts_t |
Macros | |
#define | foreach_nat_config_flag |
#define | foreach_nat_counter _ (tcp) _ (udp) _ (icmp) _ (other) _ (drops) |
#define | foreach_nat_error |
#define | foreach_nat_protocol |
#define | NAT_UDP_TIMEOUT 300 |
#define | NAT_TCP_TRANSITORY_TIMEOUT 240 |
#define | NAT_TCP_ESTABLISHED_TIMEOUT 7440 |
#define | NAT_ICMP_TIMEOUT 60 |
Typedefs | |
typedef enum nat_config_flags_t_ | nat_config_flags_t |
Enumerations | |
enum | nat_config_flags_t_ { foreach_nat_config_flag } |
enum | nat_error_t { foreach_nat_error } |
enum | nat_protocol_t { foreach_nat_protocol } |
Functions | |
static_always_inline void | nat_reset_timeouts (nat_timeouts_t *timeouts) |
static_always_inline u32 | nat_session_get_timeout (nat_timeouts_t *timeouts, nat_protocol_t proto, u8 state) |
static_always_inline u32 | nat_calc_bihash_buckets (u32 n_elts) |
u8 * | format_nat_protocol (u8 *s, va_list *args) |
uword | unformat_nat_protocol (unformat_input_t *input, va_list *args) |
NAT port/address allocation lib.
Definition in file lib.h.
#define foreach_nat_config_flag |
#define foreach_nat_counter _ (tcp) _ (udp) _ (icmp) _ (other) _ (drops) |
#define foreach_nat_error |
#define foreach_nat_protocol |
typedef enum nat_config_flags_t_ nat_config_flags_t |
enum nat_config_flags_t_ |
enum nat_error_t |
enum nat_protocol_t |
static_always_inline u32 nat_calc_bihash_buckets | ( | u32 | n_elts | ) |
static_always_inline void nat_reset_timeouts | ( | nat_timeouts_t * | timeouts | ) |
static_always_inline u32 nat_session_get_timeout | ( | nat_timeouts_t * | timeouts, |
nat_protocol_t | proto, | ||
u8 | state | ||
) |
uword unformat_nat_protocol | ( | unformat_input_t * | input, |
va_list * | args | ||
) |