summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/options.go
diff options
context:
space:
mode:
authorAnatole Denis <natolumin@unverle.fr>2019-11-03 16:46:39 +0100
committerAnatole Denis <natolumin@unverle.fr>2019-11-03 17:00:50 +0100
commit51aead750bd8a5a9fb757f63d4663ba1b4be9bb6 (patch)
tree4b7b0a0e634181a8f058dc77f8218f0cf54bdd22 /dhcpv6/options.go
parent80d8a71da7249766be583e8dd64d3cd566ab86c5 (diff)
dhcpv6: Add support for 4RD options
IPv4 Residual Deployment (4RD) is a strategy for providing IPv4 connectivity in IPv6-only networks. The standard includes autoconfiguration via DHCPv6, as described in RFC7600. This adds support for the 3 options defined in that RFC Signed-off-by: Anatole Denis <natolumin@unverle.fr>
Diffstat (limited to 'dhcpv6/options.go')
-rw-r--r--dhcpv6/options.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/dhcpv6/options.go b/dhcpv6/options.go
index 47ccdca..cf192fc 100644
--- a/dhcpv6/options.go
+++ b/dhcpv6/options.go
@@ -79,6 +79,12 @@ func ParseOption(code OptionCode, optData []byte) (Option, error) {
opt, err = ParseOptClientArchType(optData)
case OptionNII:
opt, err = ParseOptNetworkInterfaceId(optData)
+ case Option4RD:
+ opt, err = ParseOpt4RD(optData)
+ case Option4RDMapRule:
+ opt, err = ParseOpt4RDMapRule(optData)
+ case Option4RDNonMapRule:
+ opt, err = ParseOpt4RDNonMapRule(optData)
default:
opt = &OptionGeneric{OptionCode: code, OptionData: optData}
}