Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

kpppconfig.h

Go to the documentation of this file.
00001 /* -*- C++ -*-
00002  *            kPPP: A pppd front end for the KDE project
00003  *
00004  * $Id: kpppconfig.h,v 1.2 2003/08/09 17:14:55 kergoth Exp $
00005  *
00006  *            Copyright (C) 1997 Bernd Johannes Wuebben
00007  *                   wuebben@math.cornell.edu
00008  *
00009  *
00010  * This program is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this program; if not, write to the Free
00022  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023  */
00024 
00025 
00026 #ifndef _KPPPCONFIG_H_
00027 #define _KPPPCONFIG_H_
00028 
00029 #if defined(__svr4__)
00030 #define STREAMS
00031 #define _XOPEN_SOURCE 1
00032 #define _XOPEN_SOURCE_EXTENDED 1
00033 #define __EXTENSIONS__
00034 #endif
00035 
00036 //#include <config.h>
00037 
00038 #ifdef HAVE_SYS_PARAM_H
00039 #include <sys/param.h>
00040 #endif
00041 
00042 // Warning: If you fiddle with the following directories you have
00043 // to adjust make_directories() in main.cpp()
00044 
00045 // file used for PAP authetication purposes
00046 #define PAP_AUTH_FILE "/etc/ppp/pap-secrets"
00047 
00048 // file used for CHAP authetication purposes
00049 #define CHAP_AUTH_FILE "/etc/ppp/chap-secrets"
00050 
00051 // Define the default modem response timeout
00052 #define MODEM_TIMEOUT 60
00053 
00054 // Define the default modem tone duration (ATS11=)
00055 #define MODEM_TONEDURATION 70
00056 
00057 // Define the default time for pppd to get the interface up
00058 #define PPPD_TIMEOUT 30
00059 
00060 // Define the default time to wait after a busy signal before redialing
00061 #define BUSY_WAIT 0
00062 
00063 
00064 
00065 // Every PPP_STATS_INTERVAL milli seconds kppp will read
00066 // and display the ppp statistics IF the stats window
00067 // is visible. If the stats window is not visible
00068 // the stats are not taken.
00069 // 200 milli secs is 5 times per second and results in
00070 // 0 load on my machine. Play with this parameter if
00071 // you feel like it.
00072 
00073 #define PPP_STATS_INTERVAL 200
00074 // comment this out to get some more debugging info
00075 /*
00076 #define MY_DEBUG
00077 */
00078 
00079 // Define the maximum number of accounts
00080 #define MAX_ACCOUNTS 100
00081 
00082 // Define the mamimum number of script entries
00083 #define MAX_SCRIPT_ENTRIES 20
00084 
00085 // Define the maximun number of DNS entries
00086 #define MAX_DNS_ENTRIES 5
00087 
00088 // Maximum size of the command executing pppd
00089 const unsigned int MAX_CMDLEN = 2024;
00090 
00091 // Define the maximum number of arguments passed to the pppd daemon
00092 #define MAX_PPPD_ARGUMENTS 20
00093 
00094 // Define the maximun number of lines of /etc/resolv.conf
00095 #define MAX_RESOLVCONF_LINES 128
00096 
00097 // Directory for modem lock files (Needed by mgetty users)
00098 #ifdef __linux__
00099 # define LOCK_DIR "/var/lock"
00100 #else /* linux */
00101 # ifdef BSD
00102 #  define       LOCK_DIR "/var/spool/lock"
00103 # else  /* BSD */
00104 #  define       LOCK_DIR "/var/spool/locks"
00105 # endif /* BSD */
00106 #endif  /* linux */
00107 
00108 #define DEVNULL "/dev/null"
00109 
00110 // search path for pppd binary
00111 #define PPPDSEARCHPATH "/sbin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/local/bin"
00112 
00113 // name of the pppd binary
00114 #define PPPDNAME "pppd"
00115 
00116 // support for internal ISDN cards and modem emulation
00117 #ifdef __linux__
00118 #define ISDNSUPPORT
00119 #endif
00120 
00121 #if defined(__linux__) || defined(BSD)
00122 #define PPP_PID_DIR "/var/run/"
00123 #else
00124 #define PPP_PID_DIR "/etc/ppp/"
00125 #endif
00126 
00127 // defined in opener.cpp
00128 extern const char * const kppp_syslog[];
00129 
00130 #ifdef _XPG4_2
00131 #define __xnet_connect connect
00132 #endif
00133 
00134 #endif

Generated on Sat Nov 5 16:17:50 2005 for OPIE by  doxygen 1.4.2