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

Add kernel timestamping on ICMP ECHO-REPLY #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

six3six
Copy link

@six3six six3six commented Nov 7, 2023

On linux, add the SO_TIMESTAMPNS socket option on the socket level.

This option allows us to use the kernel packet timestamping feature. When the ICMP packet is received, the kernel put a timestamp that the program is able to read. This timestamp is more accurate than program timestamp because it is impacted by the process switching.

This patch fix the the ping precision on system with many processes.

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.

1 participant