summaryrefslogtreecommitdiff
path: root/print-ether.c
diff options
context:
space:
mode:
authorJeff Chan <jchan@arista.com>2020-02-21 04:32:48 -0800
committerfxlb <devel.fx.lebail@orange.fr>2020-02-29 19:01:20 +0100
commit8380f5ff00dadc620426318ae75f2916738b6da0 (patch)
treed77f25728847bb7ce1646face127415651b8d834 /print-ether.c
parente2256b4f2506102be2c6f7976f84f0d607c53d43 (diff)
downloadtcpdump-8380f5ff00dadc620426318ae75f2916738b6da0.tar.gz
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.
Diffstat (limited to 'print-ether.c')
-rw-r--r--print-ether.c5
1 files changed, 5 insertions, 0 deletions
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: