diff options
author | Partha Ghosh <psg@cumulusnetworks.com> | 2018-12-13 22:28:36 -0800 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-11-22 20:56:21 +0100 |
commit | 6f531302736fa22264dce423234deeb4d5a4fed6 (patch) | |
tree | ef61f8bfdfee74648eca5b5e5d2a515f411481c9 /tcpdump.c | |
parent | 74e6075a69453cb64418969ae16728e3063a9bae (diff) | |
download | tcpdump-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |