summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/iputils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/iputils_test.go')
-rw-r--r--dhcpv6/iputils_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpv6/iputils_test.go b/dhcpv6/iputils_test.go
index 82a9a39..d2d8a95 100644
--- a/dhcpv6/iputils_test.go
+++ b/dhcpv6/iputils_test.go
@@ -138,6 +138,8 @@ func Test_ExtractMAC(t *testing.T) {
}
solicit, err := NewMessage(WithClientID(duid))
require.NoError(t, err)
- mac, err = ExtractMAC(solicit)
+ relay, err := EncapsulateRelay(solicit, MessageTypeRelayForward, net.IPv6zero, net.IPv6zero)
+ require.NoError(t, err)
+ mac, err = ExtractMAC(relay)
require.Equal(t, mac.String(), "aa:aa:aa:aa:aa:aa")
}