FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ipfix_logging.c File Reference
+ Include dependency graph for ipfix_logging.c:

Go to the source code of this file.

Data Structures

struct  nat_ipfix_logging_nat44_ses_args_t
 
struct  nat_ipfix_logging_addr_exhausted_args_t
 
struct  nat_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()
 
#define update_template_id(old_id, new_id)
 

Functions

static u8nat_template_rewrite (flow_report_main_t *frm, flow_report_t *fr, ip4_address_t *collector_address, ip4_address_t *src_address, u16 collector_port, nat_event_t event, quota_exceed_event_t quota_event)
 Create an IPFIX template packet rewrite string. More...
 
u8nat_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, ipfix_report_element_t *elts, u32 n_elts, u32 *stream_index)
 
u8nat_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, ipfix_report_element_t *elts, u32 n_elts, u32 *stream_index)
 
u8nat_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, ipfix_report_element_t *elts, u32 n_elts, u32 *stream_index)
 
u8nat_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, ipfix_report_element_t *elts, u32 n_elts, u32 *stream_index)
 
u8nat_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, ipfix_report_element_t *elts, u32 n_elts, u32 *stream_index)
 
u8nat_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, ipfix_report_element_t *elts, u32 n_elts, u32 *stream_index)
 
u8nat_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, ipfix_report_element_t *elts, u32 n_elts, u32 *stream_index)
 
static void nat_ipfix_header_create (flow_report_main_t *frm, vlib_buffer_t *b0, u32 *offset)
 
static void nat_ipfix_send (flow_report_main_t *frm, vlib_frame_t *f, vlib_buffer_t *b0, u16 template_id)
 
static void nat_ipfix_logging_nat44_ses (u32 thread_index, u8 nat_event, u32 src_ip, u32 nat_src_ip, nat_protocol_t nat_proto, u16 src_port, u16 nat_src_port, u32 fib_index, int do_flush)
 
static void nat_ipfix_logging_addr_exhausted (u32 thread_index, u32 pool_id, int do_flush)
 
static void nat_ipfix_logging_max_entries_per_usr (u32 thread_index, u32 limit, u32 src_ip, int do_flush)
 
static void nat_ipfix_logging_max_ses (u32 thread_index, u32 limit, int do_flush)
 
static void nat_ipfix_logging_max_bib (u32 thread_index, u32 limit, int do_flush)
 
static void nat_ipfix_logging_nat64_bibe (u32 thread_index, u8 nat_event, ip6_address_t *src_ip, u32 nat_src_ip, u8 proto, u16 src_port, u16 nat_src_port, u32 vrf_id, int do_flush)
 
static void nat_ipfix_logging_nat64_ses (u32 thread_index, u8 nat_event, ip6_address_t *src_ip, u32 nat_src_ip, u8 proto, u16 src_port, u16 nat_src_port, ip6_address_t *dst_ip, u32 nat_dst_ip, u16 dst_port, u16 nat_dst_port, u32 vrf_id, int do_flush)
 
void nat_ipfix_flush (u32 thread_index)
 
int nat_ipfix_logging_enabled ()
 
void nat_ipfix_flush_from_main (void)
 
void nat_ipfix_logging_nat44_ses_create (u32 thread_index, u32 src_ip, u32 nat_src_ip, nat_protocol_t nat_proto, u16 src_port, u16 nat_src_port, u32 fib_index)
 Generate NAT44 session create event. More...
 
void nat_ipfix_logging_nat44_ses_delete (u32 thread_index, u32 src_ip, u32 nat_src_ip, nat_protocol_t nat_proto, u16 src_port, u16 nat_src_port, u32 fib_index)
 Generate NAT44 session delete event. More...
 
void nat_ipfix_logging_addresses_exhausted (u32 thread_index, u32 pool_id)
 Generate NAT addresses exhausted event. More...
 
void nat_ipfix_logging_max_entries_per_user (u32 thread_index, u32 limit, u32 src_ip)
 Generate maximum entries per user exceeded event. More...
 
vlib_frame_tdeterministic_nat_data_callback (flow_report_main_t *frm, flow_report_t *fr, vlib_frame_t *f, u32 *to_next, u32 node_index)
 
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_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...
 
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...
 
vlib_frame_tdata_callback (flow_report_main_t *frm, flow_report_t *fr, vlib_frame_t *f, u32 *to_next, u32 node_index)
 
int nat_ipfix_logging_enable_disable (int enable, u32 domain_id, u16 src_port)
 Enable/disable NAT plugin IPFIX logging. More...
 
void nat_ipfix_logging_init (vlib_main_t *vm)
 Initialize NAT plugin IPFIX logging. More...
 
static uword ipfix_flush_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 

Variables

vlib_node_registration_t nat_ipfix_flush_node
 (constructor) VLIB_REGISTER_NODE (nat_ipfix_flush_node) More...
 
nat_ipfix_logging_main_t nat_ipfix_logging_main
 

Macro Definition Documentation

◆ MAX_BIBS_FIELD_COUNT

#define MAX_BIBS_FIELD_COUNT   4

Definition at line 44 of file ipfix_logging.c.

◆ MAX_BIBS_LEN

#define MAX_BIBS_LEN   17

Definition at line 34 of file ipfix_logging.c.

◆ MAX_ENTRIES_PER_USER_FIELD_COUNT

#define MAX_ENTRIES_PER_USER_FIELD_COUNT   5

Definition at line 42 of file ipfix_logging.c.

◆ MAX_ENTRIES_PER_USER_LEN

#define MAX_ENTRIES_PER_USER_LEN   21

Definition at line 32 of file ipfix_logging.c.

◆ MAX_FRAGMENTS_FIELD_COUNT

#define MAX_FRAGMENTS_FIELD_COUNT   5

Definition at line 45 of file ipfix_logging.c.

◆ MAX_FRAGMENTS_IP4_LEN

#define MAX_FRAGMENTS_IP4_LEN   21

Definition at line 35 of file ipfix_logging.c.

◆ MAX_FRAGMENTS_IP6_LEN

#define MAX_FRAGMENTS_IP6_LEN   33

Definition at line 36 of file ipfix_logging.c.

◆ MAX_SESSIONS_FIELD_COUNT

#define MAX_SESSIONS_FIELD_COUNT   4

Definition at line 43 of file ipfix_logging.c.

◆ MAX_SESSIONS_LEN

#define MAX_SESSIONS_LEN   17

Definition at line 33 of file ipfix_logging.c.

◆ NAT44_SESSION_CREATE_FIELD_COUNT

#define NAT44_SESSION_CREATE_FIELD_COUNT   8

Definition at line 40 of file ipfix_logging.c.

◆ NAT44_SESSION_CREATE_LEN

#define NAT44_SESSION_CREATE_LEN   26

Definition at line 30 of file ipfix_logging.c.

◆ NAT64_BIB_FIELD_COUNT

#define NAT64_BIB_FIELD_COUNT   8

Definition at line 46 of file ipfix_logging.c.

◆ NAT64_BIB_LEN

#define NAT64_BIB_LEN   38

Definition at line 37 of file ipfix_logging.c.

◆ NAT64_SES_FIELD_COUNT

#define NAT64_SES_FIELD_COUNT   12

Definition at line 47 of file ipfix_logging.c.

◆ NAT64_SES_LEN

#define NAT64_SES_LEN   62

Definition at line 38 of file ipfix_logging.c.

◆ NAT_ADDRESSES_EXHAUTED_FIELD_COUNT

#define NAT_ADDRESSES_EXHAUTED_FIELD_COUNT   3

Definition at line 41 of file ipfix_logging.c.

◆ NAT_ADDRESSES_EXHAUTED_LEN

#define NAT_ADDRESSES_EXHAUTED_LEN   13

Definition at line 31 of file ipfix_logging.c.

◆ skip_if_disabled

#define skip_if_disabled ( )
Value:
do { \
nat_ipfix_logging_main_t *silm = &nat_ipfix_logging_main; \
if (PREDICT_TRUE (!clib_atomic_fetch_or(&silm->enabled, 0))) \
return; \
} while (0)

Definition at line 119 of file ipfix_logging.c.

◆ update_template_id

#define update_template_id (   old_id,
  new_id 
)
Value:
do { \
u16 template_id = clib_atomic_fetch_or(old_id, 0); \
clib_atomic_cmp_and_swap(old_id, template_id, new_id); \
} while (0)

Definition at line 126 of file ipfix_logging.c.

Function Documentation

◆ data_callback()

vlib_frame_t* data_callback ( flow_report_main_t frm,
flow_report_t fr,
vlib_frame_t f,
u32 to_next,
u32  node_index 
)

Definition at line 1500 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deterministic_nat_data_callback()

vlib_frame_t* deterministic_nat_data_callback ( flow_report_main_t frm,
flow_report_t fr,
vlib_frame_t f,
u32 to_next,
u32  node_index 
)

Definition at line 1393 of file ipfix_logging.c.

+ Here is the call graph for this function:

◆ ipfix_flush_process()

static uword ipfix_flush_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 1626 of file ipfix_logging.c.

+ Here is the call graph for this function:

◆ nat_ipfix_flush()

void nat_ipfix_flush ( u32  thread_index)

Definition at line 1252 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_flush_from_main()

void nat_ipfix_flush_from_main ( void  )

Definition at line 1276 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_header_create()

static void nat_ipfix_header_create ( flow_report_main_t frm,
vlib_buffer_t b0,
u32 offset 
)
inlinestatic

Definition at line 487 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_addr_exhausted()

static void nat_ipfix_logging_addr_exhausted ( u32  thread_index,
u32  pool_id,
int  do_flush 
)
static

Definition at line 685 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_addresses_exhausted()

void nat_ipfix_logging_addresses_exhausted ( u32  thread_index,
u32  pool_id 
)

Generate NAT addresses exhausted event.

Parameters
thread_indexthread index
pool_idNAT pool ID

Definition at line 1367 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_enable_disable()

int nat_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 1524 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_enabled()

int nat_ipfix_logging_enabled ( )

Definition at line 1269 of file ipfix_logging.c.

+ Here is the caller graph for this function:

◆ nat_ipfix_logging_init()

void nat_ipfix_logging_init ( vlib_main_t vm)

Initialize NAT plugin IPFIX logging.

Parameters
vmvlib main

Definition at line 1609 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_max_bib()

static void nat_ipfix_logging_max_bib ( u32  thread_index,
u32  limit,
int  do_flush 
)
static

Definition at line 948 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_max_bibs()

void nat_ipfix_logging_max_bibs ( u32  thread_index,
u32  limit 
)

Generate maximum BIB entries exceeded event.

Parameters
thread_indexthread index
limitconfigured limit

Definition at line 1425 of file ipfix_logging.c.

+ Here is the call graph for this function:

◆ nat_ipfix_logging_max_entries_per_user()

void nat_ipfix_logging_max_entries_per_user ( u32  thread_index,
u32  limit,
u32  src_ip 
)

Generate maximum entries per user exceeded event.

Parameters
thread_indexthread index
limitmaximum NAT entries that can be created per user
src_ipsource IPv4 address

Definition at line 1383 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_max_entries_per_usr()

static void nat_ipfix_logging_max_entries_per_usr ( u32  thread_index,
u32  limit,
u32  src_ip,
int  do_flush 
)
static

Definition at line 768 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_max_ses()

static void nat_ipfix_logging_max_ses ( u32  thread_index,
u32  limit,
int  do_flush 
)
static

Definition at line 860 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_max_sessions()

void nat_ipfix_logging_max_sessions ( u32  thread_index,
u32  limit 
)

Generate maximum session entries exceeded event.

Parameters
thread_indexthread index
limitconfigured limit

Definition at line 1410 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_nat44_ses()

static void nat_ipfix_logging_nat44_ses ( u32  thread_index,
u8  nat_event,
u32  src_ip,
u32  nat_src_ip,
nat_protocol_t  nat_proto,
u16  src_port,
u16  nat_src_port,
u32  fib_index,
int  do_flush 
)
static

Definition at line 579 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_nat44_ses_create()

void nat_ipfix_logging_nat44_ses_create ( u32  thread_index,
u32  src_ip,
u32  nat_src_ip,
nat_protocol_t  nat_proto,
u16  src_port,
u16  nat_src_port,
u32  fib_index 
)

Generate NAT44 session create event.

Parameters
thread_indexthread index
src_ipsource IPv4 address
nat_src_iptransaltes source IPv4 address
nat_protoNAT transport protocol
src_portsource port
nat_src_porttranslated source port
vrf_idVRF ID

Definition at line 1320 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_nat44_ses_delete()

void nat_ipfix_logging_nat44_ses_delete ( u32  thread_index,
u32  src_ip,
u32  nat_src_ip,
nat_protocol_t  nat_proto,
u16  src_port,
u16  nat_src_port,
u32  fib_index 
)

Generate NAT44 session delete event.

Parameters
thread_indexthread index
src_ipsource IPv4 address
nat_src_iptransaltes source IPv4 address
nat_protoNAT transport protocol
src_portsource port
nat_src_porttranslated source port
vrf_idVRF ID

Definition at line 1346 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_nat64_bib()

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.

Parameters
thread_indexthread index
src_ipsource IPv6 address
nat_src_iptransaltes source IPv4 address
protoL4 protocol
src_portsource port
nat_src_porttranslated source port
vrf_idVRF ID
is_createnon-zero value if create event otherwise delete event

Definition at line 1446 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_nat64_bibe()

static void nat_ipfix_logging_nat64_bibe ( u32  thread_index,
u8  nat_event,
ip6_address_t *  src_ip,
u32  nat_src_ip,
u8  proto,
u16  src_port,
u16  nat_src_port,
u32  vrf_id,
int  do_flush 
)
static

Definition at line 1036 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_nat64_ses()

static void nat_ipfix_logging_nat64_ses ( u32  thread_index,
u8  nat_event,
ip6_address_t *  src_ip,
u32  nat_src_ip,
u8  proto,
u16  src_port,
u16  nat_src_port,
ip6_address_t *  dst_ip,
u32  nat_dst_ip,
u16  dst_port,
u16  nat_dst_port,
u32  vrf_id,
int  do_flush 
)
static

Definition at line 1137 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_logging_nat64_session()

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.

Parameters
thread_indexthread index
src_ipsource IPv6 address
nat_src_iptransaltes source IPv4 address
protoL4 protocol
src_portsource port
nat_src_porttranslated source port
dst_ipdestination IPv6 address
nat_dst_ipdestination IPv4 address
dst_portdestination port
nat_dst_porttranslated destination port
vrf_idVRF ID
is_createnon-zero value if create event otherwise delete event

Definition at line 1479 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_ipfix_send()

static void nat_ipfix_send ( flow_report_main_t frm,
vlib_frame_t f,
vlib_buffer_t b0,
u16  template_id 
)
inlinestatic

Definition at line 539 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_template_rewrite()

static u8* nat_template_rewrite ( flow_report_main_t frm,
flow_report_t fr,
ip4_address_t collector_address,
ip4_address_t src_address,
u16  collector_port,
nat_event_t  event,
quota_exceed_event_t  quota_event 
)
inlinestatic

Create an IPFIX template packet rewrite string.

Parameters
frmflow report main
frflow report
collector_addresscollector address
src_addresssource address
collector_portcollector
eventNAT event ID
quota_eventNAT quota exceeded event ID
Returns
template packet

Definition at line 146 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_template_rewrite_addr_exhausted()

u8* nat_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,
ipfix_report_element_t elts,
u32  n_elts,
u32 stream_index 
)

Definition at line 393 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_template_rewrite_max_bibs()

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,
ipfix_report_element_t elts,
u32  n_elts,
u32 stream_index 
)

Definition at line 447 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_template_rewrite_max_entries_per_usr()

u8* nat_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,
ipfix_report_element_t elts,
u32  n_elts,
u32 stream_index 
)

Definition at line 419 of file ipfix_logging.c.

+ Here is the call graph for this function:

◆ nat_template_rewrite_max_sessions()

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,
ipfix_report_element_t elts,
u32  n_elts,
u32 stream_index 
)

Definition at line 433 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_template_rewrite_nat44_session()

u8* nat_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,
ipfix_report_element_t elts,
u32  n_elts,
u32 stream_index 
)

Definition at line 406 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_template_rewrite_nat64_bib()

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,
ipfix_report_element_t elts,
u32  n_elts,
u32 stream_index 
)

Definition at line 461 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_template_rewrite_nat64_session()

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,
ipfix_report_element_t elts,
u32  n_elts,
u32 stream_index 
)

Definition at line 474 of file ipfix_logging.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ nat_ipfix_flush_node

vlib_node_registration_t nat_ipfix_flush_node
Initial value:
= {
.function = ipfix_flush_process,
.name = "nat-ipfix-flush",
.state = VLIB_NODE_STATE_INTERRUPT,
}

(constructor) VLIB_REGISTER_NODE (nat_ipfix_flush_node)

Definition at line 27 of file ipfix_logging.c.

◆ nat_ipfix_logging_main

nat_ipfix_logging_main_t nat_ipfix_logging_main

Definition at line 28 of file ipfix_logging.c.

VLIB_NODE_TYPE_INPUT
@ VLIB_NODE_TYPE_INPUT
Definition: node.h:76
clib_atomic_fetch_or
#define clib_atomic_fetch_or(a, b)
Definition: atomics.h:27
nat_ipfix_logging_main
nat_ipfix_logging_main_t nat_ipfix_logging_main
Definition: ipfix_logging.c:28
ipfix_flush_process
static uword ipfix_flush_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: ipfix_logging.c:1626
PREDICT_TRUE
#define PREDICT_TRUE(x)
Definition: clib.h:125