From 19ee83379cf483ab151dd1ad4e36d09483d6a223 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 4 Mar 2020 21:43:00 +0100 Subject: dhcpv6: add DHCPv4-over-DHCPv6 support Add message types, options, and modifier for handling DHCPv4-over-DHCPv6. Refer to RFC 7341 Signed-off-by: Mikael Magnusson --- dhcpv6/options.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dhcpv6/options.go') diff --git a/dhcpv6/options.go b/dhcpv6/options.go index 9b76f6d..87a33ff 100644 --- a/dhcpv6/options.go +++ b/dhcpv6/options.go @@ -87,6 +87,10 @@ func ParseOption(code OptionCode, optData []byte) (Option, error) { var o OptNetworkInterfaceID err = o.FromBytes(optData) opt = &o + case OptionDHCPv4Msg: + opt, err = ParseOptDHCPv4Msg(optData) + case OptionDHCP4oDHCP6Server: + opt, err = ParseOptDHCP4oDHCP6Server(optData) case Option4RD: opt, err = ParseOpt4RD(optData) case Option4RDMapRule: -- cgit v1.2.3