Bug 870722

Summary: ping -I interface isn't working
Product: [Fedora] Fedora Reporter: Frantisek Hanzlik <franta>
Component: iputilsAssignee: Jan Synacek <jsynacek>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: jsynacek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-09 08:48:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frantisek Hanzlik 2012-10-28 07:42:21 UTC
Description of problem:
Several problems with "ping -I IfaceName":
1) it seems (in strace) as ping drops its capabilities before calling setsockopt(..,SO_BINDTODEVICE, IfName,..), thus this operation always ends with EPERM (Operation not permitted).

2) I'm not sure when Fedora patch for unsuccessful setsockopt() call, which says:
Warning: cannot bind to specified iface, falling back: Operation not permitted

is adequate. Should not rather exit in this case?

3) ping behavior for "ping -I IPAddress" and "ping -I IfaceName" is fairly different. It should be mentioned in ping man pages.

4) Newer version iputils-20121011 is available, it would be fine use it.


Version-Release number of selected component (if applicable):
iputils-20101006-14.fc17.i686

Comment 1 Jan Synacek 2012-12-06 11:01:52 UTC
(In reply to comment #0)
> 1) it seems (in strace) as ping drops its capabilities before calling
> setsockopt(..,SO_BINDTODEVICE, IfName,..), thus this operation always ends
> with EPERM (Operation not permitted).

In progress... Coming Real Soon Now (tm)
 
> 2) I'm not sure when Fedora patch for unsuccessful setsockopt() call, which
> says:

Fixed by upstream - it's considered a fatal error and exits now. Fixed in rawhide as well.

> 3) ping behavior for "ping -I IPAddress" and "ping -I IfaceName" is fairly
> different. It should be mentioned in ping man pages.

Fixed by upstream and in rawhide.

> 4) Newer version iputils-20121011 is available, it would be fine use it.

I don't think it's worth updating in F17. If you really want the new version, please file a separate RFE for that.


I'm probably going to backport 2) and 3) as well.

Comment 3 Fedora Update System 2012-12-07 14:26:10 UTC
iputils-20101006-16.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/iputils-20101006-16.fc17

Comment 4 Fedora Update System 2012-12-09 05:56:53 UTC
Package iputils-20101006-16.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing iputils-20101006-16.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20003/iputils-20101006-16.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-01-09 08:48:50 UTC
iputils-20101006-16.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.