1 Index: arpwatch/arpwatch.8
2 diff -u arpwatch/arpwatch.8:1.1.1.1 arpwatch/arpwatch.8:1.1.1.1.8.1
3 --- arpwatch/arpwatch.8:1.1.1.1 Tue Apr 17 13:31:36 2001
4 +++ arpwatch/arpwatch.8 Tue Apr 17 13:51:23 2001
17 to listen for arp packets on a local ethernet interface.
22 +reports bogons (unless
24 +is given) for IP addresses that are in the same subnet than the
25 +first IP address of the default interface. If this option is
28 +will report bogons about every IP addresses. (Debian specific)
32 Index: arpwatch/arpwatch.c
33 diff -u arpwatch/arpwatch.c:1.1.1.1.2.1 arpwatch/arpwatch.c:1.1.1.1.2.1.6.1
34 --- arpwatch/arpwatch.c:1.1.1.1.2.1 Tue Apr 17 13:47:57 2001
35 +++ arpwatch/arpwatch.c Tue Apr 17 13:51:23 2001
37 struct bpf_program code;
38 char errbuf[PCAP_ERRBUF_SIZE];
45 while ((op = getopt(argc, argv, options)) != EOF)
56 /* Watch for bogons */
58 dosyslog(LOG_INFO, "bogon", sia, sea, sha);
60 + if (!allsubnets) return;
63 /* Watch for ethernet broadcast */
65 /* Watch for bogons */
67 dosyslog(LOG_INFO, "bogon", sia, sea, sha);
69 + if (!allsubnets) return;
72 /* Watch for ethernet broadcast */
75 extern char version[];
81 Index: arpwatch/util.c
82 diff -u arpwatch/util.c:1.1.1.1 arpwatch/util.c:1.1.1.1.8.1
83 --- arpwatch/util.c:1.1.1.1 Tue Apr 17 13:31:37 2001
84 +++ arpwatch/util.c Tue Apr 17 13:51:24 2001
86 u_char zero[6] = { 0, 0, 0, 0, 0, 0 };
87 u_char allones[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
89 +int allsubnets = 0; /* watch all attached subnets */
91 int initializing = 1; /* true if initializing */
93 Index: arpwatch/util.h
94 diff -u arpwatch/util.h:1.1.1.1 arpwatch/util.h:1.1.1.1.8.1
95 --- arpwatch/util.h:1.1.1.1 Tue Apr 17 13:31:37 2001
96 +++ arpwatch/util.h Tue Apr 17 13:51:24 2001
98 extern u_char zero[6];
99 extern u_char allones[6];
101 +extern int allsubnets;
103 extern int initializing;