]> git.ipfire.org Git - people/ms/network.git/blame - src/functions/functions.constants
Replace routing_db_* by db_*
[people/ms/network.git] / src / functions / functions.constants
CommitLineData
1848564d
MT
1#!/bin/bash
2###############################################################################
3# #
4# IPFire.org - A linux based firewall #
5# Copyright (C) 2010 Michael Tremer & Christian Schmidt #
6# #
7# This program is free software: you can redistribute it and/or modify #
8# it under the terms of the GNU General Public License as published by #
9# the Free Software Foundation, either version 3 of the License, or #
10# (at your option) any later version. #
11# #
12# This program is distributed in the hope that it will be useful, #
13# but WITHOUT ANY WARRANTY; without even the implied warranty of #
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15# GNU General Public License for more details. #
16# #
17# You should have received a copy of the GNU General Public License #
18# along with this program. If not, see <http://www.gnu.org/licenses/>. #
19# #
20###############################################################################
21
e9ea243e
MT
22# Set gettext text domain.
23TEXTDOMAIN="network"
24
059469a8 25LOG_DIR=/var/log/network
65c75fad 26RUN_DIR=/run/network
1848564d 27
059469a8 28RED_RUN=${RUN_DIR}/red
1848564d
MT
29PPP_SECRETS=/etc/ppp/secrets
30
d2a21d01
MT
31# Network directory configuration.
32NETWORK_CONFIG_DIR="/etc/network"
c041b631 33NETWORK_DB_DIR="${RUN_DIR}/db"
d2a21d01
MT
34NETWORK_ZONE_DIR="${NETWORK_CONFIG_DIR}"
35NETWORK_HOOKS_DIR=/usr/lib/network/hooks
36
37# Network file configuration.
e9df08ad
MT
38NETWORK_SETTINGS_FILE=${NETWORK_CONFIG_DIR}/config
39NETWORK_SETTINGS_FILE_PARAMS="DEBUG"
31e59f2b 40CONFIG_HOSTNAME="/etc/hostname"
ff8ec5ef
MT
41
42RED_DB_DIR=${RUN_DIR}/red
b816e04b 43ROUTING_DB_DIR=${RUN_DIR}/routing
1848564d 44
059469a8
MT
45DB_CONNECTION_FILE="${LOG_DIR}/connections.db"
46
cb965348
MT
47# (Static) route settings.
48NETWORK_CONFIG_ROUTES="${NETWORK_CONFIG_DIR}/routes"
478de6f9 49NETWORK_CONFIG_ROUTES_PARAMS="network gateway unreachable prohibit blackhole mtu"
cb965348 50
1848564d
MT
51# Proper error codes
52EXIT_OK=0
53EXIT_ERROR=1
54EXIT_CONF_ERROR=2
828eb94a 55EXIT_NOT_SUPPORTED=3
05365355 56EXIT_NOT_HANDLED=4
2181765d 57EXIT_COMMAND_NOT_FOUND=127
6cae8097 58EXIT_ERROR_ASSERT=128
1848564d 59
2eaf16f3
MT
60EXIT_TRUE=0
61EXIT_FALSE=1
8666b68f 62EXIT_UNKNOWN=2
2eaf16f3 63
83d72e63
MT
64# Exit codes for IPv6 duplicate address detection (DAD)
65EXIT_DAD_OK=0
66EXIT_DAD_FAILED=8
67EXIT_DAD_TENTATIVE=8
68
1848564d
MT
69STATUS_UP=0
70STATUS_DOWN=1
711ffac1
MT
71STATUS_NOCARRIER=2
72
1848564d
MT
73DISCOVER_OK=0
74DISCOVER_ERROR=1
75DISCOVER_NOT_SUPPORTED=2
76
7de0637a
MT
77# The user is able to create zones that begin
78# with these names followed by a number.
79ZONE_LOCAL="lan"
80ZONE_NONLOCAL="upl"
81VALID_ZONES="${ZONE_LOCAL} ${ZONE_NONLOCAL}"
1848564d
MT
82
83SYS_CLASS_NET="/sys/class/net"
2ae4f579
MT
84
85# Timeout values
86TIMEOUT_RESTART=2
711ffac1 87
feb76eaf 88DEVICE_PRINT_LINE1=" %-24s %s\n"
a1a8f0f4 89
8c63fa13 90PORT_PATTERN="pN"
8ee92277 91PORT_PATTERN_ACCESSPOINT="apN"
e6993835 92PORT_PATTERN_BATMAN_ADV="batN"
8ee92277 93PORT_PATTERN_WIRELESS="wN"
b8026986 94PORT_PATTERN_WIRELESS_ADHOC="adhocN"
a23fdc0e 95PORT_PATTERN_WIRELESS_MONITOR="wmonN"