nat: static mappings in flow hash
[vpp.git] / src / plugins / nat / lib / nat_syslog_constants.h
1 /*
2  * Copyright (c) 2021 Cisco and/or its affiliates.
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 /**
16  * @file
17  * @brief NAT syslog logging constants
18  */
19 #ifndef __included_nat_syslog_constants_h__
20 #define __included_nat_syslog_constants_h__
21
22 #define NAT_FACILITY SYSLOG_FACILITY_LOCAL0
23
24 #define NAT_APPNAME "NAT"
25
26 #define SADD_SDEL_SEVERITY     SYSLOG_SEVERITY_INFORMATIONAL
27 #define APMADD_APMDEL_SEVERITY SYSLOG_SEVERITY_INFORMATIONAL
28
29 #define SADD_MSGID   "SADD"
30 #define SDEL_MSGID   "SDEL"
31 #define APMADD_MSGID "APMADD"
32 #define APMDEL_MSGID "APMDEL"
33
34 #define NSESS_SDID  "nsess"
35 #define NAPMAP_SDID "napmap"
36
37 #define SSUBIX_SDPARAM_NAME "SSUBIX"
38 #define SVLAN_SDPARAM_NAME  "SVLAN"
39 #define IATYP_SDPARAM_NAME  "IATYP"
40 #define ISADDR_SDPARAM_NAME "ISADDR"
41 #define ISPORT_SDPARAM_NAME "ISPORT"
42 #define IDADDR_SDPARAM_NAME "IDADDR"
43 #define IDPORT_SDPARAM_NAME "IDPORT"
44 #define XATYP_SDPARAM_NAME  "XATYP"
45 #define XSADDR_SDPARAM_NAME "XSADDR"
46 #define XSPORT_SDPARAM_NAME "XSPORT"
47 #define XDADDR_SDPARAM_NAME "XDADDR"
48 #define XDPORT_SDPARAM_NAME "XDPORT"
49 #define PROTO_SDPARAM_NAME  "PROTO"
50 #define SV6ENC_SDPARAM_NAME "SV6ENC"
51
52 #define IATYP_IPV4 "IPv4"
53 #define IATYP_IPV6 "IPv6"
54
55 #endif /* __included_nat_syslog_constants_h__ */
56 /*
57  * fd.io coding-style-patch-verification: ON
58  *
59  * Local Variables:
60  * eval: (c-set-style "gnu")
61  * End:
62  */