]> 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)
committerfxlb <[email protected]>
Fri, 14 Jul 2023 06:05:18 +0000 (06:05 +0000)
commit6b40777480ece39b5f8975109ec787cff4e0f904
tree5f63e7ffcb8d62e795f9c00750e85dcb29a6f09e
parent63134a45c19b49ea113f2c88fa7367be13997ac0
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]>
print-ptp.c
tests/ptp.out
tests/ptp_corrections.out
tests/ptp_ethernet.out