Merge pull request #354 from pali/register-with-name
[ppp.git] / pppd / pathnames.h
1 /*
2  * define path names
3  */
4 #include "pppdconf.h"
5
6 #ifdef HAVE_PATHS_H
7 #include <paths.h>
8 #endif /* HAVE_PATHS_H */
9
10 #ifndef _PATH_DEVNULL
11 #define _PATH_DEVNULL   "/dev/null"
12 #endif
13
14 #ifdef PPPD_RUNTIME_DIR
15 #undef  _PATH_VARRUN
16 #define _PATH_VARRUN    PPPD_RUNTIME_DIR "/"
17 #endif
18
19 #ifdef PPPD_LOGFILE_DIR
20 #undef  _PATH_VARLOG
21 #define _PATH_VARLOG    PPPD_LOGFILE_DIR
22 #endif
23
24 #ifdef PPPD_PLUGIN_DIR
25 #define _PATH_PLUGIN    PPPD_PLUGIN_DIR
26 #else
27 #ifdef __STDC__
28 #define _PATH_PLUGIN    DESTDIR "/lib/pppd/" VERSION
29 #else  /* __STDC__ */
30 #define _PATH_PLUGIN    "/usr/lib/pppd"
31 #endif /* __STDC__ */
32 #endif /* PPPD_PLUGIN_DIR */
33
34 #ifndef _ROOT_PATH
35 #define _ROOT_PATH
36 #endif
37
38 #define _PATH_UPAPFILE   _ROOT_PATH "/etc/ppp/pap-secrets"
39 #define _PATH_CHAPFILE   _ROOT_PATH "/etc/ppp/chap-secrets"
40 #define _PATH_SRPFILE    _ROOT_PATH "/etc/ppp/srp-secrets"
41
42 #ifdef USE_EAPTLS
43 #define _PATH_EAPTLSCLIFILE     _ROOT_PATH "/etc/ppp/eaptls-client"
44 #define _PATH_EAPTLSSERVFILE    _ROOT_PATH "/etc/ppp/eaptls-server"
45 #define _PATH_OPENSSLCONFFILE   _ROOT_PATH "/etc/ppp/openssl.cnf"
46 #endif /* USE_EAPTLS */
47
48 #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options"
49 #define _PATH_IPUP       _ROOT_PATH "/etc/ppp/ip-up"
50 #define _PATH_IPDOWN     _ROOT_PATH "/etc/ppp/ip-down"
51 #define _PATH_IPPREUP    _ROOT_PATH "/etc/ppp/ip-pre-up"
52 #define _PATH_AUTHUP     _ROOT_PATH "/etc/ppp/auth-up"
53 #define _PATH_AUTHDOWN   _ROOT_PATH "/etc/ppp/auth-down"
54 #define _PATH_TTYOPT     _ROOT_PATH "/etc/ppp/options."
55 #define _PATH_CONNERRS   _ROOT_PATH _PATH_VARLOG "/connect-errors"
56 #define _PATH_PEERFILES  _ROOT_PATH "/etc/ppp/peers/"
57 #define _PATH_RESOLV     _ROOT_PATH "/etc/ppp/resolv.conf"
58
59 #define _PATH_USEROPT    ".ppprc"
60 #define _PATH_PSEUDONYM  ".ppp_pseudonym"
61
62 #ifdef INET6
63 #define _PATH_IPV6UP     _ROOT_PATH "/etc/ppp/ipv6-up"
64 #define _PATH_IPV6DOWN   _ROOT_PATH "/etc/ppp/ipv6-down"
65 #endif
66
67 #ifdef __STDC__
68 #define _PATH_PPPDB     _ROOT_PATH _PATH_VARRUN "pppd2.tdb"
69 #else /* __STDC__ */
70 #define _PATH_PPPDB     _PPP_VARRUN "pppd2.tdb"
71 #endif /* __STDC__ */
72