1
0

defaults.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #ifndef _PPTPD_DEFAULTS_H
  10. #define _PPTPD_DEFAULTS_H
  11. /* Definitions for true and false */
  12. #ifndef FALSE
  13. #define FALSE 0
  14. #define TRUE !FALSE
  15. #endif
  16. /* String sizes for the config file */
  17. #define MAX_CONFIG_FILENAME_SIZE 256
  18. #define MAX_CONFIG_STRING_SIZE 512
  19. /* For IP parser */
  20. #define LOCAL 0
  21. #define REMOTE 1
  22. /* Default configuration values, mostly configurable */
  23. #define CONNECTIONS_DEFAULT 100
  24. #define DEFAULT_LOCAL_IP_LIST "192.168.0.1-100"
  25. #define DEFAULT_REMOTE_IP_LIST "192.168.1.1-100"
  26. #define MAX_CALLS_PER_TCP_LINK 128
  27. #ifdef PNS_MODE
  28. #define MAX_CALLS 60
  29. #endif
  30. #define PPP_SPEED_DEFAULT "115200"
  31. #if EMBED
  32. #define PPTPD_CONFIG_FILE_DEFAULT "/etc/config/pptpd.conf"
  33. #else
  34. #define PPTPD_CONFIG_FILE_DEFAULT "/etc/pptpd.conf"
  35. #endif
  36. #define PIDFILE_DEFAULT "/var/run/pptpd.pid"
  37. #define STIMEOUT_DEFAULT 10 /* seconds */
  38. /* Location of binaries */
  39. #define PPTP_CTRL_BIN SBINDIR "/pptpctrl"
  40. #define PPTPD_BIN SBINDIR "/pptpd"
  41. #define BCRELAY_BIN SBINDIR "/bcrelay"
  42. /* Parameters permitted in the config file */
  43. #define CONNECTIONS_KEYWORD "connections"
  44. #define SPEED_KEYWORD "speed"
  45. #define PPPD_OPTION_KEYWORD "option"
  46. #define DEBUG_KEYWORD "debug"
  47. #ifdef BCRELAY
  48. #define BCRELAY_KEYWORD "bcrelay"
  49. #endif
  50. #define LOCALIP_KEYWORD "localip"
  51. #define REMOTEIP_KEYWORD "remoteip"
  52. #define LISTEN_KEYWORD "listen"
  53. #define PIDFILE_KEYWORD "pidfile"
  54. #define STIMEOUT_KEYWORD "stimeout"
  55. #define NOIPPARAM_KEYWORD "noipparam"
  56. #define PPP_BINARY_KEYWORD "ppp"
  57. #define LOGWTMP_KEYWORD "logwtmp"
  58. #define DELEGATE_KEYWORD "delegate"
  59. #endif /* !_PPTPD_DEFAULTS_H */