FD.io VPP  v16.06
Vector Packet Processing
cnat_log_api.h
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * cnat_log_api.h
4  * Declraes the common APIs for logging (both syslog and NFV9)
5  * Copyright (c) 2013, 20122 Cisco and/or its affiliates.
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at:
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *------------------------------------------------------------------
18  */
19 
20 #ifndef __CNAT_LOG_API_H__
21 #define __CNAT_LOG_API_H__
22 
23 #include "cnat_logging.h"
24 
26  dslite_table_entry_t *dslite_entry
27 #ifndef NO_BULK_LOGGING
28  , int bulk_alloc
29 #endif
30  )
31 {
32  return;
33 }
34 
36  dslite_table_entry_t *dslite_entry
37 #ifndef NO_BULK_LOGGING
38  , int bulk_alloc
39 #endif
40  )
41 {
42  return;
43 }
44 
46  dslite_key_t * key,
47  dslite_table_entry_t *dslite_entry_ptr)
48 {
49  return;
50 
51 }
52 
54  cnat_key_t * key,
55  cnat_vrfmap_t *vrfmap)
56 {
57  return;
58 }
60  cnat_vrfmap_t *vrfmap
61 #ifndef NO_BULK_LOGGING
62  , int bulk_alloc
63 #endif
64  )
65 {
66  return;
67 }
68 
70  cnat_vrfmap_t *vrfmap
71 #ifndef NO_BULK_LOGGING
72  , int bulk_alloc
73 #endif
74  )
75 {
76  return;
77 }
78 
79 /* Session Logging API for nat44 */
83  cnat_vrfmap_t *vrfmap )
84 {
85  return;
86 }
87 
91  cnat_vrfmap_t *vrfmap )
92 {
93  return;
94 }
95 
96 /* Session Logging API for dslite */
99  dslite_table_entry_t *dslite_entry,
100  cnat_session_entry_t *sdb )
101 {
102  return;
103 }
104 
107  dslite_table_entry_t *dslite_entry,
108  cnat_session_entry_t *sdb )
109 {
110  return;
111 }
112 
113 #endif /* #ifndef __CNAT_LOG_API_H__ */
114 
static void cnat_log_ds_lite_mapping_create(cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, int bulk_alloc)
Definition: cnat_log_api.h:35
static void cnat_log_nat44_mapping_create(cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, int bulk_alloc)
Definition: cnat_log_api.h:59
Definition: cnat_db.h:153
static void cnat_log_ds_lite_port_limit_exceeded(dslite_key_t *key, dslite_table_entry_t *dslite_entry_ptr)
Definition: cnat_log_api.h:45
static void cnat_log_nat44_port_limit_exceeded(cnat_key_t *key, cnat_vrfmap_t *vrfmap)
Definition: cnat_log_api.h:53
static void cnat_session_log_ds_lite_mapping_delete(cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, cnat_session_entry_t *sdb)
Definition: cnat_log_api.h:105
Definition: dslite_defs.h:106
static void cnat_session_log_ds_lite_mapping_create(cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, cnat_session_entry_t *sdb)
Definition: cnat_log_api.h:97
static void cnat_log_nat44_mapping_delete(cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, int bulk_alloc)
Definition: cnat_log_api.h:69
static void cnat_log_ds_lite_mapping_delete(cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, int bulk_alloc)
Definition: cnat_log_api.h:25
Definition: cnat_db.h:336
static void cnat_session_log_nat44_mapping_create(cnat_main_db_entry_t *db, cnat_session_entry_t *sdb, cnat_vrfmap_t *vrfmap)
Definition: cnat_log_api.h:80
static void cnat_session_log_nat44_mapping_delete(cnat_main_db_entry_t *db, cnat_session_entry_t *sdb, cnat_vrfmap_t *vrfmap)
Definition: cnat_log_api.h:88