2 *------------------------------------------------------------------
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:
10 * http://www.apache.org/licenses/LICENSE-2.0
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 *------------------------------------------------------------------
20 #ifndef __CNAT_LOG_API_H__
21 #define __CNAT_LOG_API_H__
23 #include "cnat_logging.h"
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
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
45 static inline void cnat_log_ds_lite_port_limit_exceeded(
47 dslite_table_entry_t *dslite_entry_ptr)
53 static inline void cnat_log_nat44_port_limit_exceeded(
55 cnat_vrfmap_t *vrfmap)
59 static inline void cnat_log_nat44_mapping_create(cnat_main_db_entry_t *db,
61 #ifndef NO_BULK_LOGGING
69 static inline void cnat_log_nat44_mapping_delete(cnat_main_db_entry_t *db,
71 #ifndef NO_BULK_LOGGING
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 )
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 )
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 )
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 )
113 #endif /* #ifndef __CNAT_LOG_API_H__ */