| 1 |
; Alias form |
| 2 |
\# 19 ( |
| 3 |
00 00 ; priority |
| 4 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 ; target |
| 5 |
) |
| 6 |
|
| 7 |
; Service form |
| 8 |
|
| 9 |
; The first form is the simple "use the ownername". |
| 10 |
\# 3 ( |
| 11 |
00 01 ; priority |
| 12 |
00 ; target (root label) |
| 13 |
) |
| 14 |
|
| 15 |
; This vector only has a port. |
| 16 |
\# 25 ( |
| 17 |
00 10 ; priority |
| 18 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 ; target |
| 19 |
00 03 ; key 3 |
| 20 |
00 02 ; length 2 |
| 21 |
00 35 ; value |
| 22 |
) |
| 23 |
|
| 24 |
; This example has a key that is not registered, its value is unquoted. |
| 25 |
\# 28 ( |
| 26 |
00 01 ; priority |
| 27 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 ; target |
| 28 |
02 9b ; key 667 |
| 29 |
00 05 ; length 5 |
| 30 |
68 65 6c 6c 6f ; value |
| 31 |
) |
| 32 |
|
| 33 |
; This example has a key that is not registered, its value is quoted and |
| 34 |
; contains a decimal-escaped character. |
| 35 |
\# 32 ( |
| 36 |
00 01 ; priority |
| 37 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 ; target |
| 38 |
02 9b ; key 667 |
| 39 |
00 09 ; length 9 |
| 40 |
68 65 6c 6c 6f d2 71 6f 6f ; value |
| 41 |
) |
| 42 |
|
| 43 |
; Here, two IPv6 hints are quoted in the presentation format. |
| 44 |
\# 55 ( |
| 45 |
00 01 ; priority |
| 46 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 ; target |
| 47 |
00 06 ; key 6 |
| 48 |
00 20 ; length 32 |
| 49 |
20 01 0d b8 00 00 00 00 00 00 00 00 00 00 00 01 ; first address |
| 50 |
20 01 0d b8 00 00 00 00 00 00 00 00 00 53 00 01 ; second address |
| 51 |
) |
| 52 |
|
| 53 |
; This example shows a single IPv6 hint in IPv4 mapped IPv6 presentation format. |
| 54 |
\# 35 ( |
| 55 |
00 01 ; priority |
| 56 |
07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 ; target |
| 57 |
00 06 ; key 6 |
| 58 |
00 10 ; length 16 |
| 59 |
20 01 0d b8 ff ff ff ff ff ff ff ff c6 33 64 64 ; address |
| 60 |
) |
| 61 |
|
| 62 |
; In the next vector, neither the SvcParamValues nor the mandatory keys are |
| 63 |
; sorted in presentation format, but are correctly sorted in the wire-format. |
| 64 |
\# 48 ( |
| 65 |
00 10 ; priority |
| 66 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 6f 72 67 00 ; target |
| 67 |
00 00 ; key 0 |
| 68 |
00 04 ; param length 4 |
| 69 |
00 01 ; value: key 1 |
| 70 |
00 04 ; value: key 4 |
| 71 |
00 01 ; key 1 |
| 72 |
00 09 ; param length 9 |
| 73 |
02 ; alpn length 2 |
| 74 |
68 32 ; alpn value |
| 75 |
05 ; alpn length 5 |
| 76 |
68 33 2d 31 39 ; alpn value |
| 77 |
00 04 ; key 4 |
| 78 |
00 04 ; param length 4 |
| 79 |
c0 00 02 01 ; param value |
| 80 |
) |
| 81 |
|
| 82 |
; This last vector has an alpn value with an escaped comma and an escaped |
| 83 |
; backslash in two presentation formats. |
| 84 |
\# 35 ( |
| 85 |
00 10 ; priority |
| 86 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 6f 72 67 00 ; target |
| 87 |
00 01 ; key 1 |
| 88 |
00 0c ; param length 12 |
| 89 |
08 ; alpn length 8 |
| 90 |
66 5c 6f 6f 2c 62 61 72 ; alpn value |
| 91 |
02 ; alpn length 2 |
| 92 |
68 32 ; alpn value |
| 93 |
) |
| 94 |
\# 35 ( |
| 95 |
00 10 ; priority |
| 96 |
03 66 6f 6f 07 65 78 61 6d 70 6c 65 03 6f 72 67 00 ; target |
| 97 |
00 01 ; key 1 |
| 98 |
00 0c ; param length 12 |
| 99 |
08 ; alpn length 8 |
| 100 |
66 5c 6f 6f 2c 62 61 72 ; alpn value |
| 101 |
02 ; alpn length 2 |
| 102 |
68 32 ; alpn value |
| 103 |
) |