defaults.h 2.1 KB

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