Bug 870722 - ping -I interface isn't working
Summary: ping -I interface isn't working
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: iputils
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-28 07:42 UTC by Frantisek Hanzlik
Modified: 2013-01-09 08:48 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-09 08:48:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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