]> git.ipfire.org Git - people/stevee/network.git/blame - src/functions/functions.constants
Improve loading of kernel modules
[people/stevee/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
f5ba5f6b 27LOCK_DIR=/var/lock
1848564d 28
059469a8 29RED_RUN=${RUN_DIR}/red
1848564d
MT
30PPP_SECRETS=/etc/ppp/secrets
31
d2a21d01
MT
32# Network directory configuration.
33NETWORK_CONFIG_DIR="/etc/network"
c041b631 34NETWORK_DB_DIR="${RUN_DIR}/db"
d2a21d01
MT
35NETWORK_ZONE_DIR="${NETWORK_CONFIG_DIR}"
36NETWORK_HOOKS_DIR=/usr/lib/network/hooks
67baa452 37NETWORK_HELPERS_DIR=/usr/lib/network/helpers
de3cecef 38NETWORK_TRIGGERS_DIR=/usr/lib/network/triggers
83d5eb04 39NETWORK_SHARE_DIR=/usr/share/network
e1947a76 40NETWORK_CACHE_DIR=/var/cache/network
d2a21d01 41
cf8685a1 42NETWORK_IPSEC_CONNS_DIR="${NETWORK_CONFIG_DIR}/vpn/ipsec/connections"
67baa452 43NETWORK_IPSEC_SWANCTL_CONNECTIONS_DIR="/etc/swanctl/connections"
cf8685a1 44
d2a21d01 45# Network file configuration.
e9df08ad
MT
46NETWORK_SETTINGS_FILE=${NETWORK_CONFIG_DIR}/config
47NETWORK_SETTINGS_FILE_PARAMS="DEBUG"
31e59f2b 48CONFIG_HOSTNAME="/etc/hostname"
ff8ec5ef
MT
49
50RED_DB_DIR=${RUN_DIR}/red
b816e04b 51ROUTING_DB_DIR=${RUN_DIR}/routing
1848564d 52
059469a8
MT
53DB_CONNECTION_FILE="${LOG_DIR}/connections.db"
54
cb965348
MT
55# (Static) route settings.
56NETWORK_CONFIG_ROUTES="${NETWORK_CONFIG_DIR}/routes"
478de6f9 57NETWORK_CONFIG_ROUTES_PARAMS="network gateway unreachable prohibit blackhole mtu"
cb965348 58
1848564d
MT
59# Proper error codes
60EXIT_OK=0
61EXIT_ERROR=1
62EXIT_CONF_ERROR=2
828eb94a 63EXIT_NOT_SUPPORTED=3
05365355 64EXIT_NOT_HANDLED=4
2181765d 65EXIT_COMMAND_NOT_FOUND=127
6cae8097 66EXIT_ERROR_ASSERT=128
1848564d 67
2eaf16f3
MT
68EXIT_TRUE=0
69EXIT_FALSE=1
8666b68f 70EXIT_UNKNOWN=2
2eaf16f3 71
83d72e63
MT
72# Exit codes for IPv6 duplicate address detection (DAD)
73EXIT_DAD_OK=0
74EXIT_DAD_FAILED=8
75EXIT_DAD_TENTATIVE=8
76
4e0bc093
MT
77# Spanning Tree Protocol
78EXIT_STP_KERNEL=1
79EXIT_STP_ERROR=2
80
1848564d
MT
81STATUS_UP=0
82STATUS_DOWN=1
711ffac1
MT
83STATUS_NOCARRIER=2
84
1848564d
MT
85DISCOVER_OK=0
86DISCOVER_ERROR=1
87DISCOVER_NOT_SUPPORTED=2
88
7de0637a
MT
89# The user is able to create zones that begin
90# with these names followed by a number.
4da7fbed 91ZONE_LOCAL="net"
7de0637a
MT
92ZONE_NONLOCAL="upl"
93VALID_ZONES="${ZONE_LOCAL} ${ZONE_NONLOCAL}"
1848564d
MT
94
95SYS_CLASS_NET="/sys/class/net"
2ae4f579
MT
96
97# Timeout values
98TIMEOUT_RESTART=2
711ffac1 99
feb76eaf 100DEVICE_PRINT_LINE1=" %-24s %s\n"
a1a8f0f4 101
8c63fa13 102PORT_PATTERN="pN"
8ee92277 103PORT_PATTERN_ACCESSPOINT="apN"
e6993835 104PORT_PATTERN_BATMAN_ADV="batN"
8ee92277 105PORT_PATTERN_WIRELESS="wN"
b8026986 106PORT_PATTERN_WIRELESS_ADHOC="adhocN"
a23fdc0e 107PORT_PATTERN_WIRELESS_MONITOR="wmonN"