Go to the source code of this file.
|
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...
|
|
Enumerator |
---|
NAT_ADDRESSES_EXHAUTED |
|
NAT44_SESSION_CREATE |
|
NAT44_SESSION_DELETE |
|
NAT_PORTS_EXHAUSTED |
|
Definition at line 20 of file snat_ipfix_logging.h.
void snat_ipfix_logging_addresses_exhausted |
( |
u32 |
pool_id | ) |
|
int snat_ipfix_logging_enable_disable |
( |
int |
enable, |
|
|
u32 |
domain_id, |
|
|
u16 |
src_port |
|
) |
| |
Enable/disable SNAT IPFIX logging.
- Parameters
-
enable | 1 if enable, 0 if disable |
domain_id | observation domain ID |
src_port | source port number |
- Returns
- 0 if success
Definition at line 596 of file snat_ipfix_logging.c.
Generate NAT44 session create event.
- Parameters
-
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 487 of file snat_ipfix_logging.c.
Generate NAT44 session delete event.
- Parameters
-
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 519 of file snat_ipfix_logging.c.