1 Index: arpwatch/arpwatch.8
2 diff -u arpwatch/arpwatch.8:1.1.1.1.2.2 arpwatch/arpwatch.8:1.1.1.1.24.2
3 --- arpwatch/arpwatch.8:1.1.1.1.2.2 Thu Aug 12 22:31:09 2004
4 +++ arpwatch/arpwatch.8 Thu Aug 12 23:44:44 2004
13 +.I ignorenet/ignoremask
26 +flag is used to set a range of ip addresses to ignore (such as a DHCP
27 +range). Netmask is specified as 255.255.128.0.
33 file must be created before the first time you run
34 Index: arpwatch/arpwatch.c
35 diff -u arpwatch/arpwatch.c:1.1.1.1.2.5 arpwatch/arpwatch.c:1.1.1.1.2.1.14.6
36 --- arpwatch/arpwatch.c:1.1.1.1.2.5 Sat Aug 14 02:33:07 2004
37 +++ arpwatch/arpwatch.c Fri Aug 13 02:40:20 2004
42 +static struct in_addr ignore_net;
43 +static struct in_addr ignore_netmask;
65 + inet_aton("0.0.0.0", &ignore_netmask);
66 + inet_aton("255.255.255.255", &ignore_netmask);
67 while ((op = getopt(argc, argv, options)) != EOF)
75 + tmpptr = strtok(optarg, "/");
76 + inet_aton(tmpptr, &ignore_net);
77 + tmpptr = strtok(NULL, "/");
78 + inet_aton(tmpptr, &ignore_netmask);
89 + /* Ignores the specified netmask/metwork */
90 + if ((sia & ignore_netmask.s_addr) == ignore_net.s_addr) {
92 + dosyslog(LOG_INFO, "ignored", sia, sea, sha, interface);
100 if (!ent_add(sia, sea, t, NULL))
105 + "[-z ignorenet/ignoremask] "