patch-cfg_y 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --- ipcad-3.7.3.orig/cfg.y 2007-04-22 10:08:45.000000000 +0200
  2. +++ ipcad-3.7.3/cfg.y 2014-03-23 18:03:07.000000000 +0100
  3. @@ -3,7 +3,6 @@
  4. #include "headers.h"
  5. #include "cfgvar.h"
  6. #include "servers.h"
  7. -#include "rsh.h"
  8. #include "opt.h"
  9. #include "storage.h"
  10. @@ -214,49 +213,6 @@ block:
  11. | CAPTURE_PORTS DENY {
  12. conf->capture_ports = 0;
  13. }
  14. - | RSH ALLOW at_ip {
  15. - if(add_server(rsh_server, "RSH Server", &($3), 514))
  16. - return yyerror("Failed to install RSH server");
  17. - fprintf(stderr, "Configured RSH Server listening at %s\n",
  18. - inet_ntoa($3));
  19. - }
  20. - | RSH DENY at_ip {
  21. - fprintf(stderr, "Warning: Option at line %d has no effect\n",
  22. - ipcacfglineno);
  23. - }
  24. - | RSH TIMEOUT EQ TOK_STRING {
  25. - int to_ms;
  26. - to_ms = atoi($4);
  27. - free($4);
  28. - if(to_ms < 0)
  29. - to_ms = -1; /* INFTIM */
  30. - else
  31. - to_ms = to_ms * 1000;
  32. - rsh_rw_timeout = to_ms;
  33. - }
  34. - | RSH TOK_STRING privlevel {
  35. - cfg_add_rsh_host("", $2, $3);
  36. - free($2);
  37. - }
  38. - | RSH AT TOK_STRING privlevel {
  39. - cfg_add_rsh_host("", $3, $4);
  40. - free($3);
  41. - }
  42. - | RSH TOK_STRING AT TOK_STRING privlevel {
  43. - cfg_add_rsh_host($2, $4, $5);
  44. - free($2); free($4);
  45. - }
  46. - | RSH TTL EQ TOK_STRING {
  47. - conf->rsh_ttl = atoi($4);
  48. - free($4);
  49. - }
  50. - | TTL EQ TOK_STRING {
  51. - fprintf(stderr, "WARNING: \"ttl = %s;\" at line %d: "
  52. - "Obsolete syntax. Please use \"rsh ttl = %s;\"\n",
  53. - $3, ipcacfglineno, $3);
  54. - conf->rsh_ttl = atoi($3);
  55. - free($3);
  56. - }
  57. | NetFlow
  58. | CHROOT EQ TOK_STRING {
  59. if(conf->chroot_to)