FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
cnat_logging.h File Reference
+ Include dependency graph for cnat_logging.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nfv9_header_t
 
struct  cnat_nfv9_option_template_t
 
struct  cnat_nfv9_template_t
 
struct  nfv9_dataflow_record_header_t
 
struct  nfv9_add_record_t
 
struct  nfv9_del_record_t
 
struct  nfv9_bulk_add_record_t
 
struct  nfv9_bulk_del_record_t
 
struct  nfv9_ds_lite_bulk_add_record_t
 
struct  nfv9_ds_lite_bulk_del_record_t
 
struct  nfv9_nat64_add_bib_record_t
 
struct  nfv9_nat64_add_session_record_t
 
struct  nfv9_nat64_del_bib_record_t
 
struct  nfv9_nat64_del_session_record_t
 
struct  nfv9_add_session_record_t
 
struct  nfv9_del_session_record_t
 
struct  nfv9_ds_lite_add_record_t
 
struct  nfv9_ds_lite_del_record_t
 
struct  nfv9_ds_lite_add_session_record_t
 
struct  nfv9_ds_lite_del_session_record_t
 
struct  nfv9_ingress_vrfid_name_record_t
 
struct  nfv9_server_info_t
 
struct  cnat_nfv9_logging_info_t
 
struct  cnat_nfv9_global_info_t
 

Macros

#define NFV9_DEF_PATH_MTU   1500
 
#define NFV9_VRF_NAME_LEN   12
 
#define cnat_nfv9_get_sys_up_time_in_ms   cnat_get_sys_up_time_in_ms
 
#define cnat_nfv9_get_unix_time_in_seconds   cnat_get_unix_time_in_seconds
 
#define cnat_nfv9_dump_time_change_logs   cnat_dump_time_change_logs
 
#define CNAT_NFV9_VERSION_NUMBER   9
 
#define CNAT_NFV9_TEMPLATE_FLOWSET_ID   0
 
#define CNAT_NFV9_OPTION_TEMPLATE_FLOWSET_ID   1
 
#define CNAT_NFV9_ADD_FIELD_COUNT   7
 
#define CNAT_NFV9_DEL_FIELD_COUNT   4
 
#define CNAT_NFV9_DS_LITE_ADD_FIELD_COUNT   8
 
#define CNAT_NFV9_DS_LITE_DEL_FIELD_COUNT   5
 
#define CNAT_NFV9_NAT64_ADD_BIB_FIELD_COUNT   5
 
#define CNAT_NFV9_NAT64_DEL_BIB_FIELD_COUNT   3
 
#define CNAT_NFV9_NAT64_ADD_SESSION_FIELD_COUNT   8
 
#define CNAT_NFV9_NAT64_DEL_SESSION_FIELD_COUNT   5
 
#define CNAT_NFV9_NAT44_ADD_SESSION_FIELD_COUNT   9
 
#define CNAT_NFV9_NAT44_DEL_SESSION_FIELD_COUNT   6
 
#define CNAT_NFV9_DS_LITE_ADD_SESSION_FIELD_COUNT   10
 
#define CNAT_NFV9_DS_LITE_DEL_SESSION_FIELD_COUNT   7
 
#define CNAT_NFV9_ADD_TEMPLATE_ID   256
 
#define CNAT_NFV9_DEL_TEMPLATE_ID   257
 
#define CNAT_NFV9_NAT64_ADD_BIB_TEMPLATE_ID   258
 
#define CNAT_NFV9_NAT64_DEL_BIB_TEMPLATE_ID   259
 
#define CNAT_NFV9_NAT64_ADD_SESSION_TEMPLATE_ID   260
 
#define CNAT_NFV9_NAT64_DEL_SESSION_TEMPLATE_ID   261
 
#define CNAT_NFV9_INGRESS_VRF_ID_NAME_TEMPLATE_ID   262
 
#define CNAT_NFV9_DS_LITE_ADD_TEMPLATE_ID   267
 
#define CNAT_NFV9_DS_LITE_DEL_TEMPLATE_ID   268
 
#define CNAT_NFV9_NAT44_ADD_SESSION_TEMPLATE_ID   271
 
#define CNAT_NFV9_NAT44_DEL_SESSION_TEMPLATE_ID   272
 
#define CNAT_NFV9_DS_LITE_ADD_SESSION_TEMPLATE_ID   273
 
#define CNAT_NFV9_DS_LITE_DEL_SESSION_TEMPLATE_ID   274
 
#define CNAT_NFV9_NAT44_BULK_ADD_TEMPLATE_ID   265
 
#define CNAT_NFV9_NAT44_BULK_DEL_TEMPLATE_ID   266
 
#define CNAT_NFV9_DS_LITE_BULK_ADD_TEMPLATE_ID   269
 
#define CNAT_NFV9_DS_LITE_BULK_DEL_TEMPLATE_ID   270
 
#define CNAT_NFV9_NAT44_BULK_ADD_FIELD_COUNT   6
 
#define CNAT_NFV9_NAT44_BULK_DEL_FIELD_COUNT   3
 
#define CNAT_NFV9_DS_LITE_BULK_ADD_FIELD_COUNT   7
 
#define CNAT_NFV9_DS_LITE_BULK_DEL_FIELD_COUNT   4
 
#define CNAT_NFV9_OUTSIDE_IP_PORT_START_FIELD_TYPE   361
 
#define CNAT_NFV9_OUTSIDE_IP_PORT_START_FIELD_SIZE   2
 
#define CNAT_NFV9_OUTSIDE_IP_PORT_END_FIELD_TYPE   362
 
#define CNAT_NFV9_OUTSIDE_IP_PORT_END_FIELD_SIZE   2
 
#define CNAT_NFV9_INGRESS_VRF_NAME_FIELD_TYPE   236
 
#define CNAT_NFV9_INGRESS_VRF_NAME_FIELD_SIZE   12
 
#define CNAT_NFV9_INGRESS_VRF_ID_NAME_OPTION_LEN   8
 
#define CNAT_NFV9_INSIDE_VRFID_FIELD_TYPE   234
 
#define CNAT_NFV9_INSIDE_VRFID_FIELD_SIZE   4
 
#define CNAT_NFV9_OUTSIDE_VRFID_FIELD_TYPE   235
 
#define CNAT_NFV9_OUTSIDE_VRFID_FIELD_SIZE   4
 
#define CNAT_NFV9_INSIDE_IP_ADDR_FIELD_TYPE   8
 
#define CNAT_NFV9_INSIDE_IP_ADDR_FIELD_SIZE   4
 
#define CNAT_NFV9_OUTSIDE_IP_ADDR_FIELD_TYPE   225
 
#define CNAT_NFV9_OUTSIDE_IP_ADDR_FIELD_SIZE   4
 
#define CNAT_NFV9_INSIDE_IP_PORT_FIELD_TYPE   7
 
#define CNAT_NFV9_INSIDE_IP_PORT_FIELD_SIZE   2
 
#define CNAT_NFV9_OUTSIDE_IP_PORT_FIELD_TYPE   227
 
#define CNAT_NFV9_OUTSIDE_IP_PORT_FIELD_SIZE   2
 
#define CNAT_NFV9_PROTOCOL_FIELD_TYPE   4
 
#define CNAT_NFV9_PROTOCOL_FIELD_SIZE   1
 
#define CNAT_NFV9_INSIDE_IPV6_SRC_ADDR_FIELD_TYPE   27
 
#define CNAT_NFV9_INSIDE_IPV6_SRC_ADDR_FIELD_SIZE   16
 
#define CNAT_NFV9_INSIDE_IPV6_DST_ADDR_FIELD_TYPE   28
 
#define CNAT_NFV9_INSIDE_IPV6_DST_ADDR_FIELD_SIZE   16
 
#define CNAT_NFV9_OUTSIDE_IP_DST_ADDR_FIELD_TYPE   226
 
#define CNAT_NFV9_OUTSIDE_IP_DST_ADDR_FIELD_SIZE   4
 
#define CNAT_NFV9_INSIDE_DST_PORT_FIELD_TYPE   11
 
#define CNAT_NFV9_INSIDE_DST_PORT_FIELD_SIZE   2
 
#define CNAT_NFV9_DESTINATION_IP_ADDR_FIELD_TYPE   12
 
#define CNAT_NFV9_DESTINATION_IP_ADDR_FIELD_SIZE   4
 
#define CNAT_NFV9_SOURCE_ID_VALUE   0x1234
 
#define CNAT_NFV9_ADD_RECORD_PAD_BYTES   (3)
 
#define CNAT_NFV9_DEL_RECORD_PAD_BYTES   (1)
 
#define CNAT_NFV9_NAT64_ADD_BIB_RECORD_PAD_BYTES   (3)
 
#define CNAT_NFV9_NAT64_DEL_BIB_RECORD_PAD_BYTES   (1)
 
#define CNAT_NFV9_NAT64_ADD_SESSION_RECORD_PAD_BYTES   (1)
 
#define CNAT_NFV9_NAT64_DEL_SESSION_RECORD_PAD_BYTES   (3)
 
#define CNAT_NFV9_NAT44_ADD_SESSION_RECORD_PAD_BYTES   (1)
 
#define CNAT_NFV9_NAT44_DEL_SESSION_RECORD_PAD_BYTES   (3)
 
#define CNAT_NFV9_DS_LITE_ADD_RECORD_PAD_BYTES   (3)
 
#define CNAT_NFV9_DS_LITE_DEL_RECORD_PAD_BYTES   (1)
 
#define CNAT_NFV9_DS_LITE_ADD_SESSION_RECORD_PAD_BYTES   (1)
 
#define CNAT_NFV9_DS_LITE_DEL_SESSION_RECORD_PAD_BYTES   (3)
 
#define CNAT_NFV9_INGRESS_VRFID_NAME_RECORD_PAD_BYTES   (0)
 
#define CNAT_NFV9_BULK_ADD_RECORD_PAD_BYTES   (0)
 
#define CNAT_NFV9_BULK_DEL_RECORD_PAD_BYTES   (2)
 
#define CNAT_NFV9_DS_LITE_BULK_ADD_RECORD_PAD_BYTES   (0)
 
#define CNAT_NFV9_DS_LITE_BULK_DEL_RECORD_PAD_BYTES   (2)
 
#define CNAT_NFV9_TEMPLATE_OFFSET   (CNAT_NFV9_HDR_OFFSET + sizeof(nfv9_header_t))
 
#define CNAT_NFV9_TEMPLATE_LENGTH   (sizeof(cnat_nfv9_template_t))
 
#define CNAT_NFV9_OPTION_TEMPLATE_LENGTH   (sizeof(cnat_nfv9_option_template_t))
 
#define CNAT_NFV9_DATAFLOW_RECORD_HEADER_LENGTH   (sizeof(nfv9_dataflow_record_header_t))
 
#define CNAT_NFV9_ADD_RECORD_LENGTH
 
#define CNAT_NFV9_DEL_RECORD_LENGTH
 
#define CNAT_NFV9_DS_LITE_ADD_RECORD_LENGTH
 
#define CNAT_NFV9_DS_LITE_DEL_RECORD_LENGTH
 
#define CNAT_NFV9_BULK_ADD_RECORD_LENGTH
 
#define CNAT_NFV9_BULK_DEL_RECORD_LENGTH
 
#define CNAT_NFV9_DS_LITE_BULK_ADD_RECORD_LENGTH
 
#define CNAT_NFV9_DS_LITE_BULK_DEL_RECORD_LENGTH
 
#define CNAT_NFV9_INGRESS_VRFID_NAME_RECORD_LENGTH
 
#define CNAT_NFV9_NAT64_ADD_BIB_RECORD_LENGTH
 
#define CNAT_NFV9_NAT64_DEL_BIB_RECORD_LENGTH
 
#define CNAT_NFV9_NAT64_ADD_SESSION_RECORD_LENGTH
 
#define CNAT_NFV9_NAT64_DEL_SESSION_RECORD_LENGTH
 
#define CNAT_NFV9_MAX_SINGLE_RECORD_LENGTH
 
#define CNAT_NFV9_NAT44_ADD_SESSION_RECORD_LENGTH
 
#define CNAT_NFV9_NAT44_DEL_SESSION_RECORD_LENGTH
 
#define CNAT_NFV9_DS_LITE_ADD_SESSION_RECORD_LENGTH
 
#define CNAT_NFV9_DS_LITE_DEL_SESSION_RECORD_LENGTH
 
#define CNAT_NFV9_MIN_RECORD_SIZE
 
#define CNAT_NFV9_MAX_PKT_LENGTH   1400
 
#define CNAT_NFV9_INVALID_LOGGING_INDEX   0xffffffff
 
#define NFV9_PAD_VALUE   (3)
 

Enumerations

enum  netflow_record {
  RECORD_INVALID = 0, NAT44_ADD_RECORD, NAT44_DEL_RECORD, NAT64_ADD_BIB_RECORD,
  NAT64_DEL_BIB_RECORD, NAT64_ADD_SESSION_RECORD, NAT64_DEL_SESSION_RECORD, DS_LITE_ADD_RECORD,
  DS_LITE_DEL_RECORD, NAT44_BULK_ADD_RECORD, NAT44_BULK_DEL_RECORD, DS_LITE_BULK_ADD_RECORD,
  DS_LITE_BULK_DEL_RECORD, INGRESS_VRF_ID_NAME_RECORD, NAT44_ADD_SESSION_RECORD, NAT44_DEL_SESSION_RECORD,
  DS_LITE_ADD_SESSION_RECORD, DS_LITE_DEL_SESSION_RECORD, MAX_RECORDS
}
 
enum  netflow_template_sent { TEMPLATE_SENT_FALSE = 0, TEMPLATE_SENT_TRUE = 1 }
 
enum  cnat_nfv9_template_add_flag_t { cnat_nfv9_template_add_default, cnat_nfv9_template_add_always }
 

Functions

void cnat_nfv9_logging_init ()
 
void cnat_nfv9_log_mapping_create (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, int bulk_alloc)
 
void cnat_nfv9_nat44_log_session_create (cnat_main_db_entry_t *db, cnat_session_entry_t *sdb, cnat_vrfmap_t *vrfmap)
 
void cnat_nfv9_nat44_log_session_delete (cnat_main_db_entry_t *db, cnat_session_entry_t *sdb, cnat_vrfmap_t *vrfmap)
 
void cnat_nfv9_log_mapping_delete (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, int bulk_alloc)
 
void cnat_syslog_nat44_mapping_create (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, cnat_session_entry_t *sdb, int bulk_alloc)
 
void cnat_syslog_nat44_mapping_delete (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, cnat_session_entry_t *sdb, int bulk_alloc)
 
void cnat_nfv9_ds_lite_mapping_create (cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, int bulk_alloc)
 
void cnat_nfv9_ds_lite_mapping_delete (cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, int bulk_alloc)
 
void cnat_nfv9_ds_lite_log_session_create (cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, cnat_session_entry_t *sdb)
 
void cnat_nfv9_ds_lite_log_session_delete (cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, cnat_session_entry_t *sdb)
 
void cnat_nfv9_bib_mapping_create (nat64_bib_entry_t *db, nat64_table_entry_t *nat64_entry)
 
void cnat_nfv9_session_mapping_create (nat64_bib_entry_t *bdb, nat64_session_entry_t *sdb, nat64_table_entry_t *nat64_entry_ptr)
 
void cnat_nfv9_bib_mapping_delete (nat64_bib_entry_t *db, nat64_table_entry_t *nat64_entry)
 
void cnat_nfv9_session_mapping_delete (nat64_bib_entry_t *bdb, nat64_session_entry_t *sdb, nat64_table_entry_t *nat64_entry_ptr)
 
static void nfv9_delete_server_info (cnat_nfv9_logging_info_t *nfv9_info)
 
void handle_pending_nfv9_pkts ()
 

Variables

u16 cnat_template_id [MAX_RECORDS]
 
cnat_nfv9_template_t cnat_nfv9_template_info
 
cnat_nfv9_logging_info_t cnat_default_nfv9_logging_info
 
cnat_nfv9_logging_info_tcnat_nfv9_logging_info_pool
 
cnat_nfv9_global_info_t cnat_nfv9_global_info
 
nfv9_server_info_tnfv9_server_info_pool
 

Macro Definition Documentation

#define CNAT_NFV9_ADD_FIELD_COUNT   7

Definition at line 173 of file cnat_logging.h.

#define CNAT_NFV9_ADD_RECORD_LENGTH
Value:

Definition at line 828 of file cnat_logging.h.

#define CNAT_NFV9_ADD_RECORD_PAD_BYTES   (3)

Definition at line 585 of file cnat_logging.h.

#define CNAT_NFV9_ADD_TEMPLATE_ID   256

Definition at line 186 of file cnat_logging.h.

#define CNAT_NFV9_BULK_ADD_RECORD_LENGTH
Value:

Definition at line 839 of file cnat_logging.h.

#define CNAT_NFV9_BULK_ADD_RECORD_PAD_BYTES   (0)

Definition at line 626 of file cnat_logging.h.

#define CNAT_NFV9_BULK_DEL_RECORD_LENGTH
Value:

Definition at line 841 of file cnat_logging.h.

#define CNAT_NFV9_BULK_DEL_RECORD_PAD_BYTES   (2)

Definition at line 627 of file cnat_logging.h.

#define CNAT_NFV9_DATAFLOW_RECORD_HEADER_LENGTH   (sizeof(nfv9_dataflow_record_header_t))

Definition at line 821 of file cnat_logging.h.

#define CNAT_NFV9_DEL_FIELD_COUNT   4

Definition at line 174 of file cnat_logging.h.

#define CNAT_NFV9_DEL_RECORD_LENGTH
Value:

Definition at line 831 of file cnat_logging.h.

#define CNAT_NFV9_DEL_RECORD_PAD_BYTES   (1)

Definition at line 586 of file cnat_logging.h.

#define CNAT_NFV9_DEL_TEMPLATE_ID   257

Definition at line 187 of file cnat_logging.h.

#define CNAT_NFV9_DESTINATION_IP_ADDR_FIELD_SIZE   4

Definition at line 261 of file cnat_logging.h.

#define CNAT_NFV9_DESTINATION_IP_ADDR_FIELD_TYPE   12

Definition at line 260 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_ADD_FIELD_COUNT   8

Definition at line 175 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_ADD_RECORD_LENGTH
Value:

Definition at line 834 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_ADD_RECORD_PAD_BYTES   (3)

Definition at line 595 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_ADD_SESSION_FIELD_COUNT   10

Definition at line 183 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_ADD_SESSION_RECORD_LENGTH
#define CNAT_NFV9_DS_LITE_ADD_SESSION_RECORD_PAD_BYTES   (1)

Definition at line 597 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_ADD_SESSION_TEMPLATE_ID   273

Definition at line 197 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_ADD_TEMPLATE_ID   267

Definition at line 193 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_BULK_ADD_FIELD_COUNT   7

Definition at line 208 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_BULK_ADD_RECORD_LENGTH
#define CNAT_NFV9_DS_LITE_BULK_ADD_RECORD_PAD_BYTES   (0)

Definition at line 653 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_BULK_ADD_TEMPLATE_ID   269

Definition at line 203 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_BULK_DEL_FIELD_COUNT   4

Definition at line 209 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_BULK_DEL_RECORD_LENGTH
#define CNAT_NFV9_DS_LITE_BULK_DEL_RECORD_PAD_BYTES   (2)

Definition at line 654 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_BULK_DEL_TEMPLATE_ID   270

Definition at line 204 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_DEL_FIELD_COUNT   5

Definition at line 176 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_DEL_RECORD_LENGTH
Value:

Definition at line 836 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_DEL_RECORD_PAD_BYTES   (1)

Definition at line 596 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_DEL_SESSION_FIELD_COUNT   7

Definition at line 184 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_DEL_SESSION_RECORD_LENGTH
#define CNAT_NFV9_DS_LITE_DEL_SESSION_RECORD_PAD_BYTES   (3)

Definition at line 598 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_DEL_SESSION_TEMPLATE_ID   274

Definition at line 198 of file cnat_logging.h.

#define CNAT_NFV9_DS_LITE_DEL_TEMPLATE_ID   268

Definition at line 194 of file cnat_logging.h.

#define cnat_nfv9_dump_time_change_logs   cnat_dump_time_change_logs

Definition at line 161 of file cnat_logging.h.

#define cnat_nfv9_get_sys_up_time_in_ms   cnat_get_sys_up_time_in_ms

Definition at line 157 of file cnat_logging.h.

#define cnat_nfv9_get_unix_time_in_seconds   cnat_get_unix_time_in_seconds

Definition at line 159 of file cnat_logging.h.

#define CNAT_NFV9_INGRESS_VRF_ID_NAME_OPTION_LEN   8

Definition at line 222 of file cnat_logging.h.

#define CNAT_NFV9_INGRESS_VRF_ID_NAME_TEMPLATE_ID   262

Definition at line 192 of file cnat_logging.h.

#define CNAT_NFV9_INGRESS_VRF_NAME_FIELD_SIZE   12

Definition at line 220 of file cnat_logging.h.

#define CNAT_NFV9_INGRESS_VRF_NAME_FIELD_TYPE   236

Definition at line 219 of file cnat_logging.h.

#define CNAT_NFV9_INGRESS_VRFID_NAME_RECORD_LENGTH
#define CNAT_NFV9_INGRESS_VRFID_NAME_RECORD_PAD_BYTES   (0)

Definition at line 600 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_DST_PORT_FIELD_SIZE   2

Definition at line 258 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_DST_PORT_FIELD_TYPE   11

Definition at line 257 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IP_ADDR_FIELD_SIZE   4

Definition at line 232 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IP_ADDR_FIELD_TYPE   8

Definition at line 231 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IP_PORT_FIELD_SIZE   2

Definition at line 238 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IP_PORT_FIELD_TYPE   7

Definition at line 237 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IPV6_DST_ADDR_FIELD_SIZE   16

Definition at line 252 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IPV6_DST_ADDR_FIELD_TYPE   28

Definition at line 251 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IPV6_SRC_ADDR_FIELD_SIZE   16

Definition at line 249 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_IPV6_SRC_ADDR_FIELD_TYPE   27

Definition at line 248 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_VRFID_FIELD_SIZE   4

Definition at line 226 of file cnat_logging.h.

#define CNAT_NFV9_INSIDE_VRFID_FIELD_TYPE   234

Definition at line 225 of file cnat_logging.h.

#define CNAT_NFV9_INVALID_LOGGING_INDEX   0xffffffff

Definition at line 907 of file cnat_logging.h.

#define CNAT_NFV9_MAX_PKT_LENGTH   1400

Definition at line 902 of file cnat_logging.h.

#define CNAT_NFV9_MAX_SINGLE_RECORD_LENGTH
#define CNAT_NFV9_MIN_RECORD_SIZE
Value:
(60 + \
#define CNAT_NFV9_TEMPLATE_LENGTH
Definition: cnat_logging.h:818
#define CNAT_NFV9_DATAFLOW_RECORD_HEADER_LENGTH
Definition: cnat_logging.h:821
#define CNAT_NFV9_MAX_SINGLE_RECORD_LENGTH
Definition: cnat_logging.h:871

Definition at line 894 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_ADD_SESSION_FIELD_COUNT   9

Definition at line 181 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_ADD_SESSION_RECORD_LENGTH
Value:

Definition at line 875 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_ADD_SESSION_RECORD_PAD_BYTES   (1)

Definition at line 592 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_ADD_SESSION_TEMPLATE_ID   271

Definition at line 195 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_BULK_ADD_FIELD_COUNT   6

Definition at line 206 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_BULK_ADD_TEMPLATE_ID   265

Definition at line 201 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_BULK_DEL_FIELD_COUNT   3

Definition at line 207 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_BULK_DEL_TEMPLATE_ID   266

Definition at line 202 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_DEL_SESSION_FIELD_COUNT   6

Definition at line 182 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_DEL_SESSION_RECORD_LENGTH
Value:

Definition at line 879 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_DEL_SESSION_RECORD_PAD_BYTES   (3)

Definition at line 593 of file cnat_logging.h.

#define CNAT_NFV9_NAT44_DEL_SESSION_TEMPLATE_ID   272

Definition at line 196 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_ADD_BIB_FIELD_COUNT   5

Definition at line 177 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_ADD_BIB_RECORD_LENGTH
Value:

Definition at line 855 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_ADD_BIB_RECORD_PAD_BYTES   (3)

Definition at line 588 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_ADD_BIB_TEMPLATE_ID   258

Definition at line 188 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_ADD_SESSION_FIELD_COUNT   8

Definition at line 179 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_ADD_SESSION_RECORD_LENGTH
#define CNAT_NFV9_NAT64_ADD_SESSION_RECORD_PAD_BYTES   (1)

Definition at line 590 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_ADD_SESSION_TEMPLATE_ID   260

Definition at line 190 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_DEL_BIB_FIELD_COUNT   3

Definition at line 178 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_DEL_BIB_RECORD_LENGTH
Value:

Definition at line 859 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_DEL_BIB_RECORD_PAD_BYTES   (1)

Definition at line 589 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_DEL_BIB_TEMPLATE_ID   259

Definition at line 189 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_DEL_SESSION_FIELD_COUNT   5

Definition at line 180 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_DEL_SESSION_RECORD_LENGTH
#define CNAT_NFV9_NAT64_DEL_SESSION_RECORD_PAD_BYTES   (3)

Definition at line 591 of file cnat_logging.h.

#define CNAT_NFV9_NAT64_DEL_SESSION_TEMPLATE_ID   261

Definition at line 191 of file cnat_logging.h.

#define CNAT_NFV9_OPTION_TEMPLATE_FLOWSET_ID   1

Definition at line 171 of file cnat_logging.h.

#define CNAT_NFV9_OPTION_TEMPLATE_LENGTH   (sizeof(cnat_nfv9_option_template_t))

Definition at line 819 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_ADDR_FIELD_SIZE   4

Definition at line 235 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_ADDR_FIELD_TYPE   225

Definition at line 234 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_DST_ADDR_FIELD_SIZE   4

Definition at line 255 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_DST_ADDR_FIELD_TYPE   226

Definition at line 254 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_PORT_END_FIELD_SIZE   2

Definition at line 215 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_PORT_END_FIELD_TYPE   362

Definition at line 214 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_PORT_FIELD_SIZE   2

Definition at line 241 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_PORT_FIELD_TYPE   227

Definition at line 240 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_PORT_START_FIELD_SIZE   2

Definition at line 212 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_IP_PORT_START_FIELD_TYPE   361

Definition at line 211 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_VRFID_FIELD_SIZE   4

Definition at line 229 of file cnat_logging.h.

#define CNAT_NFV9_OUTSIDE_VRFID_FIELD_TYPE   235

Definition at line 228 of file cnat_logging.h.

#define CNAT_NFV9_PROTOCOL_FIELD_SIZE   1

Definition at line 244 of file cnat_logging.h.

#define CNAT_NFV9_PROTOCOL_FIELD_TYPE   4

Definition at line 243 of file cnat_logging.h.

#define CNAT_NFV9_SOURCE_ID_VALUE   0x1234

Definition at line 276 of file cnat_logging.h.

#define CNAT_NFV9_TEMPLATE_FLOWSET_ID   0

Definition at line 170 of file cnat_logging.h.

#define CNAT_NFV9_TEMPLATE_LENGTH   (sizeof(cnat_nfv9_template_t))

Definition at line 818 of file cnat_logging.h.

#define CNAT_NFV9_TEMPLATE_OFFSET   (CNAT_NFV9_HDR_OFFSET + sizeof(nfv9_header_t))

Definition at line 815 of file cnat_logging.h.

#define CNAT_NFV9_VERSION_NUMBER   9

Definition at line 168 of file cnat_logging.h.

#define NFV9_DEF_PATH_MTU   1500

Definition at line 36 of file cnat_logging.h.

#define NFV9_PAD_VALUE   (3)

Definition at line 912 of file cnat_logging.h.

#define NFV9_VRF_NAME_LEN   12

Definition at line 37 of file cnat_logging.h.

Enumeration Type Documentation

Enumerator
cnat_nfv9_template_add_default 
cnat_nfv9_template_add_always 

Definition at line 1035 of file cnat_logging.h.

Enumerator
RECORD_INVALID 
NAT44_ADD_RECORD 
NAT44_DEL_RECORD 
NAT64_ADD_BIB_RECORD 
NAT64_DEL_BIB_RECORD 
NAT64_ADD_SESSION_RECORD 
NAT64_DEL_SESSION_RECORD 
DS_LITE_ADD_RECORD 
DS_LITE_DEL_RECORD 
NAT44_BULK_ADD_RECORD 
NAT44_BULK_DEL_RECORD 
DS_LITE_BULK_ADD_RECORD 
DS_LITE_BULK_DEL_RECORD 
INGRESS_VRF_ID_NAME_RECORD 
NAT44_ADD_SESSION_RECORD 
NAT44_DEL_SESSION_RECORD 
DS_LITE_ADD_SESSION_RECORD 
DS_LITE_DEL_SESSION_RECORD 
MAX_RECORDS 

Definition at line 130 of file cnat_logging.h.

Enumerator
TEMPLATE_SENT_FALSE 
TEMPLATE_SENT_TRUE 

Definition at line 152 of file cnat_logging.h.

Function Documentation

void cnat_nfv9_bib_mapping_create ( nat64_bib_entry_t db,
nat64_table_entry_t nat64_entry 
)

Definition at line 1528 of file cnat_logging.c.

+ Here is the call graph for this function:

void cnat_nfv9_bib_mapping_delete ( nat64_bib_entry_t db,
nat64_table_entry_t nat64_entry 
)

Definition at line 1779 of file cnat_logging.c.

+ Here is the call graph for this function:

void cnat_nfv9_ds_lite_log_session_create ( cnat_main_db_entry_t db,
dslite_table_entry_t dslite_entry,
cnat_session_entry_t sdb 
)

Definition at line 2384 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_ds_lite_log_session_delete ( cnat_main_db_entry_t db,
dslite_table_entry_t dslite_entry,
cnat_session_entry_t sdb 
)

Definition at line 2522 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_ds_lite_mapping_create ( cnat_main_db_entry_t db,
dslite_table_entry_t dslite_entry,
int  bulk_alloc 
)

Definition at line 2255 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_ds_lite_mapping_delete ( cnat_main_db_entry_t db,
dslite_table_entry_t dslite_entry,
int  bulk_alloc 
)

Definition at line 2319 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_log_mapping_create ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap,
int  bulk_alloc 
)

Definition at line 1383 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_log_mapping_delete ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap,
int  bulk_alloc 
)

Definition at line 1458 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_logging_init ( )

Definition at line 3470 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_nat44_log_session_create ( cnat_main_db_entry_t db,
cnat_session_entry_t sdb,
cnat_vrfmap_t vrfmap 
)

Definition at line 2010 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_nat44_log_session_delete ( cnat_main_db_entry_t db,
cnat_session_entry_t sdb,
cnat_vrfmap_t vrfmap 
)

Definition at line 2136 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_nfv9_session_mapping_create ( nat64_bib_entry_t bdb,
nat64_session_entry_t sdb,
nat64_table_entry_t nat64_entry_ptr 
)

Definition at line 1635 of file cnat_logging.c.

+ Here is the call graph for this function:

void cnat_nfv9_session_mapping_delete ( nat64_bib_entry_t bdb,
nat64_session_entry_t sdb,
nat64_table_entry_t nat64_entry_ptr 
)

Definition at line 1880 of file cnat_logging.c.

+ Here is the call graph for this function:

void cnat_syslog_nat44_mapping_create ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap,
cnat_session_entry_t sdb,
int  bulk_alloc 
)

Definition at line 436 of file cnat_syslog.c.

+ Here is the caller graph for this function:

void cnat_syslog_nat44_mapping_delete ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap,
cnat_session_entry_t sdb,
int  bulk_alloc 
)

Definition at line 453 of file cnat_syslog.c.

+ Here is the caller graph for this function:

void handle_pending_nfv9_pkts ( )

Definition at line 2753 of file cnat_logging.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void nfv9_delete_server_info ( cnat_nfv9_logging_info_t nfv9_info)
inlinestatic

Definition at line 1049 of file cnat_logging.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

cnat_nfv9_logging_info_t cnat_default_nfv9_logging_info

Definition at line 92 of file cnat_logging.c.

cnat_nfv9_global_info_t cnat_nfv9_global_info

Definition at line 63 of file cnat_logging.c.

cnat_nfv9_logging_info_t* cnat_nfv9_logging_info_pool

Definition at line 93 of file cnat_logging.c.

cnat_nfv9_template_t cnat_nfv9_template_info

Definition at line 65 of file cnat_logging.c.

u16 cnat_template_id[MAX_RECORDS]

Definition at line 69 of file cnat_logging.c.

nfv9_server_info_t* nfv9_server_info_pool

Definition at line 95 of file cnat_logging.c.