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