Initial commit of vpp code.
[vpp.git] / vnet / vnet / vcgn / cnat_log_api.h
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
25 static inline void cnat_log_ds_lite_mapping_delete(cnat_main_db_entry_t *db,
26     dslite_table_entry_t *dslite_entry
27 #ifndef NO_BULK_LOGGING
28      , int bulk_alloc
29 #endif
30     )
31 {
32     return;
33 }
34
35 static inline void cnat_log_ds_lite_mapping_create(cnat_main_db_entry_t *db,
36     dslite_table_entry_t *dslite_entry
37 #ifndef NO_BULK_LOGGING
38      , int bulk_alloc
39 #endif
40     )
41 {
42     return;
43 }
44
45 static inline void cnat_log_ds_lite_port_limit_exceeded(
46     dslite_key_t   * key,
47     dslite_table_entry_t *dslite_entry_ptr)
48 {
49     return;
50
51 }
52
53 static inline void cnat_log_nat44_port_limit_exceeded(
54     cnat_key_t   * key,
55     cnat_vrfmap_t *vrfmap)
56 {
57     return;
58 }
59 static inline void cnat_log_nat44_mapping_create(cnat_main_db_entry_t *db,
60     cnat_vrfmap_t *vrfmap
61 #ifndef NO_BULK_LOGGING
62      , int bulk_alloc
63 #endif
64     )
65 {
66     return;
67 }
68
69 static inline void cnat_log_nat44_mapping_delete(cnat_main_db_entry_t *db,
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 */
80 static inline void cnat_session_log_nat44_mapping_create (
81                 cnat_main_db_entry_t *db,
82                 cnat_session_entry_t *sdb,
83                 cnat_vrfmap_t *vrfmap )
84 {
85     return;
86 }
87
88 static inline void cnat_session_log_nat44_mapping_delete (
89                 cnat_main_db_entry_t *db,
90                 cnat_session_entry_t *sdb,
91                 cnat_vrfmap_t *vrfmap )
92 {
93     return;
94 }
95
96 /* Session Logging API for dslite */
97 static inline void cnat_session_log_ds_lite_mapping_create (
98                 cnat_main_db_entry_t *db,
99                 dslite_table_entry_t *dslite_entry,
100                 cnat_session_entry_t *sdb ) 
101 {
102     return;
103 }
104
105 static inline void cnat_session_log_ds_lite_mapping_delete (
106                 cnat_main_db_entry_t *db,
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