summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/options.go')
-rw-r--r--dhcpv6/options.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpv6/options.go b/dhcpv6/options.go
index f773c7f..617761f 100644
--- a/dhcpv6/options.go
+++ b/dhcpv6/options.go
@@ -82,7 +82,9 @@ func ParseOption(code OptionCode, optData []byte) (Option, error) {
case OptionClientArchType:
opt, err = parseOptClientArchType(optData)
case OptionNII:
- opt, err = ParseOptNetworkInterfaceId(optData)
+ var o OptNetworkInterfaceID
+ err = o.FromBytes(optData)
+ opt = &o
case Option4RD:
opt, err = ParseOpt4RD(optData)
case Option4RDMapRule: