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