xref: /netbsd/external/bsd/ppp/dist/pppd/pathnames.h (revision 3dce80e5)
1 /*	$NetBSD: pathnames.h,v 1.5 2021/01/09 16:39:28 christos Exp $	*/
2 
3 /*
4  * define path names
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_SRPFILE 	 _ROOT_PATH "/etc/ppp/srp-secrets"
24 
25 #ifdef USE_EAPTLS
26 #define _PATH_EAPTLSCLIFILE	_ROOT_PATH "/etc/ppp/eaptls-client"
27 #define _PATH_EAPTLSSERVFILE	_ROOT_PATH "/etc/ppp/eaptls-server"
28 #define _PATH_OPENSSLCONFFILE	_ROOT_PATH "/etc/ppp/openssl.cnf"
29 #endif /* USE_EAPTLS */
30 
31 #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options"
32 #define _PATH_IPUP	 _ROOT_PATH "/etc/ppp/ip-up"
33 #define _PATH_IPDOWN	 _ROOT_PATH "/etc/ppp/ip-down"
34 #define _PATH_IPPREUP	 _ROOT_PATH "/etc/ppp/ip-pre-up"
35 #define _PATH_AUTHUP	 _ROOT_PATH "/etc/ppp/auth-up"
36 #define _PATH_AUTHDOWN	 _ROOT_PATH "/etc/ppp/auth-down"
37 #define _PATH_TTYOPT	 _ROOT_PATH "/etc/ppp/options."
38 #define _PATH_CONNERRS	 _ROOT_PATH "/etc/ppp/connect-errors"
39 #define _PATH_PEERFILES	 _ROOT_PATH "/etc/ppp/peers/"
40 #define _PATH_RESOLV	 _ROOT_PATH "/etc/ppp/resolv.conf"
41 
42 #define _PATH_USEROPT	 ".ppprc"
43 #define	_PATH_PSEUDONYM	 ".ppp_pseudonym"
44 
45 #ifdef INET6
46 #define _PATH_IPV6UP     _ROOT_PATH "/etc/ppp/ipv6-up"
47 #define _PATH_IPV6DOWN   _ROOT_PATH "/etc/ppp/ipv6-down"
48 #endif
49 
50 #ifdef IPX_CHANGE
51 #define _PATH_IPXUP	 _ROOT_PATH "/etc/ppp/ipx-up"
52 #define _PATH_IPXDOWN	 _ROOT_PATH "/etc/ppp/ipx-down"
53 #endif /* IPX_CHANGE */
54 
55 #ifdef __STDC__
56 #define _PATH_PPPDB	_ROOT_PATH _PATH_VARRUN "pppd.tdb"
57 #else /* __STDC__ */
58 #ifdef HAVE_PATHS_H
59 #define _PATH_PPPDB	"/var/run/pppd.tdb"
60 #else
61 #define _PATH_PPPDB	"/etc/ppp/pppd.tdb"
62 #endif
63 #endif /* __STDC__ */
64 
65 #ifdef PLUGIN
66 #define _PATH_PLUGIN	"/usr/libexec/pppd/"
67 #endif /* PLUGIN */
68