-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fping when ipv6 is disabled on a server #118
Comments
The same here.
fping Version:
|
@bodsch - I am not able to reproduce your results using alpine:latest (3.6)
Are you using a different version/flavor of Alpine?
Or perhaps some other Alpine based image that has v6 disabled? I did also try daemonizing an Alpine container and followed steps here on disabling v6, restarted the container and then installed the fping package and results were the same as above. I.e. no issues. Edit: Never mind on this last paragraph as it seems that v6 is NOT enabled by default in Alpine Linux, and is also the case in the alpine:latest Docker image. |
@pezz - Have you tried reaching out to the package maintainers or opened an issue on the Arch Linux ARM forum? Not saying that their build options are at fault (could be, but I just don't know), but they should at least know that the "--enable-ipv4 --enable-ipv6" options are no longer needed as both v4 and v6 are integrated into a single binary and are enabled by default. Check the CANGELOG here: https://github.com/schweikert/fping/blob/develop/CHANGELOG.md |
@NetworkEng Sure mate, I can let them know. However I just downloaded and modified the PKGBUILD then built and get the same behaviour. Edit: I also just built it from git, same result as well. Cheers. |
@pezz - No worries. My main point is that it's probably best to have the Arch experts have a look into why it's not working in your specific case, as I am unable to reproduce it on other OS (Centos, Ubuntu, Alpine - though all are x86_64). I am not familiar with Arch and don't have any ARM boards to in order to check it out. Just a few thoughts for troubleshooting when posting on the Arch forum: Just FYI - I am not a maintainer of the fping source, just and avid user. Here's to hoping that @schweikert or any of the other experts here may have some familiarity with this issue and able to provide direction. :) |
@NetworkEng I just did those two exact tests! 😄
|
@pezz I was poking around the Arch wiki re. disabling IPv6. Out of curiosity, what method are you using to disable v6? |
ipv6.disable=1 on the kernel command line. |
@pezz - Does this alternate kernel command line option work, or does it cause other issues?
That wiki has the following warning, which I suspect may be why you are having this issue:
|
@NetworkEng That does work, however I still think there's something not quite right with fping. |
Here comes my container:
I have no IPv6 Support on the Hostsystem (gentoo based). |
@NetworkEng Hello, I would like to mention that the kernel command-line option you have suggested ipv6.disable_ipv6=1 instead of ipv6.disable=1 doesn't do the same thing. With this change, network interfaces still receive IPv6 multicast related addresses (ff02:xxxx) and also IPv6 related multicast layer 2 MAC addresses (33:33:xxxx). I would very much prefer these don't have to be enabled in order to ping an IPv4 address with fping. I can reproduce this problem with fedora 27 and the kernel comman-line set with ipv6.disable=1. fping doesn't complain with ipv6.disble_ipv6=1, however, this is not ideal. I have to reboot and change my kernel command line just to use fping to look at ipv4 |
If IPv6 is not available on the host, but fping is built with IPv6 support, then calling fping fails even if --ipv4 is used. Somehow the man page confirms this with "Restrict name resolution and IPs to IPv4 addresses." It says name resolution is only done for IPv4, but inside it still uses IPv6 functions. Those fail in case IPv6 is disabled on the host. I'll try to come up with a fix tomorrow. |
Attached patch seems to fix it for me. |
Unfortunately the committed patch doesn't fix the problem and dies with a SEGFAULT:
My version of the code works for me 👍 Regards, |
Thanks Simon for testing and reporting the issue. The reason why I adapted your fix (and apparently introduced a bug), is that theoretically a filedescriptor number 0 is valid (see #125), so even if in this case it can’t happen to have a socket fd 0, it seemed cleaner to use -1 instead of 0. I will check and try to find out why it crashes now. |
@realsimix : I can’t reproduce the problem. Did you test with the code in the develop branch? Did you do a “make clean” before building again? Can you create a stracktrace maybe? |
@schweikert : Here's the trace of my test, and yes it's from the develop branch:
On a first sight the Regards, |
@realsimix : sorry for the slow reaction on my part... It should be fixed in the develop branch now I hope |
Thanks, it works now in my case. |
That fixed it for me on raspberry w/o ipv6 support. Thanks |
Hi there,
I was just curious if fping is working as intended when ipv6 is disabled on a box?
I get some very strange behaviour:
I can't even print the help page.
This is on Arch Linux ARM and is built with the options contained in this PKGBUILD:
https://archlinuxarm.org/packages/armv7h/fping/files/PKGBUILD
Any thoughts?
Cheers.
The text was updated successfully, but these errors were encountered: