summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorPartha Ghosh <psg@cumulusnetworks.com>2018-12-13 22:28:36 -0800
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-11-22 20:56:21 +0100
commit6f531302736fa22264dce423234deeb4d5a4fed6 (patch)
treeef61f8bfdfee74648eca5b5e5d2a515f411481c9 /tcpdump.c
parent74e6075a69453cb64418969ae16728e3063a9bae (diff)
downloadtcpdump-6f531302736fa22264dce423234deeb4d5a4fed6.tar.gz
The ptp (precision time protocol) with UDP as the transport protocol.
- the print routines for ptp different ptp messages - test completed for sync message, announce message, delay request message, delay response message and follow up message. - integration of the ptp v2 code with the tcpdump code. Signed-off-by: Partha S. Ghosh <psglinux@gmail.com>
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 1a15d3c5..a44baa29 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1782,6 +1782,8 @@ main(int argc, char **argv)
ndo->ndo_packettype = PT_LMP;
else if (ascii_strcasecmp(optarg, "resp") == 0)
ndo->ndo_packettype = PT_RESP;
+ else if (ascii_strcasecmp(optarg, "ptp") == 0)
+ ndo->ndo_packettype = PT_PTP;
else
error("unknown packet type `%s'", optarg);
break;