summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/tests/testdata/rdata_dname_fromWire
blob: 1c899bf19d67cea6d33fc952b6339d37e5c99626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# various kinds of DNAME RDATA stored in an input buffer
#
# Valid non-compressed RDATA for dn.example.com.
# RDLENGTH=16 bytes
# 0  1
 00 10
# 2  3  4  5  6  7  8  9 10  1  2  3  4  5  6  7(bytes)
#(2) d  n (7) e  x  a  m  p  l  e (3) c  o  m  .
 02 64 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 64 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 64 6e 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 00
#
# Valid compressed DNAME name: 'dn2' + pointer
# 5  6
 00 06
# 7  8  9 60  1  2
#(3) d  n  2 ptr=5
 03 64 6e 32 c0 05
#
# Valid compressed DNAME 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 64 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 64 6e 07 65 78 61 6d 70 6c 65 03 63 6f 6d