1
1
mirror of https://github.com/wader/fq.git synced 2024-12-26 23:15:04 +03:00
fq/format/dns/testdata/cern-rsp.fqtest
Mattias Wadman c4dd518e04 decode: Make compound range sort optional
Some formats might want to control child order
mp4: Keep tracks in track id order
dns: Keep label component order
elf: Keep seciton order
macho: Keep command and section order
2022-05-03 16:16:09 +02:00

102 lines
10 KiB
Plaintext

$ fq -d dns dv /cern-rsp
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: /cern-rsp (dns) 0x0-0x4f.7 (80)
| | | header{}: 0x0-0x3.7 (4)
0x00|71 02 |q. | id: 28930 0x0-0x1.7 (2)
0x00| 81 | . | qr: "response" (1) 0x2-0x2 (0.1)
0x00| 81 | . | opcode: "query" (0) 0x2.1-0x2.4 (0.4)
0x00| 81 | . | authoritative_answer: false 0x2.5-0x2.5 (0.1)
0x00| 81 | . | truncation: false 0x2.6-0x2.6 (0.1)
0x00| 81 | . | recursion_desired: true 0x2.7-0x2.7 (0.1)
0x00| 80 | . | recursion_available: true 0x3-0x3 (0.1)
0x00| 80 | . | z: 0 0x3.1-0x3.3 (0.3)
0x00| 80 | . | rcode: "no_error" (0) (No error) 0x3.4-0x3.7 (0.4)
0x00| 00 01 | .. | qd_count: 1 0x4-0x5.7 (2)
0x00| 00 02 | .. | an_count: 2 0x6-0x7.7 (2)
0x00| 00 00 | .. | ns_count: 0 0x8-0x9.7 (2)
0x00| 00 00 | .. | ar_count: 0 0xa-0xb.7 (2)
| | | questions[0:1]: 0xc-0x1c.7 (17)
| | | [0]{}: question 0xc-0x1c.7 (17)
| | | name{}: 0xc-0x18.7 (13)
| | | labels[0:4]: 0xc-0x18.7 (13)
| | | [0]{}: label 0xc-0xf.7 (4)
0x00| 03 | . | length: 3 0xc-0xc.7 (1)
0x00| 77 77 77| www| value: "www" 0xd-0xf.7 (3)
| | | [1]{}: label 0x10-0x14.7 (5)
0x10|04 |. | length: 4 0x10-0x10.7 (1)
0x10| 63 65 72 6e | cern | value: "cern" 0x11-0x14.7 (4)
| | | [2]{}: label 0x15-0x17.7 (3)
0x10| 02 | . | length: 2 0x15-0x15.7 (1)
0x10| 63 68 | ch | value: "ch" 0x16-0x17.7 (2)
| | | [3]{}: label 0x18-0x18.7 (1)
0x10| 00 | . | length: 0 0x18-0x18.7 (1)
| | | value: "www.cern.ch" 0x19-NA (0)
0x10| 00 1c | .. | type: "aaaa" (28) 0x19-0x1a.7 (2)
0x10| 00 01 | .. | class: "in" (1) (Internet) 0x1b-0x1c.7 (2)
| | | answers[0:2]: 0xc-0x4f.7 (68)
| | | [0]{}: answer 0xc-0x33.7 (40)
| | | name{}: 0xc-0x1e.7 (19)
| | | labels[0:4]: 0xc-0x1e.7 (19)
| | | [0]{}: label 0xc-0x1e.7 (19)
0x00| 03 | . | length: 3 0xc-0xc.7 (1)
0x00| 77 77 77| www| value: "www" 0xd-0xf.7 (3)
0x10| c0 | . | is_pointer: 3 0x1d-0x1d.1 (0.2)
0x10| c0 0c | .. | pointer: 12 0x1d.2-0x1e.7 (1.6)
| | | [1]{}: label 0x10-0x14.7 (5)
0x10|04 |. | length: 4 0x10-0x10.7 (1)
0x10| 63 65 72 6e | cern | value: "cern" 0x11-0x14.7 (4)
| | | [2]{}: label 0x15-0x17.7 (3)
0x10| 02 | . | length: 2 0x15-0x15.7 (1)
0x10| 63 68 | ch | value: "ch" 0x16-0x17.7 (2)
| | | [3]{}: label 0x18-0x18.7 (1)
0x10| 00 | . | length: 0 0x18-0x18.7 (1)
| | | value: "www.cern.ch" 0x19-NA (0)
| | | cname{}: 0x10-0x33.7 (36)
| | | labels[0:4]: 0x10-0x33.7 (36)
| | | [0]{}: label 0x29-0x31.7 (9)
0x20| 08 | . | length: 8 0x29-0x29.7 (1)
0x20| 77 65 62 72 6c 62| webrlb| value: "webrlb02" 0x2a-0x31.7 (8)
0x30|30 32 |02 |
| | | [1]{}: label 0x10-0x33.7 (36)
0x10|04 |. | length: 4 0x10-0x10.7 (1)
0x10| 63 65 72 6e | cern | value: "cern" 0x11-0x14.7 (4)
0x30| c0 | . | is_pointer: 3 0x32-0x32.1 (0.2)
0x30| c0 10 | .. | pointer: 16 0x32.2-0x33.7 (1.6)
| | | [2]{}: label 0x15-0x17.7 (3)
0x10| 02 | . | length: 2 0x15-0x15.7 (1)
0x10| 63 68 | ch | value: "ch" 0x16-0x17.7 (2)
| | | [3]{}: label 0x18-0x18.7 (1)
0x10| 00 | . | length: 0 0x18-0x18.7 (1)
| | | value: "webrlb02.cern.ch" 0x19-NA (0)
0x10| 00| .| type: "cname" (5) 0x1f-0x20.7 (2)
0x20|05 |. |
0x20| 00 01 | .. | class: "in" (1) (Internet) 0x21-0x22.7 (2)
0x20| 00 00 11 96 | .... | ttl: 4502 0x23-0x26.7 (4)
0x20| 00 0b | .. | rdlength: 11 0x27-0x28.7 (2)
| | | [1]{}: answer 0x10-0x4f.7 (64)
| | | name{}: 0x10-0x35.7 (38)
| | | labels[0:4]: 0x10-0x35.7 (38)
| | | [0]{}: label 0x29-0x35.7 (13)
0x20| 08 | . | length: 8 0x29-0x29.7 (1)
0x20| 77 65 62 72 6c 62| webrlb| value: "webrlb02" 0x2a-0x31.7 (8)
0x30|30 32 |02 |
0x30| c0 | . | is_pointer: 3 0x34-0x34.1 (0.2)
0x30| c0 29 | .) | pointer: 41 0x34.2-0x35.7 (1.6)
| | | [1]{}: label 0x10-0x33.7 (36)
0x10|04 |. | length: 4 0x10-0x10.7 (1)
0x10| 63 65 72 6e | cern | value: "cern" 0x11-0x14.7 (4)
0x30| c0 | . | is_pointer: 3 0x32-0x32.1 (0.2)
0x30| c0 10 | .. | pointer: 16 0x32.2-0x33.7 (1.6)
| | | [2]{}: label 0x15-0x17.7 (3)
0x10| 02 | . | length: 2 0x15-0x15.7 (1)
0x10| 63 68 | ch | value: "ch" 0x16-0x17.7 (2)
| | | [3]{}: label 0x18-0x18.7 (1)
0x10| 00 | . | length: 0 0x18-0x18.7 (1)
| | | value: "webrlb02.cern.ch" 0x19-NA (0)
0x30| 00 1c | .. | type: "aaaa" (28) 0x36-0x37.7 (2)
0x30| 00 01 | .. | class: "in" (1) (Internet) 0x38-0x39.7 (2)
0x30| 00 00 11 96 | .... | ttl: 4502 0x3a-0x3d.7 (4)
0x30| 00 10| ..| rdlength: 16 0x3e-0x3f.7 (2)
0x40|20 01 14 58 02 01 00 70 00 00 00 00 01 00 00 27| ..X...p.......'| address: "2001:1458:201:70::100:27" 0x40-0x4f.7 (16)
| | | nameservers[0:0]: 0x50-NA (0)
| | | additionals[0:0]: 0x50-NA (0)