File: test_packets.5

package info (click to toggle)
unbound 1.6.0-2~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 20,444 kB
  • sloc: ansic: 79,862; sh: 5,040; yacc: 1,900; makefile: 1,315; python: 1,302; perl: 141
file content (70 lines) | stat: -rw-r--r-- 2,359 bytes parent folder | download | duplicates (12)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
; Hand made test packets.
; By Wouter Wijngaards.
; These DNS packets contain interesting compression cases.
; 
;-- next packet --
; 0. A valid packet (handmade)
; id flags qd  an   ns  ar   -- header
4242 0000 0001 0001 0000 0000
; query: qname example.com. qtype A(1) qclass IN(1)
07 6578616d706c65 03 636f6d 00 0001 0001
; answer: example.com          type class ttl rdatalen 10.x address.
07 6578616d706c65 03 636f6d 00 0001 0001  00000101 0004 0a203040

;-- next packet --
; 0b. correct compression from answer to query.
4242 0000 0001 0001 0000 0000
07 6578616d706c65 03 636f6d 00 0001 0001
c00c 0001 0001  00000101 0004 0a203040

;-- next packet --
; 1. Compression from query to answer.
4242 0000 0001 0001 0000 0000
c012 0001 0001
07 6578616d706c65 03 636f6d 00 0001 0001  00000101 0004 0a203040

;-- next packet --
; 2. Compression loop answer 1 to answer 2.
4242 0000 0001 0002 0000 0000
07 6578616d706c65 03 636f6d 00 0001 0001
c02d 0001 0001  00000101 0004 0a203040
07 6578616d706c65 03 636f6d 00 0001 0001  00000101 0004 0a203050

;-- next packet --
; 2b. Compression loop answer 2 to answer 1.
4242 0000 0001 0002 0000 0000
07 6578616d706c65 03 636f6d 00 0001 0001
07 6578616d706c65 03 636f6d 00 0001 0001  00000101 0004 0a203050
c01d 0001 0001  00000101 0004 0a203040

;-- next packet --
; 3. Compression loop to self (in answer section).
4242 0000 0001 0001 0000 0000
07 6578616d706c65 03 636f6d 00 0001 0001
c01d 0001 0001  00000101 0004 0a203040

;-- next packet --
; 4. bad compression pointer - to header.
4242 0000 0001 0001 0000 0000
07 6578616d706c65 03 636f6d 00 0001 0001
c004 0001 0001  00000101 0004 0a203040

;-- next packet --
; 5. bad compression pointer - exceeds packet.
4242 0000 0001 0001 0000 0000
07 6578616d706c65 03 636f6d 00 0001 0001
c0bb 0001 0001  00000101 0004 0a203040

;-- next packet --
; 6. double OPT record.
; id flags qd  an   ns  ar   -- header
4242 0000 0001 0001 0000 0002
; query: qname example.com. qtype A(1) qclass IN(1)
07 6578616d706c65 03 636f6d 00 0001 0001
; answer: example.com          type class ttl rdatalen 10.x address.
07 6578616d706c65 03 636f6d 00 0001 0001  00000101 0004 0a203040
; additional:  .               OPT  4096     
00                             0029 1000  00000000 0000
; additional:  .               OPT  4096     
00                             0029 1000  00000001 0000