pathnames.h 1.8 KB

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