Bug 20435 - rwhod broadcast to all interfaces including virtual
rwhod broadcast to all interfaces including virtual
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: rwho (Show other bugs)
7.0
All Linux
low Severity high
: ---
: ---
Assigned To: Preston Brown
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-11-06 14:48 EST by Darryl Wagoner
Modified: 2005-10-31 17:00 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-11-06 14:48:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Darryl Wagoner 2000-11-06 14:48:22 EST
If you have virtual network interfaces for example: eth0, eth0:0, eth0:1, eth0:2, etc
rwhod will broadcast on each one.  When it should only broadcast on the real one.

Fix: In the configure option do a check for ":" in the adapter name.  If there free the
list item and continue to the next.  See code below.  Other fixes would be to
keep a list of network address and not dup them.  This would still broadcast
to different networks on the same wire.  I don't have this problem so I took
the easy way out.

configure(int s)
....
....
      strcpy(np->n_name, ifr->ifr_name);
      co = strchr(np->n_name,':');
      if (co)
        {
          free((char *)np);
          continue;
        }
Comment 1 Preston Brown 2001-02-02 17:54:20 EST
fixed in 0.17-8, available soon in rawhide.  Thanks for the patch.

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