1/* 2 * defaults.h 3 * 4 * This file contains some tuneable parameters, most of which can be overriden 5 * at run-time. 6 * 7 * $Id: defaults.h,v 1.9 2006/09/04 23:17:25 quozl Exp $ 8 */ 9 10#ifndef _PPTPD_DEFAULTS_H 11#define _PPTPD_DEFAULTS_H 12 13/* Definitions for true and false */ 14 15#ifndef FALSE 16#define FALSE 0 17#define TRUE !FALSE 18#endif 19 20/* String sizes for the config file */ 21 22#define MAX_CONFIG_FILENAME_SIZE 256 23#define MAX_CONFIG_STRING_SIZE 512 24 25/* For IP parser */ 26 27#define LOCAL 0 28#define REMOTE 1 29 30/* Default configuration values, mostly configurable */ 31 32#define CONNECTIONS_DEFAULT 100 33#define DEFAULT_LOCAL_IP_LIST "192.168.0.1-100" 34#define DEFAULT_REMOTE_IP_LIST "192.168.1.1-100" 35 36#define MAX_CALLS_PER_TCP_LINK 128 37 38#ifdef PNS_MODE 39#define MAX_CALLS 60 40#endif 41 42#define PPP_SPEED_DEFAULT "115200" 43#if EMBED 44#define PPTPD_CONFIG_FILE_DEFAULT "/etc/config/pptpd.conf" 45#else 46#define PPTPD_CONFIG_FILE_DEFAULT "/etc/pptpd.conf" 47#endif 48#define PIDFILE_DEFAULT "/var/run/pptpd.pid" 49 50#define STIMEOUT_DEFAULT 10 /* seconds */ 51 52/* Location of binaries */ 53/* 54#define PPTP_CTRL_BIN SBINDIR "/pptpctrl" 55#define PPTPD_BIN SBINDIR "/pptpd" 56#define BCRELAY_BIN SBINDIR "/bcrelay" 57*/ 58#define PPTP_CTRL_BIN "/usr/sbin/pptpctrl" 59#define PPTPD_BIN "/usr/sbin/pptpd" 60#define BCRELAY_BIN "/usr/sbin/bcrelay" 61 62/* Parameters permitted in the config file */ 63 64#define CONNECTIONS_KEYWORD "connections" 65#define SPEED_KEYWORD "speed" 66#define PPPD_OPTION_KEYWORD "option" 67#define DEBUG_KEYWORD "debug" 68#ifdef BCRELAY 69#define BCRELAY_KEYWORD "bcrelay" 70#endif 71#define LOCALIP_KEYWORD "localip" 72#define REMOTEIP_KEYWORD "remoteip" 73#define LISTEN_KEYWORD "listen" 74#define PIDFILE_KEYWORD "pidfile" 75#define STIMEOUT_KEYWORD "stimeout" 76#define NOIPPARAM_KEYWORD "noipparam" 77#define PPP_BINARY_KEYWORD "ppp" 78#define LOGWTMP_KEYWORD "logwtmp" 79#define DELEGATE_KEYWORD "delegate" 80 81#endif /* !_PPTPD_DEFAULTS_H */ 82