FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | snat_ipfix_per_thread_data_t |
struct | snat_ipfix_logging_main_t |
Enumerations | |
enum | nat_event_t { NAT_ADDRESSES_EXHAUTED = 3, NAT44_SESSION_CREATE = 4, NAT44_SESSION_DELETE = 5, NAT64_SESSION_CREATE = 6, NAT64_SESSION_DELETE = 7, NAT64_BIB_CREATE = 10, NAT64_BIB_DELETE = 11, NAT_PORTS_EXHAUSTED = 12, QUOTA_EXCEEDED = 13 } |
enum | quota_exceed_event_t { MAX_SESSION_ENTRIES = 1, MAX_BIB_ENTRIES = 2, MAX_ENTRIES_PER_USER = 3, MAX_FRAGMENTS_PENDING_REASSEMBLY = 5, MAX_FRAGMENTS_PENDING_REASSEMBLY_IP6 } |
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 thread_index, 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 thread_index, 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 thread_index, u32 pool_id) |
Generate NAT addresses exhausted event. More... | |
void | snat_ipfix_logging_max_entries_per_user (u32 thread_index, u32 limit, u32 src_ip) |
Generate maximum entries per user exceeded event. More... | |
void | nat_ipfix_logging_max_sessions (u32 thread_index, u32 limit) |
Generate maximum session entries exceeded event. More... | |
void | nat_ipfix_logging_max_bibs (u32 thread_index, u32 limit) |
Generate maximum BIB entries exceeded event. More... | |
void | nat_ipfix_logging_max_fragments_ip4 (u32 thread_index, u32 limit, ip4_address_t *src) |
Generate maximum IPv4 fragments pending reassembly exceeded event. More... | |
void | nat_ipfix_logging_max_fragments_ip6 (u32 thread_index, u32 limit, ip6_address_t *src) |
Generate maximum IPv6 fragments pending reassembly exceeded event. More... | |
void | nat_ipfix_logging_nat64_session (u32 thread_index, ip6_address_t *src_ip, ip4_address_t *nat_src_ip, u8 proto, u16 src_port, u16 nat_src_port, ip6_address_t *dst_ip, ip4_address_t *nat_dst_ip, u16 dst_port, u16 nat_dst_port, u32 vrf_id, u8 is_create) |
Generate NAT64 session create and delete events. More... | |
void | nat_ipfix_logging_nat64_bib (u32 thread_index, ip6_address_t *src_ip, ip4_address_t *nat_src_ip, u8 proto, u16 src_port, u16 nat_src_port, u32 vrf_id, u8 is_create) |
Generate NAT64 BIB create and delete events. 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 | |
NAT64_SESSION_CREATE | |
NAT64_SESSION_DELETE | |
NAT64_BIB_CREATE | |
NAT64_BIB_DELETE | |
NAT_PORTS_EXHAUSTED | |
QUOTA_EXCEEDED |
Definition at line 22 of file nat_ipfix_logging.h.
enum quota_exceed_event_t |
Enumerator | |
---|---|
MAX_SESSION_ENTRIES | |
MAX_BIB_ENTRIES | |
MAX_ENTRIES_PER_USER | |
MAX_FRAGMENTS_PENDING_REASSEMBLY | |
MAX_FRAGMENTS_PENDING_REASSEMBLY_IP6 |
Definition at line 34 of file nat_ipfix_logging.h.
Generate maximum BIB entries exceeded event.
thread_index | thread index |
limit | configured limit |
Definition at line 1672 of file nat_ipfix_logging.c.
void nat_ipfix_logging_max_fragments_ip4 | ( | u32 | thread_index, |
u32 | limit, | ||
ip4_address_t * | src | ||
) |
Generate maximum IPv4 fragments pending reassembly exceeded event.
thread_index | thread index |
limit | configured limit |
src | source IPv4 address |
Definition at line 1688 of file nat_ipfix_logging.c.
void nat_ipfix_logging_max_fragments_ip6 | ( | u32 | thread_index, |
u32 | limit, | ||
ip6_address_t * | src | ||
) |
Generate maximum IPv6 fragments pending reassembly exceeded event.
thread_index | thread index |
limit | configured limit |
src | source IPv6 address |
Definition at line 1705 of file nat_ipfix_logging.c.
Generate maximum session entries exceeded event.
thread_index | thread index |
limit | configured limit |
Definition at line 1657 of file nat_ipfix_logging.c.
void nat_ipfix_logging_nat64_bib | ( | u32 | thread_index, |
ip6_address_t * | src_ip, | ||
ip4_address_t * | nat_src_ip, | ||
u8 | proto, | ||
u16 | src_port, | ||
u16 | nat_src_port, | ||
u32 | vrf_id, | ||
u8 | is_create | ||
) |
Generate NAT64 BIB create and delete events.
thread_index | thread index |
src_ip | source IPv6 address |
nat_src_ip | transaltes source IPv4 address |
proto | L4 protocol |
src_port | source port |
nat_src_port | translated source port |
vrf_id | VRF ID |
is_create | non-zero value if create event otherwise delete event |
Definition at line 1727 of file nat_ipfix_logging.c.
void nat_ipfix_logging_nat64_session | ( | u32 | thread_index, |
ip6_address_t * | src_ip, | ||
ip4_address_t * | nat_src_ip, | ||
u8 | proto, | ||
u16 | src_port, | ||
u16 | nat_src_port, | ||
ip6_address_t * | dst_ip, | ||
ip4_address_t * | nat_dst_ip, | ||
u16 | dst_port, | ||
u16 | nat_dst_port, | ||
u32 | vrf_id, | ||
u8 | is_create | ||
) |
Generate NAT64 session create and delete events.
thread_index | thread index |
src_ip | source IPv6 address |
nat_src_ip | transaltes source IPv4 address |
proto | L4 protocol |
src_port | source port |
nat_src_port | translated source port |
dst_ip | destination IPv6 address |
nat_dst_ip | destination IPv4 address |
dst_port | destination port |
nat_dst_port | translated destination port |
vrf_id | VRF ID |
is_create | non-zero value if create event otherwise delete event |
Definition at line 1760 of file nat_ipfix_logging.c.
Generate NAT addresses exhausted event.
thread_index | thread index |
pool_id | NAT pool ID |
Definition at line 1614 of file nat_ipfix_logging.c.
Enable/disable NAT plugin IPFIX logging.
enable | 1 if enable, 0 if disable |
domain_id | observation domain ID |
src_port | source port number |
Definition at line 1805 of file nat_ipfix_logging.c.
void snat_ipfix_logging_init | ( | vlib_main_t * | vm | ) |
Initialize NAT plugin IPFIX logging.
vm | vlib main |
Definition at line 1930 of file nat_ipfix_logging.c.
Generate maximum entries per user exceeded event.
thread_index | thread index |
limit | maximum NAT entries that can be created per user |
src_ip | source IPv4 address |
Definition at line 1630 of file nat_ipfix_logging.c.
void snat_ipfix_logging_nat44_ses_create | ( | u32 | thread_index, |
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.
thread_index | thread index |
src_ip | source IPv4 address |
nat_src_ip | transaltes source IPv4 address |
snat_proto | NAT transport protocol |
src_port | source port |
nat_src_port | translated source port |
vrf_id | VRF ID |
Definition at line 1567 of file nat_ipfix_logging.c.
void snat_ipfix_logging_nat44_ses_delete | ( | u32 | thread_index, |
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.
thread_index | thread index |
src_ip | source IPv4 address |
nat_src_ip | transaltes source IPv4 address |
snat_proto | NAT transport protocol |
src_port | source port |
nat_src_port | translated source port |
vrf_id | VRF ID |
Definition at line 1593 of file nat_ipfix_logging.c.
snat_ipfix_logging_main_t snat_ipfix_logging_main |
Definition at line 25 of file nat_ipfix_logging.c.