Project Alice
Loading...
Searching...
No Matches
default_config.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2014 by Cisco Systems, Inc.
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7
8 1. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution.
13
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef DEFAULT_CONFIG_H_
27#define DEFAULT_CONFIG_H_
28
29/* disable NATPMP support */
30/* #undef PCP_DISABLE_NATPMP_SUPPORT */
31
32/* enable experimental PCP options support */
33/* #undef PCP_EXPERIMENTAL */
34
35/* enable FLOW-PRIORITY option support */
36/* #undef PCP_FLOW_PRIORITY */
37
38/* Maximum number of ping attempts */
39#ifndef PCP_MAX_PING_COUNT
40#define PCP_MAX_PING_COUNT 5
41#endif
42
43/* Initial retransmission time */
44#ifndef PCP_RETX_IRT
45#define PCP_RETX_IRT 3000
46#endif
47
48/* Maximum retransmission count (0 indicates no maximum) */
49#ifndef PCP_RETX_MRC
50#define PCP_RETX_MRC 3
51#endif
52
53/* Maximum retransmission duration (0 indicates no maximum) */
54#ifndef PCP_RETX_MRD
55#define PCP_RETX_MRD 0
56#endif
57
58/* Maximum retransmission time */
59#ifndef PCP_RETX_MRT
60#define PCP_RETX_MRT 1024000
61#endif
62
63/* enable SADSCP option support */
64/* #undef PCP_SADSCP */
65
66/* Server discovery retry delay */
67#ifndef PCP_SERVER_DISCOVERY_RETRY_DELAY
68#define PCP_SERVER_DISCOVERY_RETRY_DELAY 3600
69#endif
70
71/* Default PCP server port */
72#ifndef PCP_SERVER_PORT
73#define PCP_SERVER_PORT 5351
74#endif
75
76#ifndef PCP_MAX_SUPPORTED_VERSION
77#define PCP_MAX_SUPPORTED_VERSION 2
78#endif
79
80#ifndef PCP_MIN_SUPPORTED_VERSION
81#ifdef PCP_DISABLE_NATPMP_SUPPORT
82#define PCP_MIN_SUPPORTED_VERSION 1
83#else
84#define PCP_MIN_SUPPORTED_VERSION 0
85#endif
86#endif
87
88#endif /* DEFAULT_CONFIG_H_ */