Diffstat (limited to 'noncore/settings/networksettings/ppp/kpppconfig.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/kpppconfig.h | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/kpppconfig.h b/noncore/settings/networksettings/ppp/kpppconfig.h new file mode 100644 index 0000000..cff2aac --- a/dev/null +++ b/noncore/settings/networksettings/ppp/kpppconfig.h | |||
@@ -0,0 +1,134 @@ | |||
1 | /* -*- C++ -*- | ||
2 | * kPPP: A pppd front end for the KDE project | ||
3 | * | ||
4 | * $Id$ | ||
5 | * | ||
6 | * Copyright (C) 1997 Bernd Johannes Wuebben | ||
7 | * wuebben@math.cornell.edu | ||
8 | * | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or | ||
11 | * modify it under the terms of the GNU Library General Public | ||
12 | * License as published by the Free Software Foundation; either | ||
13 | * version 2 of the License, or (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
18 | * Library General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU Library General Public | ||
21 | * License along with this program; if not, write to the Free | ||
22 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
23 | */ | ||
24 | |||
25 | |||
26 | #ifndef _KPPPCONFIG_H_ | ||
27 | #define _KPPPCONFIG_H_ | ||
28 | |||
29 | #if defined(__svr4__) | ||
30 | #define STREAMS | ||
31 | #define _XOPEN_SOURCE 1 | ||
32 | #define _XOPEN_SOURCE_EXTENDED 1 | ||
33 | #define __EXTENSIONS__ | ||
34 | #endif | ||
35 | |||
36 | //#include <config.h> | ||
37 | |||
38 | #ifdef HAVE_SYS_PARAM_H | ||
39 | #include <sys/param.h> | ||
40 | #endif | ||
41 | |||
42 | // Warning: If you fiddle with the following directories you have | ||
43 | // to adjust make_directories() in main.cpp() | ||
44 | |||
45 | // file used for PAP authetication purposes | ||
46 | #define PAP_AUTH_FILE "/etc/ppp/pap-secrets" | ||
47 | |||
48 | // file used for CHAP authetication purposes | ||
49 | #define CHAP_AUTH_FILE "/etc/ppp/chap-secrets" | ||
50 | |||
51 | // Define the default modem response timeout | ||
52 | #define MODEM_TIMEOUT 60 | ||
53 | |||
54 | // Define the default modem tone duration (ATS11=) | ||
55 | #define MODEM_TONEDURATION 70 | ||
56 | |||
57 | // Define the default time for pppd to get the interface up | ||
58 | #define PPPD_TIMEOUT 30 | ||
59 | |||
60 | // Define the default time to wait after a busy signal before redialing | ||
61 | #define BUSY_WAIT 0 | ||
62 | |||
63 | |||
64 | |||
65 | // Every PPP_STATS_INTERVAL milli seconds kppp will read | ||
66 | // and display the ppp statistics IF the stats window | ||
67 | // is visible. If the stats window is not visible | ||
68 | // the stats are not taken. | ||
69 | // 200 milli secs is 5 times per second and results in | ||
70 | // 0 load on my machine. Play with this parameter if | ||
71 | // you feel like it. | ||
72 | |||
73 | #define PPP_STATS_INTERVAL 200 | ||
74 | // comment this out to get some more debugging info | ||
75 | /* | ||
76 | #define MY_DEBUG | ||
77 | */ | ||
78 | |||
79 | // Define the maximum number of accounts | ||
80 | #define MAX_ACCOUNTS 100 | ||
81 | |||
82 | // Define the mamimum number of script entries | ||
83 | #define MAX_SCRIPT_ENTRIES 20 | ||
84 | |||
85 | // Define the maximun number of DNS entries | ||
86 | #define MAX_DNS_ENTRIES 5 | ||
87 | |||
88 | // Maximum size of the command executing pppd | ||
89 | const unsigned int MAX_CMDLEN = 2024; | ||
90 | |||
91 | // Define the maximum number of arguments passed to the pppd daemon | ||
92 | #define MAX_PPPD_ARGUMENTS 20 | ||
93 | |||
94 | // Define the maximun number of lines of /etc/resolv.conf | ||
95 | #define MAX_RESOLVCONF_LINES 128 | ||
96 | |||
97 | // Directory for modem lock files (Needed by mgetty users) | ||
98 | #ifdef __linux__ | ||
99 | # define LOCK_DIR "/var/lock" | ||
100 | #else /* linux */ | ||
101 | # ifdef BSD | ||
102 | # defineLOCK_DIR "/var/spool/lock" | ||
103 | # else /* BSD */ | ||
104 | # defineLOCK_DIR "/var/spool/locks" | ||
105 | # endif /* BSD */ | ||
106 | #endif /* linux */ | ||
107 | |||
108 | #define DEVNULL "/dev/null" | ||
109 | |||
110 | // search path for pppd binary | ||
111 | #define PPPDSEARCHPATH "/sbin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/local/bin" | ||
112 | |||
113 | // name of the pppd binary | ||
114 | #define PPPDNAME "pppd" | ||
115 | |||
116 | // support for internal ISDN cards and modem emulation | ||
117 | #ifdef __linux__ | ||
118 | #define ISDNSUPPORT | ||
119 | #endif | ||
120 | |||
121 | #if defined(__linux__) || defined(BSD) | ||
122 | #define PPP_PID_DIR "/var/run/" | ||
123 | #else | ||
124 | #define PPP_PID_DIR "/etc/ppp/" | ||
125 | #endif | ||
126 | |||
127 | // defined in opener.cpp | ||
128 | extern const char * const kppp_syslog[]; | ||
129 | |||
130 | #ifdef _XPG4_2 | ||
131 | #define __xnet_connect connect | ||
132 | #endif | ||
133 | |||
134 | #endif | ||