summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_dhcpv4_msg_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_dhcpv4_msg_test.go')
-rw-r--r--dhcpv6/option_dhcpv4_msg_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpv6/option_dhcpv4_msg_test.go b/dhcpv6/option_dhcpv4_msg_test.go
index d8d3f6d..e7bb1f6 100644
--- a/dhcpv6/option_dhcpv4_msg_test.go
+++ b/dhcpv6/option_dhcpv4_msg_test.go
@@ -43,7 +43,8 @@ func TestParseOptDHCPv4Msg(t *testing.T) {
// magic cookie, then no options
data = append(data, magicCookie[:]...)
- opt, err := ParseOptDHCPv4Msg(data)
+ var opt OptDHCPv4Msg
+ err := opt.FromBytes(data)
d := opt.Msg
require.NoError(t, err)
require.Equal(t, d.OpCode, dhcpv4.OpcodeBootRequest)