Large patch from Frank Cusack <fcusack@fcusack.com> to add proper
[ppp.git] / pppd / pathnames.h
1 /*
2  * define path names
3  *
4  * $Id: pathnames.h,v 1.14 2001/03/08 05:15:37 paulus Exp $
5  */
6
7 #ifdef HAVE_PATHS_H
8 #include <paths.h>
9
10 #else /* HAVE_PATHS_H */
11 #ifndef _PATH_VARRUN
12 #define _PATH_VARRUN    "/etc/ppp/"
13 #endif
14 #define _PATH_DEVNULL   "/dev/null"
15 #endif /* HAVE_PATHS_H */
16
17 #ifndef _ROOT_PATH
18 #define _ROOT_PATH
19 #endif
20
21 #define _PATH_UPAPFILE   _ROOT_PATH "/etc/ppp/pap-secrets"
22 #define _PATH_CHAPFILE   _ROOT_PATH "/etc/ppp/chap-secrets"
23 #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options"
24 #define _PATH_IPUP       _ROOT_PATH "/etc/ppp/ip-up"
25 #define _PATH_IPDOWN     _ROOT_PATH "/etc/ppp/ip-down"
26 #define _PATH_AUTHUP     _ROOT_PATH "/etc/ppp/auth-up"
27 #define _PATH_AUTHDOWN   _ROOT_PATH "/etc/ppp/auth-down"
28 #define _PATH_TTYOPT     _ROOT_PATH "/etc/ppp/options."
29 #define _PATH_CONNERRS   _ROOT_PATH "/etc/ppp/connect-errors"
30 #define _PATH_PEERFILES  _ROOT_PATH "/etc/ppp/peers/"
31 #define _PATH_RESOLV     _ROOT_PATH "/etc/ppp/resolv.conf"
32
33 #define _PATH_USEROPT    ".ppprc"
34
35 #ifdef INET6
36 #define _PATH_IPV6UP     _ROOT_PATH "/etc/ppp/ipv6-up"
37 #define _PATH_IPV6DOWN   _ROOT_PATH "/etc/ppp/ipv6-down"
38 #endif
39
40 #ifdef IPX_CHANGE
41 #define _PATH_IPXUP      _ROOT_PATH "/etc/ppp/ipx-up"
42 #define _PATH_IPXDOWN    _ROOT_PATH "/etc/ppp/ipx-down"
43 #endif /* IPX_CHANGE */
44
45 #ifdef __STDC__
46 #define _PATH_PPPDB     _ROOT_PATH _PATH_VARRUN "pppd.tdb"
47 #else /* __STDC__ */
48 #ifdef HAVE_PATHS_H
49 #define _PATH_PPPDB     "/var/run/pppd.tdb"
50 #else
51 #define _PATH_PPPDB     "/etc/ppp/pppd.tdb"
52 #endif
53 #endif /* __STDC__ */
54
55 #ifdef PLUGIN
56 #define _PATH_PLUGIN    "/usr/lib/pppd/" VERSION
57 #endif /* PLUGIN */