17 #ifndef __included_nat_ipfix_logging_h__ 18 #define __included_nat_ipfix_logging_h__ 104 u16 src_port,
u16 nat_src_port,
108 u16 src_port,
u16 nat_src_port,
118 u16 src_port,
u16 nat_src_port,
121 u16 dst_port,
u16 nat_dst_port,
122 u32 vrf_id,
u8 is_create);
125 u16 src_port,
u16 nat_src_port,
126 u32 vrf_id,
u8 is_create);
vlib_frame_t * max_frags_ip4_frame
u32 max_entries_per_user_next_record_offset
u16 max_frags_ip4_template_id
vlib_frame_t * max_entries_per_user_frame
u16 max_frags_ip6_template_id
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.
u16 nat64_ses_template_id
u32 nat64_ses_next_record_offset
vlib_frame_t * addr_exhausted_frame
void snat_ipfix_logging_init(vlib_main_t *vm)
Initialize NAT plugin IPFIX logging.
u16 addr_exhausted_template_id
u8 enabled
NAT plugin IPFIX logging enabled.
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.
void nat_ipfix_logging_max_fragments_ip6(u32 limit, ip6_address_t *src)
Generate maximum IPv6 fragments pending reassembly exceeded event.
void nat_ipfix_logging_max_bibs(u32 limit)
Generate maximum BIB entries exceeded event.
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.
u32 addr_exhausted_next_record_offset
snat_ipfix_logging_main_t snat_ipfix_logging_main
vlib_buffer_t * nat64_ses_buffer
u32 max_bibs_next_record_offset
u16 nat64_bib_template_id
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.
vlib_frame_t * max_frags_ip6_frame
vlib_frame_t * nat44_session_frame
frames containing ipfix buffers
vlib_frame_t * max_bibs_frame
vlib_buffer_t * max_sessions_buffer
void snat_ipfix_logging_max_entries_per_user(u32 limit, u32 src_ip)
Generate maximum entries per user exceeded event.
u32 stream_index
stream index
u64 milisecond_time_0
Time reference pair.
u16 max_entries_per_user_template_id
vlib_frame_t * nat64_bib_frame
vlib_buffer_t * max_frags_ip6_buffer
vlib_buffer_t * nat44_session_buffer
ipfix buffers under construction
void snat_ipfix_logging_addresses_exhausted(u32 pool_id)
Generate NAT addresses exhausted event.
u16 nat44_session_template_id
template IDs
u16 max_sessions_template_id
vlib_buffer_t * max_bibs_buffer
vlib_buffer_t * addr_exhausted_buffer
void nat_ipfix_logging_max_fragments_ip4(u32 limit, ip4_address_t *src)
Generate maximum IPv4 fragments pending reassembly exceeded event.
u32 max_sessions_next_record_offset
int snat_ipfix_logging_enable_disable(int enable, u32 domain_id, u16 src_port)
Enable/disable NAT plugin IPFIX logging.
u32 max_frags_ip6_next_record_offset
vlib_frame_t * max_sessions_frame
vlib_buffer_t * nat64_bib_buffer
vlib_buffer_t * max_frags_ip4_buffer
u32 max_frags_ip4_next_record_offset
vlib_buffer_t * max_entries_per_user_buffer
void nat_ipfix_logging_max_sessions(u32 limit)
Generate maximum session entries exceeded event.
vlib_frame_t * nat64_ses_frame
u32 nat64_bib_next_record_offset
u32 nat44_session_next_record_offset
next record offset