FS#46297 - [iputils] 'ping' utility does not work
Attached to Project:
Arch Linux
Opened by Denis Seleznev (dseleznev89) - Tuesday, 15 September 2015, 02:33 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 15 March 2016, 07:33 GMT
Opened by Denis Seleznev (dseleznev89) - Tuesday, 15 September 2015, 02:33 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 15 March 2016, 07:33 GMT
|
Details
Description: ping utility from iputils package does not
work:
ping: socket: Address family not supported by protocol (raw socket required by specified options). Additional info: * iputils-20150815.1b5d03a-2 Steps to reproduce: try to ping any host |
This task depends upon
https://github.com/iputils/iputils/blob/master/RELNOTES#L39
No problems here.
use ping -4 <host>, that should work
However some programs rely on ping being ping -4. For me, for instance, mythfrontend from aur/mythtv-git fails with iputils from testing:
2015-09-17 15:33:10.171227 I Loading de translation for module mythfrontend
2015-09-17 15:33:10.171450 I MythCoreContext::ConnectCommandSocket(): Connecting to backend server: localhost:6543 (try 1 of 1)
2015-09-17 15:33:10.171575 E MythCoreContext::GetBackendServerIP(): No address defined for host: localhost
2015-09-17 15:33:10.172063 E MythSocket(7f9be800eaf0:-1): Failed to connect to (127.0.0.1:6543) Verbindung verweigert
2015-09-17 15:33:10.172183 E Connection to master server timed out.
Either the server is down or the master server settings
in mythtv-settings does not contain the proper IP address
Is that a mythtv-bug?
Should there be some changes in nm to accommodate?
Have you manually disabled IPv6 or something? Is your /etc/hosts correct?
Indeed the manpage seems outdated. It still refers to "ping6".
Kind of related: tpowa, you can remove the ping6 manpage symlink (ln -sf ping.8.gz ping6.8.gz) from the pkgbuild, since the command no longer exists.
https://github.com/iputils/iputils/commit/7c2ecd4129bc0028d2fe6c038bd3f3a54397a002
I am not sure what you mean by /etc/hosts correct so I cannot say, but I do have
alias net-pf-10 off
options ipv6 disable
and ipv6.disable=1 for the kernel.
If you enable ipv6 again, is there any difference in the behaviour of ping?
I've disabled ipv6 because I do not use it (yet), I think I had a perf reason in mind when I did that but I am not sure anymore.
Why does it work that way?
[1] https://github.com/iputils/iputils/issues/32