diff options
Diffstat (limited to 'contrib/ntp/sntp/tests/data')
-rw-r--r-- | contrib/ntp/sntp/tests/data/debug-input-lfp-bin | 3 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/debug-input-lfp-dec | 3 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/debug-input-pkt | 8 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/key-test-ascii | 2 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/key-test-comments | 3 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/key-test-empty | 0 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/key-test-hex | 3 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/key-test-invalid-hex | 2 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/kod-expected-multiple | 3 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/kod-expected-single | 1 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/kod-test-blanks | 6 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/kod-test-correct | 2 | ||||
-rw-r--r-- | contrib/ntp/sntp/tests/data/kod-test-empty | 0 |
13 files changed, 36 insertions, 0 deletions
diff --git a/contrib/ntp/sntp/tests/data/debug-input-lfp-bin b/contrib/ntp/sntp/tests/data/debug-input-lfp-bin new file mode 100644 index 000000000000..99d559cc23d2 --- /dev/null +++ b/contrib/ntp/sntp/tests/data/debug-input-lfp-bin @@ -0,0 +1,3 @@ +-------------------------------------------------------------------------------- +0: 00000000 1: 00000000 2: 00000000 3: 00111111 4: 00000000 5: 00000000 6: 00000000 7: 01111111 +-------------------------------------------------------------------------------- diff --git a/contrib/ntp/sntp/tests/data/debug-input-lfp-dec b/contrib/ntp/sntp/tests/data/debug-input-lfp-dec new file mode 100644 index 000000000000..6e81c854347f --- /dev/null +++ b/contrib/ntp/sntp/tests/data/debug-input-lfp-dec @@ -0,0 +1,3 @@ +-------------------------------------------------------------------------------- +0: 0 1: 0 2: 24 3: 166 4: 0 5: 4 6: 181 7: 22 +-------------------------------------------------------------------------------- diff --git a/contrib/ntp/sntp/tests/data/debug-input-pkt b/contrib/ntp/sntp/tests/data/debug-input-pkt new file mode 100644 index 000000000000..ff61b75263cb --- /dev/null +++ b/contrib/ntp/sntp/tests/data/debug-input-pkt @@ -0,0 +1,8 @@ +-------------------------------------------------------------------------------- +0: 24 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 +8: 0 9: 0 10: 0 11: 0 12: 0 13: 0 14: 0 15: 0 +16: 0 17: 0 18: 0 19: 0 20: 0 21: 0 22: 0 23: 0 +24: 0 25: 0 26: 0 27: 0 28: 0 29: 0 30: 0 31: 0 +32: 0 33: 0 34: 0 35: 0 36: 0 37: 0 38: 0 39: 0 +40: 0 41: 0 42: 0 43: 8 44: 7f 45: ff 46: ff 47: ff +-------------------------------------------------------------------------------- diff --git a/contrib/ntp/sntp/tests/data/key-test-ascii b/contrib/ntp/sntp/tests/data/key-test-ascii new file mode 100644 index 000000000000..9240c819462b --- /dev/null +++ b/contrib/ntp/sntp/tests/data/key-test-ascii @@ -0,0 +1,2 @@ +50 MD5 asciikeyOne +40 MD5 asciikeyTwo diff --git a/contrib/ntp/sntp/tests/data/key-test-comments b/contrib/ntp/sntp/tests/data/key-test-comments new file mode 100644 index 000000000000..437049effedc --- /dev/null +++ b/contrib/ntp/sntp/tests/data/key-test-comments @@ -0,0 +1,3 @@ +# This is an initial comment, this file should contain 2 keys. +34 MD5 xyz #This is a comment after an ASCII key. +10 MD5 010101010101010101010101010101 #Comment after hex key. diff --git a/contrib/ntp/sntp/tests/data/key-test-empty b/contrib/ntp/sntp/tests/data/key-test-empty new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/contrib/ntp/sntp/tests/data/key-test-empty diff --git a/contrib/ntp/sntp/tests/data/key-test-hex b/contrib/ntp/sntp/tests/data/key-test-hex new file mode 100644 index 000000000000..fb704c5fd94e --- /dev/null +++ b/contrib/ntp/sntp/tests/data/key-test-hex @@ -0,0 +1,3 @@ +10 MD5 0123456789abcdef0123456789 +20 MD5 111111111111111111111111111111 +30 MD5 01010101010101010101010101 diff --git a/contrib/ntp/sntp/tests/data/key-test-invalid-hex b/contrib/ntp/sntp/tests/data/key-test-invalid-hex new file mode 100644 index 000000000000..0933ed00bc7e --- /dev/null +++ b/contrib/ntp/sntp/tests/data/key-test-invalid-hex @@ -0,0 +1,2 @@ +30 MD5 0101010101010101010101010101gh +10 MD5 010101010101010101010101010101 diff --git a/contrib/ntp/sntp/tests/data/kod-expected-multiple b/contrib/ntp/sntp/tests/data/kod-expected-multiple new file mode 100644 index 000000000000..c6ba292779eb --- /dev/null +++ b/contrib/ntp/sntp/tests/data/kod-expected-multiple @@ -0,0 +1,3 @@ +000000000000abcd DENY 192.0.2.1 +000000000000abcd RSTR 192.0.2.5 +000000000000abcd RATE example.com diff --git a/contrib/ntp/sntp/tests/data/kod-expected-single b/contrib/ntp/sntp/tests/data/kod-expected-single new file mode 100644 index 000000000000..8ad3c7ccc17d --- /dev/null +++ b/contrib/ntp/sntp/tests/data/kod-expected-single @@ -0,0 +1 @@ +0000000000000001 DENY host1 diff --git a/contrib/ntp/sntp/tests/data/kod-test-blanks b/contrib/ntp/sntp/tests/data/kod-test-blanks new file mode 100644 index 000000000000..5c20e7271e57 --- /dev/null +++ b/contrib/ntp/sntp/tests/data/kod-test-blanks @@ -0,0 +1,6 @@ + +0000000012345678 DENY 192.0.2.5 + +0000000000000fff RSTR 192.0.2.100 +000000000000abcd DENY example.com + diff --git a/contrib/ntp/sntp/tests/data/kod-test-correct b/contrib/ntp/sntp/tests/data/kod-test-correct new file mode 100644 index 000000000000..8a3e230ea0f9 --- /dev/null +++ b/contrib/ntp/sntp/tests/data/kod-test-correct @@ -0,0 +1,2 @@ +0000000012345678 DENY 192.0.2.5 +0000000000000fff RSTR 192.0.2.100 diff --git a/contrib/ntp/sntp/tests/data/kod-test-empty b/contrib/ntp/sntp/tests/data/kod-test-empty new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/contrib/ntp/sntp/tests/data/kod-test-empty |