Red Hat Bugzilla – Bug 78808
inappropriate bogon messages with -n flag
Last modified: 2008-05-01 11:38:04 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
Description of problem:
Running arpwatch with the -n flag still gives me bogon messages.
The -n flag doesn't seem to work as advertized.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. arpwatch -d -n 184.108.40.206/8
Actual Results: arpwatch: bogon 220.127.116.11 0:xx:xx:xx:xx:xx
Expected Results: No bogon messages for an address in the additional networks
arpwatch.c:774 checks for bogons:
if ((sia & np->netmask) == np->net)
with -n 18.104.22.168/8 and a packet from 22.214.171.124, the variables I see are:
np->netmask seems to have the wrong byte order.
Okay, I've just realized that I'm an idiot. I wanted 126.96.36.199/24, not /8...
arpwatch works fine if I give it correct input.