xref: /netbsd-src/external/bsd/ppp/dist/pppd/pathnames.h (revision 89a07cf815a29524268025a1139fac4c5190f765)
1 /*	$NetBSD: pathnames.h,v 1.4 2014/10/25 21:11:37 christos Exp $	*/
2 
3 /*
4  * define path names
5  *
6  * Id: pathnames.h,v 1.18 2005/08/25 23:59:34 paulus Exp
7  */
8 
9 #ifdef HAVE_PATHS_H
10 #include <paths.h>
11 
12 #else /* HAVE_PATHS_H */
13 #ifndef _PATH_VARRUN
14 #define _PATH_VARRUN 	"/etc/ppp/"
15 #endif
16 #define _PATH_DEVNULL	"/dev/null"
17 #endif /* HAVE_PATHS_H */
18 
19 #ifndef _ROOT_PATH
20 #define _ROOT_PATH
21 #endif
22 
23 #define _PATH_UPAPFILE 	 _ROOT_PATH "/etc/ppp/pap-secrets"
24 #define _PATH_CHAPFILE 	 _ROOT_PATH "/etc/ppp/chap-secrets"
25 #define _PATH_SRPFILE 	 _ROOT_PATH "/etc/ppp/srp-secrets"
26 #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options"
27 #define _PATH_IPUP	 _ROOT_PATH "/etc/ppp/ip-up"
28 #define _PATH_IPDOWN	 _ROOT_PATH "/etc/ppp/ip-down"
29 #define _PATH_IPPREUP	 _ROOT_PATH "/etc/ppp/ip-pre-up"
30 #define _PATH_AUTHUP	 _ROOT_PATH "/etc/ppp/auth-up"
31 #define _PATH_AUTHDOWN	 _ROOT_PATH "/etc/ppp/auth-down"
32 #define _PATH_TTYOPT	 _ROOT_PATH "/etc/ppp/options."
33 #define _PATH_CONNERRS	 _ROOT_PATH "/etc/ppp/connect-errors"
34 #define _PATH_PEERFILES	 _ROOT_PATH "/etc/ppp/peers/"
35 #define _PATH_RESOLV	 _ROOT_PATH "/etc/ppp/resolv.conf"
36 
37 #define _PATH_USEROPT	 ".ppprc"
38 #define	_PATH_PSEUDONYM	 ".ppp_pseudonym"
39 
40 #ifdef INET6
41 #define _PATH_IPV6UP     _ROOT_PATH "/etc/ppp/ipv6-up"
42 #define _PATH_IPV6DOWN   _ROOT_PATH "/etc/ppp/ipv6-down"
43 #endif
44 
45 #ifdef IPX_CHANGE
46 #define _PATH_IPXUP	 _ROOT_PATH "/etc/ppp/ipx-up"
47 #define _PATH_IPXDOWN	 _ROOT_PATH "/etc/ppp/ipx-down"
48 #endif /* IPX_CHANGE */
49 
50 #ifdef __STDC__
51 #define _PATH_PPPDB	_ROOT_PATH _PATH_VARRUN "pppd.tdb"
52 #else /* __STDC__ */
53 #ifdef HAVE_PATHS_H
54 #define _PATH_PPPDB	"/var/run/pppd.tdb"
55 #else
56 #define _PATH_PPPDB	"/etc/ppp/pppd.tdb"
57 #endif
58 #endif /* __STDC__ */
59 
60 #ifdef PLUGIN
61 #define _PATH_PLUGIN	"/usr/libexec/pppd/"
62 #endif /* PLUGIN */
63