diff options
author | Jeff Chan <jchan@arista.com> | 2020-02-21 04:32:48 -0800 |
---|---|---|
committer | fxlb <devel.fx.lebail@orange.fr> | 2020-02-29 19:01:20 +0100 |
commit | 8380f5ff00dadc620426318ae75f2916738b6da0 (patch) | |
tree | d77f25728847bb7ce1646face127415651b8d834 /print-ether.c | |
parent | e2256b4f2506102be2c6f7976f84f0d607c53d43 (diff) | |
download | tcpdump-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.c | 5 |
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: |