-
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
Add backward compatibility for fping6 sym-link #139
Conversation
Using sym-links is a bit flawed, because it won't work for IPv4 (where you don't use "fping4"). The suggestion is to use differently compiled binaries, if compatibility is needed. |
Hi @schweikert
A single sym-link ( I looked at Debian for reference, and for versions that support fping 4.x, they also install a I would argue that this PR causes no harm and adds support for fping6 3.x functionality if the sym-link was installed. It seems a waste to compile a separate binary for this case. |
The "harm" is that it gives the false impression that you can solve the compatibility requirement by using a symlink. That seems to work with fping as well, but it can give surprises (i.e. when a site becomes reachable also via ipv6). |
I'm only talked about Is there a case when this would not work as expected ? |
I am trying to understand, sorry :) What is the use case to have a fping6 binary doing only IPv6 and a fping binary doing IPv4+IPv6? |
It all about backward compatibility and supporting There is only a need for one binary
Without this PR and with a sym-link (as Debian does), the result:
|
I feel like you are not really hearing out what I am trying to say. If you use a fping6 binary that only does IPv6, aren't you also going to use a fping binary for IPv4? Or let me put it this way: maybe you should also add similar code and imply "-4" if the binary matches "fping4" ? |
There is no
There was never a |
This means that when you use this symlink technique, scripts that use fping for IPv4 and fping6 for IPv6 (i.e. assuming fping < 3.0), will seem to work correctly, but effectively deliver sometimes wrong results for IPv4 (because fping will do IPv4+IPv6). That doesn't seem like a good idea to me. |
I agree.
Well, we don't have a time machine :-) So At least with this PR a |
Thank you! |
without flags, the main fping binary is v4/v6 dual stack, use -4 / -6 to force one particular af. a v6-only fping6 is installed to provide support for dependent ports, using the method from schweikert/fping#139
Adding a sym-link for
fping6
is not quite enough to satisfy old scripts,-6
must also be implied.