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 "/tmp/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 "/tmp/ppp/pap-secrets" 22#define _PATH_CHAPFILE _ROOT_PATH "/tmp/ppp/chap-secrets" 23#define _PATH_SRPFILE _ROOT_PATH "/tmp/ppp/srp-secrets" 24 25/* foxconn added start, zacker, 04/20/2011 */ 26#define _PATH_UPAPFILE_IPV6 _ROOT_PATH "/tmp/ppp/pap-secrets-ipv6" 27#define _PATH_CHAPFILE_IPV6 _ROOT_PATH "/tmp/ppp/chap-secrets-ipv6" 28#define _PATH_SRPFILE_IPV6 _ROOT_PATH "/tmp/ppp/srp-secrets-ipv6" 29 30extern char *path_upapfile; 31extern char *path_chapfile; 32extern char *path_srpfile; 33/* foxconn added end, zacker, 04/20/2011 */ 34 35#ifdef MULTIPLE_PPPOE 36#define _PATH_SYSOPTIONS _ROOT_PATH "/tmp/ppp/opt" /* foxconn wklin modified, 37 09/06/2007 */ 38#else 39#define _PATH_SYSOPTIONS _ROOT_PATH "/tmp/ppp/options" 40#endif 41#define _PATH_IPUP _ROOT_PATH "/tmp/ppp/ip-up" 42#define _PATH_IPDOWN _ROOT_PATH "/tmp/ppp/ip-down" 43#define _PATH_IPPREUP _ROOT_PATH "/tmp/ppp/ip-pre-up" 44#define _PATH_AUTHUP _ROOT_PATH "/tmp/ppp/auth-up" 45#define _PATH_AUTHDOWN _ROOT_PATH "/tmp/ppp/auth-down" 46#define _PATH_TTYOPT _ROOT_PATH "/tmp/ppp/options." 47/* #define _PATH_CONNERRS _ROOT_PATH "/tmp/ppp/connect-errors" */ 48#define _PATH_CONNERRS _ROOT_PATH "/dev/null" /*wklin modified, 06/08/2007*/ 49#define _PATH_PEERFILES _ROOT_PATH "/tmp/ppp/peers/" 50#define _PATH_RESOLV _ROOT_PATH "/tmp/ppp/resolv.conf" 51 52#define _PATH_USEROPT ".ppprc" 53#define _PATH_PSEUDONYM ".ppp_pseudonym" 54 55#ifdef INET6 56#define _PATH_IPV6UP _ROOT_PATH "/tmp/ppp/ipv6-up" 57#define _PATH_IPV6DOWN _ROOT_PATH "/tmp/ppp/ipv6-down" 58#endif 59 60#ifdef IPX_CHANGE 61#define _PATH_IPXUP _ROOT_PATH "/tmp/ppp/ipx-up" 62#define _PATH_IPXDOWN _ROOT_PATH "/tmp/ppp/ipx-down" 63#endif /* IPX_CHANGE */ 64 65#ifdef __STDC__ 66#define _PATH_PPPDB _ROOT_PATH _PATH_VARRUN "pppd2.tdb" 67#else /* __STDC__ */ 68#ifdef HAVE_PATHS_H 69#define _PATH_PPPDB "/var/run/pppd2.tdb" 70#else 71#define _PATH_PPPDB "/tmp/ppp/pppd2.tdb" 72#endif 73#endif /* __STDC__ */ 74 75#ifdef PLUGIN 76#ifdef __STDC__ 77#define _PATH_PLUGIN DESTDIR "/lib/pppd/" VERSION 78#else /* __STDC__ */ 79#define _PATH_PLUGIN "/usr/lib/pppd" 80#endif /* __STDC__ */ 81 82#endif /* PLUGIN */ 83