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 /tests | |
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 'tests')
-rw-r--r-- | tests/TESTLIST | 2 | ||||
-rw-r--r-- | tests/ptp.out | 5 | ||||
-rw-r--r-- | tests/ptp.pcap | bin | 0 -> 564 bytes |
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/TESTLIST b/tests/TESTLIST index c42aa904..54f3f7a3 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -751,3 +751,5 @@ huge-tipc-messages huge-tipc-messages.pcap huge-tipc-messages.out sflow_print-segv sflow_print-segv.pcap sflow_print-segv.out -v smb_data_print-oobr smb_data_print-oobr.pcapng smb_data_print-oobr.out -vv smb_data_print-segv smb_data_print-segv.pcapng smb_data_print-segv.out -vv +#ptp tests +ptp ptp.pcap ptp.out diff --git a/tests/ptp.out b/tests/ptp.out new file mode 100644 index 00000000..af0b7ea8 --- /dev/null +++ b/tests/ptp.out @@ -0,0 +1,5 @@ + 1 19:44:09.248292 IP 11.0.0.110.319 > 224.0.1.129.319: PTPv2, v1 compat : no, msg type : delay req msg, length : 44, domain : 0, reserved1 : 0, Flags [none], NS correction : 0, sub NS correction : 0, sub NS correction : 0x0, clock identity : 0x7cfe90fffef950b4, port id : 1, seq id : 132, control : 1 (delay req msg), log message interval : 127 originTimeStamp : 0 seconds, 0 nanoseconds + 2 19:44:09.248437 IP 11.0.0.9.320 > 224.0.1.129.320: PTPv2, v1 compat : no, msg type : delay resp msg, length : 54, domain : 0, reserved1 : 0, Flags [none], NS correction : 0, sub NS correction : 0, sub NS correction : 0x0, clock identity : 0x200fffe000001, port id : 1, seq id : 132, control : 3 (peer delay resp msg), log message interval : 0 recieveTimeStamp : 1516736649 seconds, 248292005 nanoseconds, port identity : 0x7cfe90fffef950b4, port id : 1 + 3 19:44:09.982883 IP 11.0.0.9.320 > 224.0.1.129.320: PTPv2, v1 compat : no, msg type : announce msg, length : 64, domain : 0, reserved1 : 0, Flags [none], NS correction : 0, sub NS correction : 0, sub NS correction : 0x0, clock identity : 0x200fffe000001, port id : 1, seq id : 534, control : 5 (Other), log message interval : 1 originTimeStamp : 0 seconds 0 nanoseconds, origin cur utc :36, rsvd : 0, gm priority_1 : 128, gm clock class : 248, gm clock accuracy : 254, gm clock variance : 65535, gm priority_2 : 128, gm clock id : 0x200fffe000001, steps removed : 0, time source : 0xa0 + 4 19:44:10.034745 IP 11.0.0.9.319 > 224.0.1.129.319: PTPv2, v1 compat : no, msg type : sync msg, length : 44, domain : 0, reserved1 : 0, Flags [two step], NS correction : 0, sub NS correction : 0, sub NS correction : 0x0, clock identity : 0x200fffe000001, port id : 1, seq id : 1067, control : 0 (sync msg), log message interval : 0 originTimeStamp : 0 seconds, 0 nanoseconds + 5 19:44:10.034796 IP 11.0.0.9.320 > 224.0.1.129.320: PTPv2, v1 compat : no, msg type : follow up msg, length : 44, domain : 0, reserved1 : 0, Flags [none], NS correction : 0, sub NS correction : 0, sub NS correction : 0x0, clock identity : 0x200fffe000001, port id : 1, seq id : 1067, control : 2 (peer delay req msg), log message interval : 0 preciseOriginTimeStamp : 1516736650 seconds, 34751783 nanoseconds diff --git a/tests/ptp.pcap b/tests/ptp.pcap Binary files differnew file mode 100644 index 00000000..c53f18b0 --- /dev/null +++ b/tests/ptp.pcap |