]>
Commit | Line | Data |
---|---|---|
e2fb63d0 TP |
1 | Index: arpwatch/arpwatch.8 |
2 | diff -u arpwatch/arpwatch.8:1.1.1.1.2.2 arpwatch/arpwatch.8:1.1.1.1.22.3 | |
3 | --- arpwatch/arpwatch.8:1.1.1.1.2.2 Thu Aug 12 22:31:09 2004 | |
4 | +++ arpwatch/arpwatch.8 Fri Aug 13 00:02:30 2004 | |
5 | @@ -63,6 +63,13 @@ | |
6 | ] | |
7 | .\" ** | |
8 | .\" ** | |
9 | +.br | |
10 | +.ti +8 | |
11 | +[ | |
12 | +.B -Q | |
13 | +] | |
14 | +.\" ** | |
15 | +.\" ** | |
16 | .ad | |
17 | .SH DESCRIPTION | |
18 | .B Arpwatch | |
19 | @@ -127,6 +134,12 @@ | |
20 | .\" ** | |
21 | .\" ** | |
22 | .LP | |
23 | +(Debian) The | |
24 | +.B -Q | |
25 | +flags prevents arpwatch from sending reports by mail. | |
26 | +.\" ** | |
27 | +.\" ** | |
28 | +.LP | |
29 | Note that an empty | |
30 | .I arp.dat | |
31 | file must be created before the first time you run | |
32 | Index: arpwatch/arpwatch.c | |
33 | diff -u arpwatch/arpwatch.c:1.1.1.1.2.5 arpwatch/arpwatch.c:1.1.1.1.2.1.12.3 | |
34 | --- arpwatch/arpwatch.c:1.1.1.1.2.5 Sat Aug 14 02:33:07 2004 | |
35 | +++ arpwatch/arpwatch.c Fri Aug 13 00:09:54 2004 | |
36 | @@ -172,6 +172,9 @@ | |
37 | "r:" | |
38 | /**/ | |
39 | /**/ | |
40 | + "Q" | |
41 | + /**/ | |
42 | + /**/ | |
43 | ; | |
44 | ||
45 | if (argv[0] == NULL) | |
46 | @@ -223,6 +226,12 @@ | |
47 | break; | |
48 | /**/ | |
49 | /**/ | |
50 | + case 'Q': | |
51 | + ++quiet; | |
52 | + break; | |
53 | + | |
54 | + /**/ | |
55 | + /**/ | |
56 | default: | |
57 | usage(); | |
58 | } | |
59 | @@ -785,6 +794,9 @@ | |
60 | "[-r file] " | |
61 | /**/ | |
62 | /**/ | |
63 | + "[-Q] " | |
64 | + /**/ | |
65 | + /**/ | |
66 | "\n" | |
67 | ; | |
68 | ||
69 | Index: arpwatch/report.c | |
70 | diff -u arpwatch/report.c:1.1.1.1 arpwatch/report.c:1.1.1.1.22.1 | |
71 | --- arpwatch/report.c:1.1.1.1 Tue Apr 17 13:31:37 2001 | |
72 | +++ arpwatch/report.c Wed Aug 11 23:10:28 2004 | |
73 | @@ -272,6 +272,10 @@ | |
74 | /* Syslog this event too */ | |
75 | dosyslog(LOG_NOTICE, title, a, e1, e2); | |
76 | ||
77 | + /* return if watcher is an empty string */ | |
78 | + if ( quiet ) | |
79 | + return; | |
80 | + | |
81 | /* Update child depth */ | |
82 | ++cdepth; | |
83 | ||
84 | Index: arpwatch/util.c | |
85 | diff -u arpwatch/util.c:1.1.1.1.2.2 arpwatch/util.c:1.1.1.1.2.1.4.2 | |
86 | --- arpwatch/util.c:1.1.1.1.2.2 Fri Aug 13 00:06:49 2004 | |
87 | +++ arpwatch/util.c Fri Aug 13 00:09:54 2004 | |
88 | @@ -63,6 +63,9 @@ | |
89 | int initializing = 1; /* true if initializing */ | |
90 | /**/ | |
91 | /**/ | |
92 | +int quiet = 0; /* send mail by default */ | |
93 | +/**/ | |
94 | +/**/ | |
95 | ||
96 | /* syslog() helper routine */ | |
97 | void | |
98 | Index: arpwatch/util.h | |
99 | diff -u arpwatch/util.h:1.1.1.1.2.1 arpwatch/util.h:1.1.1.1.22.2 | |
100 | --- arpwatch/util.h:1.1.1.1.2.1 Fri Aug 13 00:06:49 2004 | |
101 | +++ arpwatch/util.h Fri Aug 13 00:09:54 2004 | |
102 | @@ -19,3 +19,6 @@ | |
103 | extern int initializing; | |
104 | /**/ | |
105 | /**/ | |
106 | +extern int quiet; | |
107 | +/**/ | |
108 | +/**/ |