FD.io VPP  v16.09
Vector Packet Processing
cnat_config.c
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * cnat_config.c - configuration definitions
4  *
5  * Copyright (c) 2007-2012 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 #include "cnat_config.h"
20 #include "cnat_cli.h"
21 #include "cnat_v4_pptp_alg.h"
22 #include "platform_common.h"
23 
24 /* session timeout */
25 
31 
32 cnat_pptp_config_t pptp_cfg =
33  {
35  .timeout = PPTP_GRE_TIMEOUT
36  } ;
37 
38 /* This flag is used as indication of timeout related config
39  * changes and hence db needs to be updated
40  */
42 
43 /* mapping refresh direction,
44  * 1 inbound and outbound refresh
45  */
47 
49 
54 
55 
56 /*
57  * ftp alg enable
58  */
61 
62 /*
63  * load balancing debug mode
64  */
66 
67 
68 /* good or evil mode
69  * 0 endpoint-independnet filter, good mode
70  * 1 address depedent filter, evil mode
71  */
73 
75 
77 
#define PPTP_GRE_TIMEOUT
#define RATE_LIMIT_UDP_CORE
Definition: cnat_config.h:38
u8 mapping_refresh_both_direction
Definition: cnat_config.c:46
u32 cnat_main_db_icmp_rate_limit_core
Definition: cnat_config.c:51
#define V4_DEF_TCP_AS_TO
Definition: cnat_config.h:33
u16 cnat_static_port_range
Definition: cnat_config.c:53
#define V4_DEF_UDP_IS_TO
Definition: cnat_config.h:30
u8 address_dependent_filtering
Definition: cnat_config.c:72
u16 udp_init_session_timeout
Definition: cnat_config.c:28
u8 lb_debug_enable
Definition: cnat_config.c:65
u8 ftp_alg_enabled
Definition: cnat_config.c:59
u16 cnat_main_db_max_ports_per_user
Definition: cnat_config.c:48
#define V4_DEF_UDP_AS_TO
Definition: cnat_config.h:31
u16 rtsp_alg_port_num
Definition: cnat_config.c:60
#define V4_DEF_TCP_IS_TO
Definition: cnat_config.h:32
#define PPTP_DISABLED
u32 cnat_main_db_icmp_rate_limit
Definition: cnat_config.c:50
u16 icmp_session_timeout
Definition: cnat_config.c:30
#define V4_CONFIG_DELETE_TO
Definition: cnat_config.h:66
u16 config_delete_timeout
Definition: cnat_config.c:76
#define DEF_RATE_LIMIT_CORE
Definition: cnat_config.h:37
u8 timeout_dirty_flag
Definition: cnat_config.c:41
u16 tcp_initial_setup_timeout
Definition: cnat_config.c:26
unsigned int u32
Definition: types.h:88
u16 tcp_active_timeout
Definition: cnat_config.c:27
#define CNAT_DEF_STATIC_PORT_RANGE
Definition: cnat_config.h:49
#define V4_DEF_DISABLE
Definition: cnat_config.h:47
#define V4_DEF_ICMP_S_TO
Definition: cnat_config.h:29
unsigned short u16
Definition: types.h:57
unsigned char u8
Definition: types.h:56
u16 udp_act_session_timeout
Definition: cnat_config.c:29
#define V4_DEF_ENABLE
Definition: cnat_config.h:46
#define V4_DEF_MAX_PORTS
Definition: cnat_config.h:35
u32 crc_zero_udp_rate_limit_core
Definition: cnat_config.c:52
#define ICMP_MSG_RATE_LIMIT
Definition: cnat_config.h:65
u16 per_user_icmp_msg_limit
Definition: cnat_config.c:74
#define DEF_RATE_LIMIT
Definition: cnat_config.h:36