]> git.gsnw.org Git - fping.git/commit
complete SO_TIMESTAMPNS to SO_TIMESTAMP fallback
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>
Thu, 16 Jan 2025 11:12:51 +0000 (12:12 +0100)
committerErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sun, 26 Jan 2025 20:13:28 +0000 (21:13 +0100)
commit511aa3720639402777632a237845252b6fcf5b36
treebe6909a4614429359a1b9210ccd57b74ce74db6a
parentcb832861742f4af5fcadfaf6b2dd19ee0a4b4143
complete SO_TIMESTAMPNS to SO_TIMESTAMP fallback

Commit e8660637ccc3bf2aae163fa7c26216843ae98180 added a
fallback from setting the socket option SO_TIMESTAMPNS to
setting the socket option SO_TIMESTAMP if the nanosecond
timestamp option could not be set.  But it did not add
code to also look for the control message related to
SO_TIMESTAMP.  Thus microsecond timestamps were requested,
but not read.

This commit adds the missing code to read microsecond
timestamp control messages.

The problem was reported in GitHub issue #374 by @payload.
CHANGELOG.md
src/fping.c