FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
sctp_debug.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 SUSE LLC.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef included_sctp_debug_h__
16 #define included_sctp_debug_h__
17 
18 #include <vlib/vlib.h>
19 
20 typedef enum _sctp_dbg
21 {
22 #define _(sym, str) SCTP_DBG_##sym,
24 #undef _
25 } sctp_dbg_e;
26 
27 #define SCTP_DEBUG_STATE_MACHINE (0)
28 #if SCTP_DEBUG_STATE_MACHINE
29 #define SCTP_DBG_STATE_MACHINE(_fmt, _args...) clib_warning (_fmt, ##_args)
30 #else
31 #define SCTP_DBG_STATE_MACHINE(_fmt, _args...)
32 #endif
33 
34 #define SCTP_DEBUG (0)
35 #if SCTP_DEBUG
36 #define SCTP_DBG(_fmt, _args...) clib_warning (_fmt, ##_args)
37 #else
38 #define SCTP_DBG(_fmt, _args...)
39 #endif
40 
41 #define SCTP_ADV_DEBUG (0)
42 #if SCTP_ADV_DEBUG
43 #define SCTP_ADV_DBG(_fmt, _args...) clib_warning (_fmt, ##_args)
44 #else
45 #define SCTP_ADV_DBG(_fmt, _args...)
46 #endif
47 
48 #define SCTP_DEBUG_OUTPUT (0)
49 #if SCTP_DEBUG_OUTPUT
50 #define SCTP_DBG_OUTPUT(_fmt, _args...) clib_warning (_fmt, ##_args)
51 #else
52 #define SCTP_DBG_OUTPUT(_fmt, _args...)
53 #endif
54 
55 #define SCTP_ADV_DEBUG_OUTPUT (0)
56 #if SCTP_ADV_DEBUG_OUTPUT
57 #define SCTP_ADV_DBG_OUTPUT(_fmt, _args...) clib_warning (_fmt, ##_args)
58 #else
59 #define SCTP_ADV_DBG_OUTPUT(_fmt, _args...)
60 #endif
61 
62 #define SCTP_CONN_TRACKING_DEBUG (0)
63 #if SCTP_CONN_TRACKING_DEBUG
64 #define SCTP_CONN_TRACKING_DBG(_fmt, _args...) clib_warning (_fmt, ##_args)
65 #else
66 #define SCTP_CONN_TRACKING_DBG(_fmt, _args...)
67 #endif
68 
69 #endif /* included_sctp_debug_h__ */
enum _sctp_dbg sctp_dbg_e