[smokeping-users] FPing.pm fix for source address

mtr.biz at gmail.com mtr.biz at gmail.com
Mon Mar 11 21:43:54 CET 2019


It would be easier for me if you made the change. Thanks!

-Mike

Sent from my iPhone

> On Mar 10, 2019, at 11:42 AM, Gabriel Filion <gabster at lelutin.ca> wrote:
> 
>> On 2019-03-09 5:16 p.m., Mike Richard wrote:
>> In the current FPing.pm the test for source address support is outdated.
>> The current test is (line 70):
>> $self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S\s/);
>> 
>> This should be changed to something like:
>> $self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S,/);
>> 
>> The test for -O likely needs the same fix.
> 
> ah! so this was what was happening, thanks for finding that out :)
> 
> it looks like it's been changed in fping 4.x (parsing output of a
> human-formatted command will invariable lead to this kind of result, but
> I can't think of a better method for now :\ )
> 
> we probably want to keep the check working with 3.x, just like I had to
> fix for the -4/-6 options, since there still are distributions that ship
> fping 3.x. So the line would probably look like this in order to match
> both cases:
> 
>    $self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S,?\s/);
> 
> would you like to submit this as a pull request? (you can also do that
> on github by modifying the line directly on the web interface)
> otherwise, if you prefer I can submit it and I'll make sure to credit
> you as the one who figured this out.
> 
> Cheers!
> 
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users



More information about the smokeping-users mailing list