From 471ea815943089e8132840164386cd3e13e0dbbe Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Wed, 29 Jul 2015 14:19:32 +0300 Subject: Enhance NTP support, add protocol version identification; Add pcap examples for NTPv2, NTPv3, NTPv4; Fix bug with identification of NTP monlist packets as QUIC --- tests/do.sh | 2 +- tests/pcap/NTPv2.pcap | Bin 0 -> 450 bytes tests/pcap/NTPv3.pcap | Bin 0 -> 130 bytes tests/pcap/NTPv4.pcap | Bin 0 -> 130 bytes tests/result/NTPv2.pcap.out | 3 +++ tests/result/NTPv3.pcap.out | 3 +++ tests/result/NTPv4.pcap.out | 3 +++ 7 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/pcap/NTPv2.pcap create mode 100644 tests/pcap/NTPv3.pcap create mode 100644 tests/pcap/NTPv4.pcap create mode 100644 tests/result/NTPv2.pcap.out create mode 100644 tests/result/NTPv3.pcap.out create mode 100644 tests/result/NTPv4.pcap.out (limited to 'tests') diff --git a/tests/do.sh b/tests/do.sh index 764b049f9..bbd44edc6 100755 --- a/tests/do.sh +++ b/tests/do.sh @@ -36,4 +36,4 @@ check_results() { build_results check_results -exit $RC \ No newline at end of file +exit $RC diff --git a/tests/pcap/NTPv2.pcap b/tests/pcap/NTPv2.pcap new file mode 100644 index 000000000..ec22e2cda Binary files /dev/null and b/tests/pcap/NTPv2.pcap differ diff --git a/tests/pcap/NTPv3.pcap b/tests/pcap/NTPv3.pcap new file mode 100644 index 000000000..483e349af Binary files /dev/null and b/tests/pcap/NTPv3.pcap differ diff --git a/tests/pcap/NTPv4.pcap b/tests/pcap/NTPv4.pcap new file mode 100644 index 000000000..6f91a111e Binary files /dev/null and b/tests/pcap/NTPv4.pcap differ diff --git a/tests/result/NTPv2.pcap.out b/tests/result/NTPv2.pcap.out new file mode 100644 index 000000000..960fbe062 --- /dev/null +++ b/tests/result/NTPv2.pcap.out @@ -0,0 +1,3 @@ +NTP 1 410 1 + + 1 UDP 78.46.76.2:80 <-> 208.104.95.10:123 [proto: 9/NTP][1 pkts/410 bytes] diff --git a/tests/result/NTPv3.pcap.out b/tests/result/NTPv3.pcap.out new file mode 100644 index 000000000..91d817e5e --- /dev/null +++ b/tests/result/NTPv3.pcap.out @@ -0,0 +1,3 @@ +NTP 1 90 1 + + 1 UDP 78.46.76.2:80 <-> 175.144.140.29:123 [proto: 9/NTP][1 pkts/90 bytes] diff --git a/tests/result/NTPv4.pcap.out b/tests/result/NTPv4.pcap.out new file mode 100644 index 000000000..fba0fd419 --- /dev/null +++ b/tests/result/NTPv4.pcap.out @@ -0,0 +1,3 @@ +NTP 1 90 1 + + 1 UDP 78.46.76.11:123 <-> 85.22.62.120:123 [proto: 9/NTP][1 pkts/90 bytes] -- cgit v1.2.3