FD.io VPP
v17.07-30-g839fa73
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | snat_ipfix_logging_main_t |
Enumerations | |
enum | nat_event_t { NAT_ADDRESSES_EXHAUTED = 3, NAT44_SESSION_CREATE = 4, NAT44_SESSION_DELETE = 5, NAT_PORTS_EXHAUSTED = 12, QUOTA_EXCEEDED = 13 } |
enum | quota_exceed_event_t { MAX_ENTRIES_PER_USER = 3 } |
Functions | |
void | snat_ipfix_logging_init (vlib_main_t *vm) |
Initialize SNAT IPFIX logging. More... | |
int | snat_ipfix_logging_enable_disable (int enable, u32 domain_id, u16 src_port) |
Enable/disable SNAT IPFIX logging. More... | |
void | snat_ipfix_logging_nat44_ses_create (u32 src_ip, u32 nat_src_ip, snat_protocol_t snat_proto, u16 src_port, u16 nat_src_port, u32 vrf_id) |
Generate NAT44 session create event. More... | |
void | snat_ipfix_logging_nat44_ses_delete (u32 src_ip, u32 nat_src_ip, snat_protocol_t snat_proto, u16 src_port, u16 nat_src_port, u32 vrf_id) |
Generate NAT44 session delete event. More... | |
void | snat_ipfix_logging_addresses_exhausted (u32 pool_id) |
Generate NAT addresses exhausted event. More... | |
void | snat_ipfix_logging_max_entries_per_user (u32 src_ip) |
Generate maximum entries per user exceeded event. More... | |
Variables | |
snat_ipfix_logging_main_t | snat_ipfix_logging_main |
enum nat_event_t |
Enumerator | |
---|---|
NAT_ADDRESSES_EXHAUTED | |
NAT44_SESSION_CREATE | |
NAT44_SESSION_DELETE | |
NAT_PORTS_EXHAUSTED | |
QUOTA_EXCEEDED |
Definition at line 20 of file snat_ipfix_logging.h.
enum quota_exceed_event_t |
Enumerator | |
---|---|
MAX_ENTRIES_PER_USER |
Definition at line 28 of file snat_ipfix_logging.h.
void snat_ipfix_logging_addresses_exhausted | ( | u32 | pool_id | ) |
Generate NAT addresses exhausted event.
pool_id | NAT pool ID |
Definition at line 696 of file snat_ipfix_logging.c.
Enable/disable SNAT IPFIX logging.
enable | 1 if enable, 0 if disable |
domain_id | observation domain ID |
src_port | source port number |
Definition at line 763 of file snat_ipfix_logging.c.
void snat_ipfix_logging_init | ( | vlib_main_t * | vm | ) |
Initialize SNAT IPFIX logging.
vm | vlib main |
Definition at line 826 of file snat_ipfix_logging.c.
void snat_ipfix_logging_max_entries_per_user | ( | u32 | src_ip | ) |
Generate maximum entries per user exceeded event.
src_ip | source IPv4 address |
Definition at line 731 of file snat_ipfix_logging.c.
void snat_ipfix_logging_nat44_ses_create | ( | u32 | src_ip, |
u32 | nat_src_ip, | ||
snat_protocol_t | snat_proto, | ||
u16 | src_port, | ||
u16 | nat_src_port, | ||
u32 | vrf_id | ||
) |
Generate NAT44 session create event.
src_ip | source IPv4 address |
nat_src_ip | transaltes source IPv4 address |
snat_proto | SNAT transport protocol |
src_port | source port |
nat_src_port | translated source port |
vrf_id | VRF ID |
Definition at line 619 of file snat_ipfix_logging.c.
void snat_ipfix_logging_nat44_ses_delete | ( | u32 | src_ip, |
u32 | nat_src_ip, | ||
snat_protocol_t | snat_proto, | ||
u16 | src_port, | ||
u16 | nat_src_port, | ||
u32 | vrf_id | ||
) |
Generate NAT44 session delete event.
src_ip | source IPv4 address |
nat_src_ip | transaltes source IPv4 address |
snat_proto | SNAT transport protocol |
src_port | source port |
nat_src_port | translated source port |
vrf_id | VRF ID |
Definition at line 651 of file snat_ipfix_logging.c.
snat_ipfix_logging_main_t snat_ipfix_logging_main |
Definition at line 23 of file snat_ipfix_logging.c.