]> The Tcpdump Group git mirrors - tcpdump/commit
PTP: Refine timestamp printing. 1277/head
authorDenis Ovsienko <[email protected]>
Mon, 20 Jan 2025 14:01:45 +0000 (14:01 +0000)
committerDenis Ovsienko <[email protected]>
Mon, 20 Jan 2025 14:15:04 +0000 (14:15 +0000)
commit94675fce171e2a3b4e0197c5ec2deeaa51a58af9
tree277fb913253ebb550cee7a6ce5716f1fb8a5f5aa
parent09512cfc01958a37f67951bf7b6e00d52ed1e12e
PTP: Refine timestamp printing.

In ptp_print_timestamp_identity() and ptp_print_announce_msg() use
ptp_print_timestamp() to deduplicate code.  In ptp_print_timestamp()
change the format to SECONDS.NANOSECONDS and indicate an invalid
nanoseconds value.  Update the tests.  This resolves GH issue #1260.
CHANGES
print-ptp.c
tests/ptp.out
tests/ptp_corrections.out
tests/ptp_ethernet.out
tests/ptp_v2_1.out