This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site_defaults.h
201 lines (161 loc) · 6.73 KB
/
site_defaults.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/*
* Copyright (c) 2010 Colorado State University
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom
* the Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
*
* File: site_defaults.h
* Authors: Dan Massey
* Date: Oct 7, 2008
*/
#ifndef SITE_DEFAULTS_H_
#define SITE_DEFAULTS_H_
/* SITE ADMINISTRATORS MAY SET THE FOLLOWING DEFAULTS */
/* running parameters */
#define RUN_AS_USER "bgpmon"
#define RUN_DIR "/usr/local/var/run"
#define PID_FILE "/usr/local/var/run/bgpmon.pid"
#define MAX_BACKLOG_SIZE_KB 1048576
/* BGPmon LOGIN SETTINGS AND PARAMETERS */
/* Set the default login port number. If no configuration file is
* found, BGPmon listens for an administrator login on this port.
* This default setting can be over-ridden by the configuration file
* or the -r port command line option.
*/
#define DEFAULT_LOGIN_PORT 50000
/* DEFAULT_LOGIN_LISTEN_ADDR is the default addr which login control module listens on */
#define DEFAULT_LOGIN_LISTEN_ADDR "ipv4loopback"
/* Set the access login password. If no configuration file is
* found, BGPmon uses this as the access login password.
* This is primarily for initial use and password recovery.
* It is expected administrators set a password in the configuration file.
*/
#define DEFAULT_ACCESS_PASSWORD "BGPmon"
/* Set the enable password. If no configuration file is
* found, BGPmon uses this as the enable password.
* This is primarily for initial use and password recovery.
* It is expected administrators set a password in the configuration file.
*/
#define DEFAULT_ENABLE_PASSWORD "BGPmon"
/* Set the default BGPmon configuration filename. This filename
* is used the "-c configfile" option is not specified on the command line
*/
#define DEFAULT_CONFIGFILE "/usr/local/etc/bgpmon_config.txt"
/* BGPmon LOG SETTINGS AND PARAMETERS */
/* DEFAULT_USE_SYSLOG controls whether output is sent to
* the system's syslog facility or written to stdout.
* Set the value to 1 to use the system's syslog facility.
* Set the value to 0 to write all output to stdout.
*/
#define DEFAULT_USE_SYSLOG 0 // Don't use syslog
/* DEFAULT_LOG_LEVEL controls the level of output verbosity.
* Possible settings include:
* 0 log only emergency messages
* 1 log alert and emergency messages
* 1 log critical, alert and emergency messages
* 2 log critical, alert and emergency messages
* 3 log error, critical, alert and emergency messages
* 4 log warning, error, critical, alert and emergency
* messages
* 5 log notice, warning, error, critical, alert and
* emergency messages
* 6 log informational, notice, warning, error, critical,
* alert and emergency messages
* 7 log debug information in addition to informational,
* notice, warning, error, critical, alert and emergency
* messages. For full debug output, set #define DEBUG
* in the file where full debug output is desired.
*/
#define DEFAULT_LOG_LEVEL 7 // DEBUG
/* DEFAULT_LOG_FACILITY sets the syslog facility.
* This setting is only meaningful when messages are written
* to syslog. This setting is ignored in interactive mode.
* Possible settings include:
* 0 LOG_AUTH
* 1 LOG_AUTHPRIV
* 2 LOG_CONSOLE
* 3 LOG_CRON
* 4 LOG_DAEMON
* 5 LOG_FTP
* 6 LOG_KERN
* 7 LOG_LPR
* 8 LOG_MAIL
* 9 LOG_NEWS
* 10 LOG_SECURITY
* 11 LOG_SYSLOG
* 12 LOG_USER
* 13 LOG_UUCP
* 14 LOG_LOCAL
*/
#define DEFAULT_LOG_FACILITY 12 // LOG_USER
/* default annouce afi/safi */
#define PEERS_ANNOUCE_AFI 1
#define PEERS_ANNOUCE_SAFI 1
/* default monitor side settings */
#define MONITOR_ADDRESS IPv4_ANY
#define MONITOR_PORT 50004
#define MONITOR_ANNOUNCE_HOLDTIME 180
#define MONITOR_BGP_VERSION 4
/* default peer side settings */
#define PEER_PORT 179
#define PEER_MIN_HOLDTIME 30
#define PEER_BGP_VERSION 4
/* default label action */
#define PEERS_LABEL_ACTION Label
/* default enabled flag */
#define PEERS_ENABLED TRUE
/* default route refresh action */
#define PEERS_RR_ACTION TRUE
/* default group name */
#define DEFAULT_PEER_GROUP_NAME "DefaultPeerGroup"
/* CHAINING RELATED DEFAULTS */
/* Chains default enabled flag */
#define CHAINS_ENABLED TRUE
/* CLIENT RELATED DEFAULTS */
/* CLIENTS_UPDATES_LISTEN_PORT is the default port which the client control updates module listens on */
#define CLIENTS_UPDATES_LISTEN_PORT 50001
/* CLIENTS_UPDATES_LISTEN_ADDR is the default addr which the clients control updates module listens on */
#define CLIENTS_UPDATES_LISTEN_ADDR "ipv4loopback"
/* CLIENTS_RIB_LISTEN_PORT is the default port which the clients control rib module listens on */
#define CLIENTS_RIB_LISTEN_PORT 50002
/* CLIENTS_RIB_LISTEN_ADDR is the default addr which the clients control rib module listens on */
#define CLIENTS_RIB_LISTEN_ADDR "ipv4loopback"
/* CLIENTS_LISTEN_ENABLED is the default status of clients control module*/
#define CLIENTS_LISTEN_ENABLED TRUE
/* MRT RELATED DEFAULTS */
/* MRT_LISTEN_PORT is the default port which mrt control module listens on */
#define MRT_LISTEN_PORT 50003
/* MRT_LISTEN_ADDR is the default addr which mrt control module listens on */
#define MRT_LISTEN_ADDR "ipv4any"
/* MRT_LISTEN_ENABLED is the default status of mrt control module*/
#define MRT_LISTEN_ENABLED TRUE
/* MRT_LABEL_ACTION is the default label action of messages from quagag*/
#define MRT_LABEL_ACTION Label
/* XML RELATED DEFAULTS */
/* ASCII_MESSAGES decides if ASCII format message will be generated or not*/
#define ASCII_MESSAGES TRUE
/* Periodic Module RELATED DEFAULTS */
/* SESSION_STATUS_INTERVAL decides how often a status message is sent*/
#define SESSION_STATUS_INTERVAL 300
/* ROUTE_REFRESH_INTERVAL_PATH decides how often a route refresh is triggered*/
#define ROUTE_REFRESH_INTERVAL 0
#endif /*SITE_DEFAULTS_H_*/