![]() |
FD.io VPP
v18.04-17-g3a0d853
Vector Packet Processing
|
Include dependency graph for nat_ipfix_logging.c:Go to the source code of this file.
Data Structures | |
| struct | snat_ipfix_logging_nat44_ses_args_t |
| struct | snat_ipfix_logging_addr_exhausted_args_t |
| struct | snat_ipfix_logging_max_entries_per_user_args_t |
| struct | nat_ipfix_logging_max_sessions_args_t |
| struct | nat_ipfix_logging_max_bibs_args_t |
| struct | nat_ipfix_logging_max_frags_ip4_args_t |
| struct | nat_ipfix_logging_max_frags_ip6_args_t |
| struct | nat_ipfix_logging_nat64_ses_args_t |
| struct | nat_ipfix_logging_nat64_bib_args_t |
Macros | |
| #define | NAT44_SESSION_CREATE_LEN 26 |
| #define | NAT_ADDRESSES_EXHAUTED_LEN 13 |
| #define | MAX_ENTRIES_PER_USER_LEN 21 |
| #define | MAX_SESSIONS_LEN 17 |
| #define | MAX_BIBS_LEN 17 |
| #define | MAX_FRAGMENTS_IP4_LEN 21 |
| #define | MAX_FRAGMENTS_IP6_LEN 33 |
| #define | NAT64_BIB_LEN 38 |
| #define | NAT64_SES_LEN 62 |
| #define | NAT44_SESSION_CREATE_FIELD_COUNT 8 |
| #define | NAT_ADDRESSES_EXHAUTED_FIELD_COUNT 3 |
| #define | MAX_ENTRIES_PER_USER_FIELD_COUNT 5 |
| #define | MAX_SESSIONS_FIELD_COUNT 4 |
| #define | MAX_BIBS_FIELD_COUNT 4 |
| #define | MAX_FRAGMENTS_FIELD_COUNT 5 |
| #define | NAT64_BIB_FIELD_COUNT 8 |
| #define | NAT64_SES_FIELD_COUNT 12 |
| #define | skip_if_disabled() |
Variables | |
| snat_ipfix_logging_main_t | snat_ipfix_logging_main |
| #define MAX_BIBS_FIELD_COUNT 4 |
Definition at line 38 of file nat_ipfix_logging.c.
| #define MAX_BIBS_LEN 17 |
Definition at line 28 of file nat_ipfix_logging.c.
| #define MAX_ENTRIES_PER_USER_FIELD_COUNT 5 |
Definition at line 36 of file nat_ipfix_logging.c.
| #define MAX_ENTRIES_PER_USER_LEN 21 |
Definition at line 26 of file nat_ipfix_logging.c.
| #define MAX_FRAGMENTS_FIELD_COUNT 5 |
Definition at line 39 of file nat_ipfix_logging.c.
| #define MAX_FRAGMENTS_IP4_LEN 21 |
Definition at line 29 of file nat_ipfix_logging.c.
| #define MAX_FRAGMENTS_IP6_LEN 33 |
Definition at line 30 of file nat_ipfix_logging.c.
| #define MAX_SESSIONS_FIELD_COUNT 4 |
Definition at line 37 of file nat_ipfix_logging.c.
| #define MAX_SESSIONS_LEN 17 |
Definition at line 27 of file nat_ipfix_logging.c.
| #define NAT44_SESSION_CREATE_FIELD_COUNT 8 |
Definition at line 34 of file nat_ipfix_logging.c.
| #define NAT44_SESSION_CREATE_LEN 26 |
Definition at line 24 of file nat_ipfix_logging.c.
| #define NAT64_BIB_FIELD_COUNT 8 |
Definition at line 40 of file nat_ipfix_logging.c.
| #define NAT64_BIB_LEN 38 |
Definition at line 31 of file nat_ipfix_logging.c.
| #define NAT64_SES_FIELD_COUNT 12 |
Definition at line 41 of file nat_ipfix_logging.c.
| #define NAT64_SES_LEN 62 |
Definition at line 32 of file nat_ipfix_logging.c.
| #define NAT_ADDRESSES_EXHAUTED_FIELD_COUNT 3 |
Definition at line 35 of file nat_ipfix_logging.c.
| #define NAT_ADDRESSES_EXHAUTED_LEN 13 |
Definition at line 25 of file nat_ipfix_logging.c.
| #define skip_if_disabled | ( | ) |
Definition at line 113 of file nat_ipfix_logging.c.
| vlib_frame_t* nat_data_callback_max_bibs | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1678 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* nat_data_callback_max_frags_ip4 | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1715 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* nat_data_callback_max_frags_ip6 | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1756 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* nat_data_callback_max_sessions | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1643 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* nat_data_callback_nat64_bib | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1811 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* nat_data_callback_nat64_session | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1880 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 966 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1653 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nat_ipfix_logging_max_bibs | ( | u32 | limit | ) |
Generate maximum BIB entries exceeded event.
| limit | configured limit |
Definition at line 1664 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1056 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1688 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1149 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1725 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nat_ipfix_logging_max_fragments_ip4 | ( | u32 | limit, |
| ip4_address_t * | src | ||
| ) |
Generate maximum IPv4 fragments pending reassembly exceeded event.
| limit | configured limit |
| src | source IPv4 address |
Definition at line 1700 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nat_ipfix_logging_max_fragments_ip6 | ( | u32 | limit, |
| ip6_address_t * | src | ||
| ) |
Generate maximum IPv6 fragments pending reassembly exceeded event.
| limit | configured limit |
| src | source IPv6 address |
Definition at line 1740 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 876 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1618 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nat_ipfix_logging_max_sessions | ( | u32 | limit | ) |
Generate maximum session entries exceeded event.
| limit | configured limit |
Definition at line 1629 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nat_ipfix_logging_nat64_bib | ( | 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.
| 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 1788 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1766 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1242 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1344 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1821 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nat_ipfix_logging_nat64_session | ( | 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.
| 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 1850 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* nat_template_rewrite_max_bibs | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 448 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* nat_template_rewrite_max_frags_ip4 | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 460 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* nat_template_rewrite_max_frags_ip6 | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 472 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* nat_template_rewrite_max_sessions | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 436 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* nat_template_rewrite_nat64_bib | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 484 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* nat_template_rewrite_nat64_session | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 495 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* snat_data_callback_addr_exhausted | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1570 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* snat_data_callback_max_entries_per_usr | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1608 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vlib_frame_t* snat_data_callback_nat44_session | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| vlib_frame_t * | f, | ||
| u32 * | to_next, | ||
| u32 | node_index | ||
| ) |
Definition at line 1534 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 506 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 697 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1545 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_addresses_exhausted | ( | u32 | pool_id | ) |
Generate NAT addresses exhausted event.
| pool_id | NAT pool ID |
Definition at line 1556 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function: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 1899 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.
| vm | vlib main |
Definition at line 2022 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:Generate maximum entries per user exceeded event.
| limit | maximum NAT entries that can be created per user |
| src_ip | source IPv4 address |
Definition at line 1593 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 783 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1581 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 592 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.
| 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 1478 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.
| 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 1511 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1460 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 552 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Create an IPFIX template packet rewrite string.
| frm | flow report main |
| fr | flow report |
| collector_address | collector address |
| src_address | source address |
| collector_port | collector |
| event | NAT event ID |
| quota_event | NAT quota exceeded event ID |
Definition at line 134 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* snat_template_rewrite_addr_exhausted | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 402 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* snat_template_rewrite_max_entries_per_usr | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 424 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8* snat_template_rewrite_nat44_session | ( | flow_report_main_t * | frm, |
| flow_report_t * | fr, | ||
| ip4_address_t * | collector_address, | ||
| ip4_address_t * | src_address, | ||
| u16 | collector_port | ||
| ) |
Definition at line 413 of file nat_ipfix_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| snat_ipfix_logging_main_t snat_ipfix_logging_main |
Definition at line 22 of file nat_ipfix_logging.c.