]> The Tcpdump Group git mirrors - tcpdump/commit
ptp: Print majorSdoId field instead of just the first bit
authorCasper Andersson <[email protected]>
Mon, 10 Jul 2023 22:44:57 +0000 (00:44 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 12 Oct 2023 17:30:20 +0000 (19:30 +0200)
commitb394996988825d5bcbfe46a8a42919c0e9ccc6b4
treec4080c268c238df4ffb04de0e4b023c917632e52
parente52b482d75252e0aa524e685aa87d096799daf18
ptp: Print majorSdoId field instead of just the first bit

The 4 bits in this location are labelled transportSpecific in
IEEE1588-2008. The first bit was dedicated for v1 compatible hardware,
but in Annex F: "Transport over IEEE 802.3 /Ethernet" it says that a
value of transportSpecific 0x1 is reserved for use by standards
developed by the 802.1 AVB Task Group, which later resulted in the
802.1AS standard which uses that value. So it no longer means only v1
compat, and we should just print the whole value.

802.1AS-2020 also renames this field to majorSdoId, and that is the name
used in Wireshark.

Signed-off-by: Casper Andersson <[email protected]>
(cherry picked from commit 6b40777480ece39b5f8975109ec787cff4e0f904)
print-ptp.c
tests/ptp.out
tests/ptp_corrections.out
tests/ptp_ethernet.out