Browse Source

cleanup: testdata was moved under tests/.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@975 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
4d7008a59b
34 changed files with 0 additions and 555 deletions
  1. 0 22
      src/lib/dns/cpp/testdata/message_fromWire1
  2. 0 22
      src/lib/dns/cpp/testdata/message_toWire1
  3. 0 14
      src/lib/dns/cpp/testdata/name_fromWire1
  4. 0 12
      src/lib/dns/cpp/testdata/name_fromWire10
  5. 0 12
      src/lib/dns/cpp/testdata/name_fromWire11
  6. 0 13
      src/lib/dns/cpp/testdata/name_fromWire12
  7. 0 5
      src/lib/dns/cpp/testdata/name_fromWire13
  8. 0 7
      src/lib/dns/cpp/testdata/name_fromWire14
  9. 0 15
      src/lib/dns/cpp/testdata/name_fromWire2
  10. 0 11
      src/lib/dns/cpp/testdata/name_fromWire3_1
  11. 0 13
      src/lib/dns/cpp/testdata/name_fromWire3_2
  12. 0 45
      src/lib/dns/cpp/testdata/name_fromWire4
  13. 0 14
      src/lib/dns/cpp/testdata/name_fromWire6
  14. 0 6
      src/lib/dns/cpp/testdata/name_fromWire7
  15. 0 27
      src/lib/dns/cpp/testdata/name_fromWire8
  16. 0 12
      src/lib/dns/cpp/testdata/name_fromWire9
  17. 0 12
      src/lib/dns/cpp/testdata/name_toWire1
  18. 0 14
      src/lib/dns/cpp/testdata/name_toWire2
  19. 0 14
      src/lib/dns/cpp/testdata/name_toWire3
  20. 0 16
      src/lib/dns/cpp/testdata/name_toWire4
  21. 0 44
      src/lib/dns/cpp/testdata/rdata_cname_fromWire
  22. 0 19
      src/lib/dns/cpp/testdata/rdata_in_a_fromWire
  23. 0 9
      src/lib/dns/cpp/testdata/rdata_in_aaaa_fromWire
  24. 0 15
      src/lib/dns/cpp/testdata/rdata_mx_fromWire
  25. 0 12
      src/lib/dns/cpp/testdata/rdata_mx_toWire1
  26. 0 44
      src/lib/dns/cpp/testdata/rdata_ns_fromWire
  27. 0 20
      src/lib/dns/cpp/testdata/rdata_soa_fromWire
  28. 0 9
      src/lib/dns/cpp/testdata/rdata_txt_fromWire
  29. 0 4
      src/lib/dns/cpp/testdata/rrcode16_fromWire1
  30. 0 4
      src/lib/dns/cpp/testdata/rrcode16_fromWire2
  31. 0 4
      src/lib/dns/cpp/testdata/rrcode32_fromWire1
  32. 0 4
      src/lib/dns/cpp/testdata/rrcode32_fromWire2
  33. 0 23
      src/lib/dns/cpp/testdata/rrset_toWire1
  34. 0 38
      src/lib/dns/cpp/testdata/rrset_toWire2

+ 0 - 22
src/lib/dns/cpp/testdata/message_fromWire1

@@ -1,22 +0,0 @@
-#
-# A simple DNS query message
-# ID = 0x1035
-# QR=1 (response), Opcode=0, AA=1, RD=1 (other fields are 0)
-# QDCOUNT=1, ANCOUNT=2, other COUNTS=0
-# Question: test.example.com. IN A
-# Answer:
-#  test.example.com. 3600 IN A 192.0.2.1
-#  test.example.com. 7200 IN A 192.0.2.2
-#
-1035 8500
-0001 0002 0000 0000
-#(4) t  e  s  t (7) e  x  a  m  p  l  e (3) c  o  m  .
- 04 74 65 73 74 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-0001 0001
-# same name, fully compressed
-c0 0c
-# TTL=3600, A, IN, RDLENGTH=4, RDATA
-0001 0001 00000e10 0004 c0 00 02 01
-# mostly same, with the slight difference in RDATA and TTL
-c0 0c
-0001 0001 00001c20 0004 c0 00 02 02

+ 0 - 22
src/lib/dns/cpp/testdata/message_toWire1

@@ -1,22 +0,0 @@
-#
-# A simple DNS query message
-# ID = 0x1035
-# QR=1 (response), Opcode=0, AA=1, RD=1 (other fields are 0)
-# QDCOUNT=1, ANCOUNT=2, other COUNTS=0
-# Question: test.example.com. IN A
-# Answer:
-#  test.example.com. 3600 IN A 192.0.2.1
-#  test.example.com. 7200 IN A 192.0.2.2
-#
-1035 8500
-0001 0002 0000 0000
-#(4) t  e  s  t (7) e  x  a  m  p  l  e (3) c  o  m  .
- 04 74 65 73 74 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-0001 0001
-# same name, fully compressed
-c0 0c
-# TTL=3600, A, IN, RDLENGTH=4, RDATA
-0001 0001 00000e10 0004 c0 00 02 01
-# mostly same, with the slight difference in RDATA
-c0 0c
-0001 0001 00000e10 0004 c0 00 02 02

+ 0 - 14
src/lib/dns/cpp/testdata/name_fromWire1

@@ -1,14 +0,0 @@
-#
-# a global14 compression pointer
-#
-000a85800001000300000003
-#  V i x   c o m
-0356697803636f6d0000020001c00c00
-02000100000e10000b05697372763102
-7061c00cc00c0002000100000e100009
-066e732d657874c00cc00c0002000100
-000e10000e036e733104676e61630363
-6f6d00c0250001000100000e100004cc
-98b886c03c0001000100000e100004cc
-98b840c051000100010002a14a0004c6
-97f8f6

+ 0 - 12
src/lib/dns/cpp/testdata/name_fromWire10

@@ -1,12 +0,0 @@
-#
-# Too large name; should trigger an exception.
-#
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 040102030400

+ 0 - 12
src/lib/dns/cpp/testdata/name_fromWire11

@@ -1,12 +0,0 @@
-#
-# A name with possible maximum number of labels; should be accepted safely.
-#
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 01000100010001000100 01000100010001000100
-01000100010001000100 0100010000

+ 0 - 13
src/lib/dns/cpp/testdata/name_fromWire12

@@ -1,13 +0,0 @@
-#
-# Wire format including an invalid label length
-#
-#(1) a (7) e  x  a  m  p  l  e
- 01 61 07 65 78 61 6d 70 6c 65
-# invalid label length: 64
-40
-# a "label" of 64 characters: shouldn't be parsed
-00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
-10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
-20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
-30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
-00

+ 0 - 5
src/lib/dns/cpp/testdata/name_fromWire13

@@ -1,5 +0,0 @@
-#
-# A name including all "printable" characters
-#
-
-3f2122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f1f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e00

+ 0 - 7
src/lib/dns/cpp/testdata/name_fromWire14

@@ -1,7 +0,0 @@
-#
-# A name including all "non-printable" characters
-#
-
-3f000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f207f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c
-3f9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadb
-24dcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff00

+ 0 - 15
src/lib/dns/cpp/testdata/name_fromWire2

@@ -1,15 +0,0 @@
-#
-# bogus label character (looks like a local compression pointer)
-#
-000a85800001000300000003
-#this is the bogus label character:
-83
-76697803636f6d0000020001c00c00
-02000100000e10000b05697372763102
-7061c00cc00c0002000100000e100009
-066e732d657874c00cc00c0002000100
-000e10000e036e733104676e61630363
-6f6d00c0250001000100000e100004cc
-98b886c03c0001000100000e100004cc
-98b840c051000100010002a14a0004c6
-97f8f6

+ 0 - 11
src/lib/dns/cpp/testdata/name_fromWire3_1

@@ -1,11 +0,0 @@
-#
-# a bad compression pointer starting with the bits 1111 (too big pointer)
-#
-000a85800001000300000003
-03766978 03636f6d 00 0002 0001
-f00c 0002 0001 0000 0e10 000b 056973727631 027061 c00c
-c00c 0002 0001 0000 0e10 0009 066e732d657874 c00c
-c00c 0002 0001 0000 0e10 000e 036e7331 04676e6163 03636f6d 00
-c025 0001 0001 0000 0e10 0004 cc98b886
-c03c 0001 0001 0000 0e10 0004 cc98b840
-c051 0001 0001 0002 a14a 0004 c697f8f6

+ 0 - 13
src/lib/dns/cpp/testdata/name_fromWire3_2

@@ -1,13 +0,0 @@
-#
-# a bad compression pointer due to forward reference of 0x30 to
-# another compression pointer with a valid backreference
-#
-000a85800001000300000003
-03766978 03636f6d 00 0002 0001
-#'30' is the forward reference, 'c00c' at the end is the valid pointer:
-c030 0002 0001 0000 0e10 000b 056973727631 027061 c00c
-c00c 0002 0001 0000 0e10 0009 066e732d657874 c00c
-c00c 0002 0001 0000 0e10 000e 036e7331 04676e6163 03636f6d 00
-c025 0001 0001 0000 0e10 0004 cc98b886
-c03c 0001 0001 0000 0e10 0004 cc98b840
-c051 0001 0001 0002 a14a 0004 c697f8f6

+ 0 - 45
src/lib/dns/cpp/testdata/name_fromWire4

@@ -1,45 +0,0 @@
-#
-# invalid name length, pointer at offset 0x0226 points to
-# long name at offset 0x25
-#
-000a 8580 0001 0003 0000 0001
-03 766978 03 636f6d 00 0002 0001
-c00c 0002 0001 00000e10
-0101
-# long name starts here
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a
-03616263 0358595a 03616263 0358595a
-03414243 0378797a 03414243 0378797a 00
-# compression pointer start here and refers back to long name
-c023 0002 0001 00000e10 0009 066e732d657874 c00c
-c00c 0002 0001 00000e10 000e 036e733104676e616303636f6d00
-c025 0001 0001 00000e10 0004 cc98b886

+ 0 - 14
src/lib/dns/cpp/testdata/name_fromWire6

@@ -1,14 +0,0 @@
-#
-# a bad pointer
-#
-000a85800001000300000003
-# the bad pointer is f00c (offset = 300c) which is too large
-0376697803636f6d0000020001 f00c 00
-02000100000e10000b05697372763102
-7061c00cc00c0002000100000e100009
-066e732d657874c00cc00c0002000100
-000e10000e036e733104676e61630363
-6f6d00c0250001000100000e100004cc
-98b886c03c0001000100000e100004cc
-98b840c051000100010002a14a0004c6
-97f8f6

+ 0 - 6
src/lib/dns/cpp/testdata/name_fromWire7

@@ -1,6 +0,0 @@
-#
-# input ends unexpectedly
-#
-000a85800001000300000003
-# parser will start at the ending 'c0', which is an incomplete sequence.
-0376697803636f6d0000020001 c0

+ 0 - 27
src/lib/dns/cpp/testdata/name_fromWire8

@@ -1,27 +0,0 @@
-#
-# many hops of compression.  absolutely many, but should be decompressed.
-#
-000a85800001000300000013
-03 766978 03 636f6d 00 0002 0001
-c00c 0002 0001 00000e10 000b 056973727631027061 c00c
-c019 0002 0001 00000e10 0009 066e732d657874 c00c
-c030 0002 0001 00000e10 000e 036e7331 04676e6163 03636f6d 00
-c045 0001 0001 00000e10 0004 cc98b886
-c05f 0001 0001 00000e10 0004 cc98b840
-c06f 0001 0001 0002a14a 0004 c697f8f6
-c07f 0001 0001 0002a14a 0004 c697f8f6
-c08f 0001 0001 0002a14a 0004 c697f8f6
-c09f 0001 0001 0002a14a 0004 c697f8f6
-c0af 0001 0001 0002a14a 0004 c697f8f6
-c0bf 0001 0001 0002a14a 0004 c697f8f6
-c0cf 0001 0001 0002a14a 0004 c697f8f6
-c0df 0001 0001 0002a14a 0004 c697f8f6
-c0ef 0001 0001 0002a14a 0004 c697f8f6
-c0ff 0001 0001 0002a14a 0004 c697f8f6
-c10f 0001 0001 0002a14a 0004 c697f8f6
-c11f 0001 0001 0002a14a 0004 c697f8f6
-c12f 0001 0001 0002a14a 0004 c697f8f6
-c13f 0001 0001 0002a14a 0004 c697f8f6
-c14f 0001 0001 0002a14a 0004 c697f8f6
-c15f 0001 0001 0002a14a 0004 c697f8f6
-c16f 0001 0001 0002a14a 0004 c697f8f6

+ 0 - 12
src/lib/dns/cpp/testdata/name_fromWire9

@@ -1,12 +0,0 @@
-#
-# A possible longest name; should be accepted safely.
-#
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 09010203040506070809 09010203040506070809
-09010203040506070809 0301020300

+ 0 - 12
src/lib/dns/cpp/testdata/name_toWire1

@@ -1,12 +0,0 @@
-#
-# Rendering 3 names with compression.  [x] means a compression pointer pointing
-# to offset 'x'.
-#
-#bytes:
-# 0 1 2 3 4 5 6 7 8 9 a b c d e
-#(1)a(7)e x a m p l e(3)c o m .
- 0161076578616d706c6503636f6d00
-#(1)b [2]
- 0162c002
-#   a . e x a m p l e . o r g .
- 0161076578616d706c65036f726700

+ 0 - 14
src/lib/dns/cpp/testdata/name_toWire2

@@ -1,14 +0,0 @@
-#
-# Rendering names in a large buffer.  [x] means a compression pointer pointing
-# to offset 'x'.
-#
-#bytes:
-#3f 40
-#ff 00
-#(1) a (7) e  x  a  m  p  l  e (3) c  o  m  .
- 01 61 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-#[3fff] = a.example.com: can be compressed
- ffff
-#(1) b(7)  e  x  a  m  p  l  e (3) c  o  m  .; cannot compress as the pointer
-#                                            (0x4001) would exceed 0x4000
- 01 62 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00

+ 0 - 14
src/lib/dns/cpp/testdata/name_toWire3

@@ -1,14 +0,0 @@
-#
-# Rendering names including one explicitly uncompressed.
-# [x] means a compression pointer pointing to offset 'x'.
-#
-# 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 (bytes)
-#(1) a (7) e  x  a  m  p  l  e (3) c  o  m  .
- 01 61 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-
-#15                                        29 (bytes)
-#(1) b(7)  e  x  a  m  p  l  e (3) c  o  m  .; specified to be not compressed,
-#                                              but can be pointed to from others
- 01 62 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-#[0f] referring to the second (uncompressed name)
- c0 0f

+ 0 - 16
src/lib/dns/cpp/testdata/name_toWire4

@@ -1,16 +0,0 @@
-#
-# Rendering 3 names with compression, including one resulting in a chain of
-# pointers (the last one).
-# legend: [x] means a compression pointer pointing to offset 'x'.
-#bytes:
-#00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e
-#(1) a (7) e  x  a  m  p  l  e (3) c  o  m  .
- 01 61 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-
-#0f 10 11 12
-#(1) b  [2] (b.example.com.)
- 01 62 c0 02
-
-#13 14
-# [0f]: (b.example.com.)
- c0 0f

+ 0 - 44
src/lib/dns/cpp/testdata/rdata_cname_fromWire

@@ -1,44 +0,0 @@
-#
-# various kinds of CNAME RDATA stored in an input buffer
-#
-# Valid non-compressed RDATA for cn.example.com.
-# RDLENGHT=16 bytes
-# 0  1
- 00 10
-# 2  3  4  5  6  7  8  9 10  1  2  3  4  5  6  7(bytes)
-#(2) c  n (7) e  x  a  m  p  l  e (3) c  o  m  .
- 02 63 6e 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-#
-# short length
-# 8  9
- 00 0f
-#20  1  2  3  4  5  6  7  8  9 30  1  2  3  4  5
- 02 63 6e 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-#
-# length too long
-# 6  7
- 00 11
-#
-# 8  9 40  1  2  3  4  5  6  7  8  9 50  1  2  3  4
- 02 63 6e 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 00
-#
-# Valid compressed CNAME name: 'cn2' + pointer
-# 5  6
- 00 06
-# 7  8  9 60  1  2
-#(3) c  n  2 ptr=5
- 03 63 6e 32 c0 05
-#
-# Valid compressed CNAME name but RDLENGTH is incorrect: it must be the length
-# of the sequence from the head to the pointer, not the decompressed name
-# length.
-# 3  4
- 00 11
-# 5  6  7  8  9 70
- 03 63 6e 32 c0 05
-# incomplete name (no trailing dot).  this can be tested only at the end of
-# the buffer.
-# 1  2
- 00 0f
-# 3  4  5  6  7  8  9 80  1  2  3  4  5  6  7
- 02 63 6e 07 65 78 61 6d 70 6c 65 03 63 6f 6d

+ 0 - 19
src/lib/dns/cpp/testdata/rdata_in_a_fromWire

@@ -1,19 +0,0 @@
-#
-# various kinds of IN/A RDATA stored in an input buffer
-#
-# valid RDATA for 192.0.2.1
-#
-# 0  1  2  3  4  5 (bytes)
- 00 04 c0 00 02 01
-#
-# short length
-# 6  7  8  9 10 11 (bytes)
- 00 03 c0 00 02 01
-#
-# length too long
-#12 13 14 15 16 17 18
- 00 05 c0 00 02 01 00
-#
-# short buffer (this can be tested only at the end of the buffer)
-#19 20 21 22 23
- 00 04 c0 00 02

+ 0 - 9
src/lib/dns/cpp/testdata/rdata_in_aaaa_fromWire

@@ -1,9 +0,0 @@
-#
-# various kinds of IN/AAAA RDATA stored in an input buffer
-#
-# valid RDATA for 2001:db8::1234
-#
-#RDLENGTH=16
-0010
-#IPv6 address
-2001 0db8 0000 0000 0000 0000 0000 1234

+ 0 - 15
src/lib/dns/cpp/testdata/rdata_mx_fromWire

@@ -1,15 +0,0 @@
-#
-# various kinds of MX RDATA stored in an input buffer
-#
-# Valid RDATA for "10 mail.example.com"
-#
-# RDLENGHT=18 bytes
-# 0  1
- 00 12
-#  2  3
-# PREFERENCE: 10
-  00 0a
-# EXCHANGE: non compressed
-# 4  5  6  7  8  9 10  1  2  3  4  5  6  7  8  9 (bytes)
-#(4) m  x (7) e  x  a  m  p  l  e (3) c  o  m  .
- 02 6d 78 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00

+ 0 - 12
src/lib/dns/cpp/testdata/rdata_mx_toWire1

@@ -1,12 +0,0 @@
-#
-# compressed MX RDATA stored in an output buffer
-#
-# sentinel name: example.com.
-# 0  1  2  3  4  5  6  7  8  9 10  1  2 (bytes)
-#(7) e  x  a  m  p  l  e (3) c  o  m  .
- 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-# PREFERENCE: 10
-  00 0a
-# EXCHANGE: compressed
-#(4) m  x ptr=0
- 02 6d 78 c0 00

+ 0 - 44
src/lib/dns/cpp/testdata/rdata_ns_fromWire

@@ -1,44 +0,0 @@
-#
-# various kinds of NS RDATA stored in an input buffer
-#
-# Valid non-compressed RDATA for ns.example.com.
-# RDLENGHT=16 bytes
-# 0  1
- 00 10
-# 2  3  4  5  6  7  8  9 10  1  2  3  4  5  6  7(bytes)
-#(2) n  s (7) e  x  a  m  p  l  e (3) c  o  m  .
- 02 6e 73 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-#
-# short length
-# 8  9
- 00 0f
-#20  1  2  3  4  5  6  7  8  9 30  1  2  3  4  5
- 02 6e 73 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-#
-# length too long
-# 6  7
- 00 11
-#
-# 8  9 40  1  2  3  4  5  6  7  8  9 50  1  2  3  4
- 02 6e 73 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 00
-#
-# Valid compressed NS name: 'ns2' + pointer
-# 5  6
- 00 06
-# 7  8  9 60  1  2
-#(3) n  s  2 ptr=5
- 03 6e 73 32 c0 05
-#
-# Valid compressed NS name but RDLENGTH is incorrect: it must be the length
-# of the sequence from the head to the pointer, not the decompressed name
-# length.
-# 3  4
- 00 11
-# 5  6  7  8  9 70
- 03 6e 73 32 c0 05
-# incomplete name (no trailing dot).  this can be tested only at the end of
-# the buffer.
-# 1  2
- 00 0f
-# 3  4  5  6  7  8  9 80  1  2  3  4  5  6  7
- 02 6e 73 07 65 78 61 6d 70 6c 65 03 63 6f 6d

+ 0 - 20
src/lib/dns/cpp/testdata/rdata_soa_fromWire

@@ -1,20 +0,0 @@
-#
-# various kinds of SOA RDATA stored in an input buffer
-#
-# Valid compressed RDATA for "(ns.example.com. root.example.com.
-# 2010012601 3600 300 3600000 1200)"
-# RDLENGHT=43 bytes
-# 0  1
- 00 2b
-# MNAME: non compressed
-# 2  3  4  5  6  7  8  9 10  1  2  3  4  5  6  7(bytes)
-#(2) n  s (7) e  x  a  m  p  l  e (3) c  o  m  .
- 02 6e 73 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-# RNAME: compressed
-# 8  9  20  1  2  3  4
-#(4)  r  o  o  t ptr=5
-  04 72 6f 6f 74 c0 05
-# other numeric parameters
-#      28      32        36        40       44
-# serial, refresh,    retry,  expire,  minimum
- 77ce5bb9 00000e10 0000012c  0036ee80 000004b0

+ 0 - 9
src/lib/dns/cpp/testdata/rdata_txt_fromWire

@@ -1,9 +0,0 @@
-#
-# various kinds of TXT RDATA stored in an input buffer
-#
-# Valid RDATA for "Test String"
-#
-# RDLENGHT=12 bytes
- 00 0c
-#    T  e  s  t     S  t  r  i  n  g
- 0b 54 65 73 74 20 53 74 72 69 6e 67

+ 0 - 4
src/lib/dns/cpp/testdata/rrcode16_fromWire1

@@ -1,4 +0,0 @@
-#
-# a 16 bit wire-format data (network byte order)
-#
-1234

+ 0 - 4
src/lib/dns/cpp/testdata/rrcode16_fromWire2

@@ -1,4 +0,0 @@
-#
-# an incomplete segment for a 16 bit wire-format data
-#
-12

+ 0 - 4
src/lib/dns/cpp/testdata/rrcode32_fromWire1

@@ -1,4 +0,0 @@
-#
-# a 32 bit wire-format data (network byte order)
-#
-12345678

+ 0 - 4
src/lib/dns/cpp/testdata/rrcode32_fromWire2

@@ -1,4 +0,0 @@
-#
-# an incomplete segment for a 32 bit wire-format data
-#
-123456

+ 0 - 23
src/lib/dns/cpp/testdata/rrset_toWire1

@@ -1,23 +0,0 @@
-#
-# Rendering an IN/A RRset containing 2 RRs:
-# test.example.com. 3600 IN A 192.0.2.1
-# test.example.com. 3600 IN A 192.0.2.2
-#
-#(4) t  e  s  t (7) e  x  a  m  p  l  e (3) c  o  m  .
- 04 74 65 73 74 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-# type/class: A = 1, IN = 1
-00 01 00 01
-# TTL: 3600
-00 00 0e 10
-#6  7
-# RDLENGTH: 4
-00 04
-# RDATA: 192.0.2.1
-c0 00 02 01
-#
-# 2nd RR: mostly the same except the RDATA
-04 74 65 73 74 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-00 01 00 01
-00 00 0e 10
-00 04
-c0 00 02 02

+ 0 - 38
src/lib/dns/cpp/testdata/rrset_toWire2

@@ -1,38 +0,0 @@
-#
-# Rendering an IN/A RRset and NS RRset as follows:
-# test.example.com. 3600 IN A 192.0.2.1
-# test.example.com. 3600 IN A 192.0.2.2
-# example.com. 1D IN NS ns.example.com.
-# Names will be compressed when possible.
-#
-# 0  1  2  3  4  5
-#(4) t  e  s  t (7) e  x  a  m  p  l  e (3) c  o  m  .
- 04 74 65 73 74 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
-# type/class: A = 1, IN = 1
-00 01 00 01
-# TTL: 3600
-00 00 0e 10
-#6  7
-# RDLENGTH: 4
-00 04
-# RDATA: 192.0.2.1
-c0 00 02 01
-#
-# 2nd RR: the owner name is compresed
-c0 00
-00 01 00 01
-00 00 0e 10
-00 04
-c0 00 02 02
-# 3rd RR: the owner name and NS name are compressed
-# pointing to the 5th octet of the owner name of the 1st RR
-c0 05
-# type/class: NS = 2, IN = 1
-00 02 00 01
-# TTL: 1D = 86400sec = 0x15180
-00 01 51 80
-# RDLENGTH: 5 octets
-00 05
-# NSDNAME: "ns." + compression pointer
-#(2) n  s
- 02 6e 73 c0 05