-
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 feature: support ICMP type 13/14 timestamps #353
Conversation
@gsnw-sebast: Thanks for your work on this! I have not yet found the time to do a thorough review, but the approach looks sensible. I'll try to review this pull request in a couple of weeks. In your example output for Then I have two high-level suggestions for consideration:
|
I'm not sure about the RTT issue myself. The formula should be
[1] https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml |
I would prefer
|
The format you suggested was also my first idea. I have therefore adapted it. Thanks for the feedback. |
I have changed the parameters so that --icmp-timestamp and --size may not be used at the same time. I know the documentation is still missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All in all this looks promising, I think we just need to look at some of the details before merging. Thanks!
…p variable from long to unit32_t
2472736
to
eb9acb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thank you!
Suggestion: could you also update CHANGELOG.md?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Shouldn't the CHANGELOG.md be created again with release 5.3 and then the rule defined that every pull request must also contain the extension of the CHANGELOG.md? |
Ideally yes, but you could already start with adding a line to a "Next" section maybe? We definitely need to get the habit of always also changing CHANGELOG.md instead of me guessing a good name for the change summary based on the commits. |
This is excellent! However one request, would it be possible to also add the missing 4th number, the time the type 14 packet was received in the same time format as Originate? The goal is to calculate the two OWDs: and to do this MISSINGLOCALRECEIVE would be helpful, or in the hping case that can be constructed as: I guess the same is possible for fping:
MISSINGLOCALRECEIVE = Originate + 40.9 it is just parsing this would be easier if there was something like: |
Sweet, so fping is about to support ICMP type 13/14? |
It does, at least the development version! |
This is an extension to send ICMP type 13 and receive ICMP type 14 with fping (Issue: #265).
To use it, root rights are required on the system and it can be used as follows.
./fping --icmp-timestamp 127.0.0.1
./fping --icmp-timestamp -c 2 127.0.0.1
(For the output, I first partly oriented myself on hping3)Unfortunately I could not test the function under macOS and the Github Action Test under macOS is not possible.