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			 "/sbin/pptpctrl"
55#define PPTPD_BIN			 "/sbin/pptpd"
56#define BCRELAY_BIN			 "/sbin/bcrelay"
57
58/* Parameters permitted in the config file */
59
60#define CONNECTIONS_KEYWORD		"connections"
61#define SPEED_KEYWORD			"speed"
62#define PPPD_OPTION_KEYWORD		"option"
63#define DEBUG_KEYWORD			"debug"
64#ifdef BCRELAY
65#define BCRELAY_KEYWORD			"bcrelay"
66#endif
67#define LOCALIP_KEYWORD			"localip"
68#define REMOTEIP_KEYWORD		"remoteip"
69#define LISTEN_KEYWORD			"listen"
70#define PIDFILE_KEYWORD			"pidfile"
71#define STIMEOUT_KEYWORD		"stimeout"
72#define NOIPPARAM_KEYWORD		"noipparam"
73#define PPP_BINARY_KEYWORD		"ppp"
74#define LOGWTMP_KEYWORD			"logwtmp"
75#define DELEGATE_KEYWORD		"delegate"
76
77#endif	/* !_PPTPD_DEFAULTS_H */
78