/
rfc7600.txt
76 lines (71 loc) · 3.61 KB
/
rfc7600.txt
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
71
72
73
74
75
76
# -*- text -*-
# Copyright (C) 2019 Network RADIUS SARL <legal@networkradius.com>
# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0
#
# Version $Id$
#
# Test vectors for DHCPv6 protocol
#
proto dhcpv6
proto-dictionary dhcpv6
#
# 0 1 2 3
# 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# | option = OPTION_4RD_MAP_RULE | option-length |
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# | prefix4-len | prefix6-len | ea-len |W| Reserved |
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# | rule-ipv4-prefix |
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# | |
# + +
# | rule-ipv6-prefix |
# + +
# | |
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#
# Figure 8: Encapsulated Option for Mapping-Rule Parameters
#
# o option code: 98, encapsulated OPTION_4RD_MAP_RULE option (see Section 6)
# o option-length: 20
# o prefix4-len: number of bits of the Rule IPv4 prefix
# o prefix6-len: number of bits of the Rule IPv6 prefix
# o ea-len: EA-bits length
# o W: WKP authorized, = 1 if set
# o rule-ipv4-prefix: Rule IPv4 prefix, left-aligned
# o rule-ipv6-prefix: Rule IPv6 prefix, left-aligned
#
encode-pair 4RD = { 4RD-Map-Rule-IPv4-Prefix-Len = 16, 4RD-Map-Rule-IPv6-Prefix-Len = 128, 4RD-Map-Rule-EA-Len = 4, 4RD-Map-Rule-WPK-Authorized = 1, 4RD-Map-Rule-IPv4-Prefix = 0x01020304 }
match 00 61 00 0c 00 62 00 08 10 80 04 01 01 02 03 04
decode-pair -
match 4RD = { 4RD-Map-Rule-IPv4-Prefix-Len = 16, 4RD-Map-Rule-IPv6-Prefix-Len = 128, 4RD-Map-Rule-EA-Len = 4, 4RD-Map-Rule-WPK-Authorized = 1, 4RD-Map-Rule-IPv4-Prefix = 0x01020304 }
#
# 0 1 2 3
# 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# |option =OPTION_4RD_NON_MAP_RULE| option-length |
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# |H| 0 |T| traffic-class | domain-pmtu |
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#
# Figure 9: Encapsulated Option for Non-Mapping-Rule Parameters of 4rd Domains
#
# o option code: 99, encapsulated OPTION_4RD_NON_MAP_RULE option (see Section 6)
# o option-length: 4
# o H: Hub-and-spoke topology (= 1 if Yes)
# o T: Traffic Class flag (= 1 if a Tunnel Traffic Class is provided)
# o traffic-class: Tunnel Traffic Class
# o domain-pmtu: Domain PMTU (at least 1280 octets)
#
# Means other than DHCPv6 that may prove useful to provide 4rd
# parameters to CEs are off-scope for this document. The same or
# similar parameter formats would, however, be recommended to
# facilitate training and operation.
#
encode-pair 4RD-Non-Map-Rule-Flag-Traffic-Class-Provided = yes, 4RD-Non-Map-Rule-Flag-Hub-And-Spoke = yes, 4RD-Non-Map-Rule-Domain-PMTU = 31
match 00 63 00 02 81 1f
decode-pair -
match 4RD-Non-Map-Rule-Flag-Traffic-Class-Provided = yes, 4RD-Non-Map-Rule-Flag-Reserved = 0, 4RD-Non-Map-Rule-Flag-Hub-And-Spoke = yes, 4RD-Non-Map-Rule-Domain-PMTU = 31
count
match 10