Update and clean Tomato RAF files
[tomato.git] / release / src / router / pptpd / defaults.h
blob2bf018b790a9cc77aedbc87d2c0b33c772f941f5
1 /*
2 * defaults.h
4 * This file contains some tuneable parameters, most of which can be overriden
5 * at run-time.
7 * $Id: defaults.h,v 1.9 2006/09/04 23:17:25 quozl Exp $
8 */
10 #ifndef _PPTPD_DEFAULTS_H
11 #define _PPTPD_DEFAULTS_H
13 /* Definitions for true and false */
15 #ifndef FALSE
16 #define FALSE 0
17 #define TRUE !FALSE
18 #endif
20 /* String sizes for the config file */
22 #define MAX_CONFIG_FILENAME_SIZE 256
23 #define MAX_CONFIG_STRING_SIZE 512
25 /* For IP parser */
27 #define LOCAL 0
28 #define REMOTE 1
30 /* Default configuration values, mostly configurable */
32 #define CONNECTIONS_DEFAULT 6
33 #define DEFAULT_LOCAL_IP_LIST "192.168.0.1-100"
34 #define DEFAULT_REMOTE_IP_LIST "192.168.1.1-100"
36 #define MAX_CALLS_PER_TCP_LINK 128
38 #ifdef PNS_MODE
39 #define MAX_CALLS 60
40 #endif
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"
50 #define STIMEOUT_DEFAULT 10 /* seconds */
52 /* Location of binaries */
54 #define PPTP_CTRL_BIN SBINDIR "/pptpctrl"
55 #define PPTPD_BIN SBINDIR "/pptpd"
56 #define BCRELAY_BIN SBINDIR "/bcrelay"
58 #define PPTP_CTRL_BIN "/usr/sbin/pptpctrl"
59 #define PPTPD_BIN "/usr/sbin/pptpd"
60 #define BCRELAY_BIN "/usr/sbin/bcrelay"
62 /* Parameters permitted in the config file */
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"
81 #endif /* !_PPTPD_DEFAULTS_H */