FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
nat_ipfix_logging.h File Reference
+ This graph shows which files directly or indirectly include this file:

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 NAT plugin IPFIX logging. More...
 
int snat_ipfix_logging_enable_disable (int enable, u32 domain_id, u16 src_port)
 Enable/disable NAT plugin 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
 

Enumeration Type Documentation

Enumerator
NAT_ADDRESSES_EXHAUTED 
NAT44_SESSION_CREATE 
NAT44_SESSION_DELETE 
NAT_PORTS_EXHAUSTED 
QUOTA_EXCEEDED 

Definition at line 20 of file nat_ipfix_logging.h.

Enumerator
MAX_ENTRIES_PER_USER 

Definition at line 28 of file nat_ipfix_logging.h.

Function Documentation

void snat_ipfix_logging_addresses_exhausted ( u32  pool_id)

Generate NAT addresses exhausted event.

Parameters
pool_idNAT pool ID

Definition at line 707 of file nat_ipfix_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int snat_ipfix_logging_enable_disable ( int  enable,
u32  domain_id,
u16  src_port 
)

Enable/disable NAT plugin IPFIX logging.

Parameters
enable1 if enable, 0 if disable
domain_idobservation domain ID
src_portsource port number
Returns
0 if success

Definition at line 776 of file nat_ipfix_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void snat_ipfix_logging_init ( vlib_main_t vm)

Initialize NAT plugin IPFIX logging.

Parameters
vmvlib main

Definition at line 839 of file nat_ipfix_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void snat_ipfix_logging_max_entries_per_user ( u32  src_ip)

Generate maximum entries per user exceeded event.

Parameters
src_ipsource IPv4 address

Definition at line 743 of file nat_ipfix_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

Parameters
src_ipsource IPv4 address
nat_src_iptransaltes source IPv4 address
snat_protoNAT transport protocol
src_portsource port
nat_src_porttranslated source port
vrf_idVRF ID

Definition at line 629 of file nat_ipfix_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

Parameters
src_ipsource IPv4 address
nat_src_iptransaltes source IPv4 address
snat_protoNAT transport protocol
src_portsource port
nat_src_porttranslated source port
vrf_idVRF ID

Definition at line 662 of file nat_ipfix_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

snat_ipfix_logging_main_t snat_ipfix_logging_main

Definition at line 23 of file nat_ipfix_logging.c.