Skip to content
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

new option --check-source #332

Closed
wants to merge 2 commits into from
Closed

Conversation

auerswal
Copy link
Collaborator

Using the new option --check-source discards Echo reply packets sourced from an address that is different from the specified target address. This can be useful on busy monitoring hosts, because it is possible that two fping processes running at he same time use the same ICMP Echo Reply Identifier for ICMP Echo messages sent to different hosts.

This aims to address GH issue #206.

Using the new option --check-source discards Echo reply packets
sourced from an address that is different from the specified target
address.  This can be useful on busy monitoring hosts, because it
is possible that two fping processes running at he same time use
the same ICMP Echo Reply Identifier for ICMP Echo messages sent to
different hosts.

This aims to address GH issue schweikert#206.
@coveralls
Copy link

Coverage Status

coverage: 85.674% (+0.2%) from 85.469%
when pulling d1a56e0 on auerswal:check_source
into 00d6417 on schweikert:develop.

Copy link
Contributor

@gsnw gsnw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no problem in adopting this

The long-only options use the character '0' to select the switch
case used to handle the different long-only options.  This can be
given as a normal short option that requires an argument:

    $ fping -0
    fping: option requires an argument -- '0'
    see 'fping -h' for usage information
    $ fping -0 127.0.0.1 127.0.0.2
    127.0.0.2 is alive

Catch this usage error by requiring that one of the long-only
options is given when handling the case of '0'.
@auerswal
Copy link
Collaborator Author

I do not understand why the test fails on the GitHub CI, it works on my Ubuntu 20.04 system. I am closing this pull request.

@auerswal auerswal closed this Jul 13, 2024
@auerswal auerswal deleted the check_source branch July 13, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants