From 8380f5ff00dadc620426318ae75f2916738b6da0 Mon Sep 17 00:00:00 2001 From: Jeff Chan Date: Fri, 21 Feb 2020 04:32:48 -0800 Subject: Dispatch the PTP ethertype to ptp_print() This implements "IEEE 802.3/Ethernet" mode as described in annex F of the PTP standard. This uses the same format packets, but directly over Ethernet instead of encapsulated in UDP. --- print-ether.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'print-ether.c') diff --git a/print-ether.c b/print-ether.c index c9d27d44..74479ccf 100644 --- a/print-ether.c +++ b/print-ether.c @@ -100,6 +100,7 @@ const struct tok ethertype_values[] = { { ETHERTYPE_GEONET, "GeoNet"}, { ETHERTYPE_CALM_FAST, "CALM FAST"}, { ETHERTYPE_AOE, "AoE" }, + { ETHERTYPE_PTP, "PTP" }, { ETHERTYPE_ARISTA, "Arista Vendor Specific Protocol" }, { 0, NULL} }; @@ -600,6 +601,10 @@ ethertype_print(netdissect_options *ndo, aoe_print(ndo, p, length); return (1); + case ETHERTYPE_PTP: + ptp_print(ndo, p, length); + return (1); + case ETHERTYPE_LAT: case ETHERTYPE_SCA: case ETHERTYPE_MOPRC: -- cgit v1.2.1