Bug 1348934 - Failed to bind to device
Summary: Failed to bind to device
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: iputils
Version: 24
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-22 10:54 UTC by Artur Penttinen
Modified: 2016-06-23 17:53 UTC (History)
1 user (show)

Fixed In Version: iputils-20160308-3.fc24
Clone Of:
Environment:
Last Closed: 2016-06-23 17:53:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Artur Penttinen 2016-06-22 10:54:39 UTC
Description of problem:
ping failed to bind to device via -I option

Version-Release number of selected component (if applicable):
iputils-20160308-2.fc24.i686

How reproducible:
Set source address and ping some host.

Steps to Reproduce:
1. # ping -I 10.7.1.1 8.8.8.8
ping: unknown iface 10.7.1.1
2. 
3.

Actual results:
# ping -I 10.7.1.1 8.8.8.8
ping: unknown iface 10.7.1.1


Expected results:
# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=11.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=46 time=10.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=46 time=10.0 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 10.000/10.453/11.143/0.495 ms


Additional info:
# sudo strace ping -I 10.7.1.1 8.8.8.8
...
close(3)                                = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
capset({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_ICMP) = -1 EACCES (Permission denied)
socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
socket(PF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6) = -1 EACCES (Permission denied)
socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6) = 4
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
ioctl(3, SIOCGIFINDEX, {ifr_name="10.7.1.1", ???}) = -1 ENODEV (No such device)
write(2, "ping: unknown iface 10.7.1.1\n", 29ping: unknown iface 10.7.1.1
) = 29
exit_group(2)                           = ?
+++ exited with 2 +++

Comment 3 Fedora Update System 2016-06-22 12:17:45 UTC
iputils-20160308-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3d9ca9424f

Comment 4 Fedora Update System 2016-06-22 23:02:42 UTC
iputils-20160308-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3d9ca9424f

Comment 5 Fedora Update System 2016-06-23 17:53:19 UTC
iputils-20160308-3.fc24 has been pushed to the Fedora 24 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.