Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 78808 - inappropriate bogon messages with -n flag
inappropriate bogon messages with -n flag
Product: Red Hat Linux
Classification: Retired
Component: tcpdump (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Depends On:
  Show dependency treegraph
Reported: 2002-11-30 20:03 EST by Need Real Name
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-11-30 20:04:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-11-30 20:03:54 EST
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):

How reproducible:

Steps to Reproduce:
1. arpwatch -d -n

Actual Results:  arpwatch: bogon 0:xx:xx:xx:xx:xx

Expected Results:  No bogon messages for an address in the additional networks

Additional info:

arpwatch.c:774 checks for bogons:
   if ((sia & np->netmask) == np->net)
       return 0;

with -n and a packet from, the variables I see are:

  sia:         0x7B7B7B7B
  np->netmask: 0x000000FF
  np->net:     0x007B7B7B

np->netmask seems to have the wrong byte order.
Comment 1 Need Real Name 2002-11-30 20:17:08 EST
Okay, I've just realized that I'm an idiot.  I wanted, not /8...

arpwatch works fine if I give it correct input.

Note You need to log in before you can comment on or make changes to this bug.