aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPavel Odintsov <pavel.odintsov@gmail.com>2015-07-29 14:19:32 +0300
committerPavel Odintsov <pavel.odintsov@gmail.com>2015-07-29 14:19:32 +0300
commit471ea815943089e8132840164386cd3e13e0dbbe (patch)
treef5f8ff22a5e78c87af13478fb9787c9c2bba3f3f /tests
parentdc1d7bf47f6476401e4d23b17e0b29d6633a6e4f (diff)
Enhance NTP support, add protocol version identification; Add pcap examples for NTPv2, NTPv3, NTPv4; Fix bug with identification of NTP monlist packets as QUIC
Diffstat (limited to 'tests')
-rwxr-xr-xtests/do.sh2
-rw-r--r--tests/pcap/NTPv2.pcapbin0 -> 450 bytes
-rw-r--r--tests/pcap/NTPv3.pcapbin0 -> 130 bytes
-rw-r--r--tests/pcap/NTPv4.pcapbin0 -> 130 bytes
-rw-r--r--tests/result/NTPv2.pcap.out3
-rw-r--r--tests/result/NTPv3.pcap.out3
-rw-r--r--tests/result/NTPv4.pcap.out3
7 files changed, 10 insertions, 1 deletions
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
--- /dev/null
+++ b/tests/pcap/NTPv2.pcap
Binary files differ
diff --git a/tests/pcap/NTPv3.pcap b/tests/pcap/NTPv3.pcap
new file mode 100644
index 000000000..483e349af
--- /dev/null
+++ b/tests/pcap/NTPv3.pcap
Binary files differ
diff --git a/tests/pcap/NTPv4.pcap b/tests/pcap/NTPv4.pcap
new file mode 100644
index 000000000..6f91a111e
--- /dev/null
+++ b/tests/pcap/NTPv4.pcap
Binary files 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]