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#define PTIMEOUT_DEFAULT 1000 /* msec */ 52 53/* Location of binaries */ 54 55#if 1 56#define PPTP_CTRL_BIN "/usr/sbin/pptpctrl" 57#define PPTPD_BIN "/usr/sbin/pptpd" 58#define BCRELAY_BIN "/usr/sbin/bcrelay" 59#else 60#define PPTP_CTRL_BIN SBINDIR "/pptpctrl" 61#define PPTPD_BIN SBINDIR "/pptpd" 62#define BCRELAY_BIN SBINDIR "/bcrelay" 63#endif 64 65/* Parameters permitted in the config file */ 66 67#define CONNECTIONS_KEYWORD "connections" 68#define SPEED_KEYWORD "speed" 69#define PPPD_OPTION_KEYWORD "option" 70#define DEBUG_KEYWORD "debug" 71#ifdef BCRELAY 72#define BCRELAY_KEYWORD "bcrelay" 73#endif 74#define LOCALIP_KEYWORD "localip" 75#define REMOTEIP_KEYWORD "remoteip" 76#define LISTEN_KEYWORD "listen" 77#define PIDFILE_KEYWORD "pidfile" 78#define STIMEOUT_KEYWORD "stimeout" 79#define PTIMEOUT_KEYWORD "ptimeout" 80#define NOIPPARAM_KEYWORD "noipparam" 81#define PPP_BINARY_KEYWORD "ppp" 82#define LOGWTMP_KEYWORD "logwtmp" 83#define DELEGATE_KEYWORD "delegate" 84#define KEEP_KEYWORD "keep" 85 86#endif /* !_PPTPD_DEFAULTS_H */ 87