2001-02-22 23:56:40 +01:00
|
|
|
--- arpwatch.c.orig Thu Feb 22 22:47:29 2001
|
|
|
|
+++ arpwatch.c Thu Feb 22 22:47:29 2001
|
|
|
|
@@ -107,6 +107,8 @@
|
|
|
|
|
|
|
|
char *prog;
|
|
|
|
|
|
|
|
+char *Watcher = NULL;
|
|
|
|
+
|
|
|
|
int can_checkpoint;
|
|
|
|
int swapped;
|
|
|
|
int nobogons;
|
|
|
|
@@ -170,7 +172,7 @@
|
|
|
|
interface = NULL;
|
|
|
|
rfilename = NULL;
|
|
|
|
pd = NULL;
|
|
|
|
- while ((op = getopt(argc, argv, "df:i:n:Nr:")) != EOF)
|
|
|
|
+ while ((op = getopt(argc, argv, "df:i:m:n:Nr:")) != EOF)
|
|
|
|
switch (op) {
|
2000-11-28 11:31:32 +01:00
|
|
|
|
2001-02-22 23:56:40 +01:00
|
|
|
case 'd':
|
|
|
|
@@ -202,6 +204,10 @@
|
|
|
|
rfilename = optarg;
|
|
|
|
break;
|
|
|
|
|
|
|
|
+ case 'm':
|
|
|
|
+ Watcher = optarg;
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
default:
|
|
|
|
usage();
|
|
|
|
}
|
|
|
|
@@ -751,6 +757,6 @@
|
2000-11-28 11:31:32 +01:00
|
|
|
|
2001-02-22 23:56:40 +01:00
|
|
|
(void)fprintf(stderr, "Version %s\n", version);
|
|
|
|
(void)fprintf(stderr, "usage: %s [-dN] [-f datafile] [-i interface]"
|
|
|
|
- " [-n net[/width]] [-r file]\n", prog);
|
|
|
|
+ " [-m email] [-n net[/width]] [-r file]\n", prog);
|
|
|
|
exit(1);
|
|
|
|
}
|