Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 470498

Summary: rdisc error message with two IP addresses on one dev
Product: Red Hat Enterprise Linux 5 Reporter: Tomas Smetana <tsmetana>
Component: iputilsAssignee: Jiri Skala <jskala>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: aglotov, ctowsley, dkovalsk, jerlyon, rvokal, sghosh, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 688332 (view as bug list) Environment:
Last Closed: 2009-06-10 11:24:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 688332    
Attachments:
Description Flags
Proposed patch none

Description Tomas Smetana 2008-11-07 12:54:14 UTC
Description of problem:
The rdisc utility issues an error and fails to start if it's run on system with an interface having two IP addresses assigned to it.

Version-Release number of selected component (if applicable):
iputils-20020927-45

How reproducible:
always

Steps to Reproduce:
1. ifconfig eth0 192.168.1.1 netmask 255.255.255.0
2. ifconfig eth0:0 192.168.2.1 netmask 255.255.255.0
3. rdisc -fs
  
Actual results:
The following errors appear in /var/log/messages:

Nov  7 12:52:18 localhost in.rdiscd[4860]: setsockopt (IP_ADD_MEMBERSHIP): Address already in use
Nov  7 12:52:18 localhost in.rdiscd[4860]: Failed joining addresses

and rdisc doesn't start.

Expected results:
No errors, rdisc starts up.

Comment 1 Tomas Smetana 2008-11-07 12:59:46 UTC
Created attachment 322853 [details]
Proposed patch

The patch tries to solve the problem by remembering indexes of the interfaces which have been already joined to the multicast group and skipping any attemt to join twice the interface with the same index.

Comment 3 RHEL Program Management 2009-03-26 16:56:37 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 8 errata-xmlrpc 2009-06-10 11:24:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1090.html