1 /* 2 * define path names 3 * 4 * $Id: pathnames.h,v 1.18 2005/08/25 23:59:34 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_SRPFILE _ROOT_PATH "/etc/ppp/srp-secrets" 24 #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options" 25 #define _PATH_IPUP _ROOT_PATH "/etc/ppp/ip-up" 26 #define _PATH_IPDOWN _ROOT_PATH "/etc/ppp/ip-down" 27 #define _PATH_IPPREUP _ROOT_PATH "/etc/ppp/ip-pre-up" 28 #define _PATH_AUTHUP _ROOT_PATH "/etc/ppp/auth-up" 29 #define _PATH_AUTHDOWN _ROOT_PATH "/etc/ppp/auth-down" 30 #define _PATH_TTYOPT _ROOT_PATH "/etc/ppp/options." 31 #define _PATH_CONNERRS _ROOT_PATH "/etc/ppp/connect-errors" 32 #define _PATH_PEERFILES _ROOT_PATH "/etc/ppp/peers/" 33 #define _PATH_RESOLV _ROOT_PATH "/etc/ppp/resolv.conf" 34 35 #define _PATH_USEROPT ".ppprc" 36 #define _PATH_PSEUDONYM ".ppp_pseudonym" 37 38 #ifdef INET6 39 #define _PATH_IPV6UP _ROOT_PATH "/etc/ppp/ipv6-up" 40 #define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down" 41 #endif 42 43 #ifdef IPX_CHANGE 44 #define _PATH_IPXUP _ROOT_PATH "/etc/ppp/ipx-up" 45 #define _PATH_IPXDOWN _ROOT_PATH "/etc/ppp/ipx-down" 46 #endif /* IPX_CHANGE */ 47 48 #ifdef __STDC__ 49 #define _PATH_PPPDB _ROOT_PATH _PATH_VARRUN "pppd2.tdb" 50 #else /* __STDC__ */ 51 #ifdef HAVE_PATHS_H 52 #define _PATH_PPPDB "/var/run/pppd2.tdb" 53 #else 54 #define _PATH_PPPDB "/etc/ppp/pppd2.tdb" 55 #endif 56 #endif /* __STDC__ */ 57 58 #ifdef PLUGIN 59 #ifdef __STDC__ 60 #define _PATH_PLUGIN DESTDIR "/lib/pppd/" VERSION 61 #else /* __STDC__ */ 62 #define _PATH_PLUGIN "/usr/lib/pppd" 63 #endif /* __STDC__ */ 64 65 #endif /* PLUGIN */ 66