blob: 107d522bd7cd50b3d0cd61b99168a68c9fcb0c7c [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
2 * define path names
3 *
4 * $Id: pathnames.h,v 1.1 2008-08-04 06:11:51 winfred 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_SYSOPTIONS _ROOT_PATH "/tmp/ppp/options"
24#define _PATH_IPUP _ROOT_PATH "/bin/pppoe-up"
25#define _PATH_IPDOWN _ROOT_PATH "/bin/pppoe-down"
26#define _PATH_AUTHUP _ROOT_PATH "/tmp/ppp/auth-up"
27#define _PATH_AUTHDOWN _ROOT_PATH "/tmp/ppp/auth-down"
28#define _PATH_TTYOPT _ROOT_PATH "/tmp/ppp/options."
29#define _PATH_CONNERRS _ROOT_PATH "/tmp/ppp/connect-errors"
30#define _PATH_PEERFILES _ROOT_PATH "/tmp/ppp/peers/"
31#define _PATH_RESOLV _ROOT_PATH "/etc/resolv.conf"
32#define _PATH_SETPPPOEPID _ROOT_PATH "/tmp/ppp/set-pppoepid" // tallest 1219
33
34#define _PATH_USEROPT ".ppprc"
35
36#ifdef INET6
37#define _PATH_IPV6UP _ROOT_PATH "/tmp/ppp/ipv6-up"
38#define _PATH_IPV6DOWN _ROOT_PATH "/tmp/ppp/ipv6-down"
39#endif
40
41#ifdef IPX_CHANGE
42#define _PATH_IPXUP _ROOT_PATH "/tmp/ppp/ipx-up"
43#define _PATH_IPXDOWN _ROOT_PATH "/tmp/ppp/ipx-down"
44#endif /* IPX_CHANGE */
45
46#ifdef __STDC__
47#define _PATH_PPPDB _ROOT_PATH _PATH_VARRUN "pppd.tdb"
48#else /* __STDC__ */
49#ifdef HAVE_PATHS_H
50#define _PATH_PPPDB "/var/run/pppd.tdb"
51#else
52#define _PATH_PPPDB "/tmp/ppp/pppd.tdb"
53#endif
54#endif /* __STDC__ */
55
56#ifdef PLUGIN
57#define _PATH_PLUGIN "/usr/lib/pppd/" VERSION
58#endif /* PLUGIN */