summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/modifiers_test.go
diff options
context:
space:
mode:
authorChristopher Koch <chrisko@google.com>2019-01-09 13:49:46 -0800
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-09 23:54:01 +0000
commitfe3dcd9d61ddcceb776d1382fae317fb95585cf9 (patch)
treea5a81e82b5da1157dc2a1352df156a97ef7260a2 /dhcpv4/modifiers_test.go
parentdc3874500bdde1ac7fd541d6eb6062bf98b2c2f5 (diff)
dhcpv4: simplify handling of client MAC.
Diffstat (limited to 'dhcpv4/modifiers_test.go')
-rw-r--r--dhcpv4/modifiers_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/modifiers_test.go b/dhcpv4/modifiers_test.go
index d85d2e9..f3d8ead 100644
--- a/dhcpv4/modifiers_test.go
+++ b/dhcpv4/modifiers_test.go
@@ -28,8 +28,8 @@ func TestBroadcastModifier(t *testing.T) {
func TestHwAddrModifier(t *testing.T) {
d, err := New()
require.NoError(t, err)
- hwaddr := [16]byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}
- d = WithHwAddr(hwaddr[:])(d)
+ hwaddr := net.HardwareAddr{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}
+ d = WithHwAddr(hwaddr)(d)
require.Equal(t, hwaddr, d.ClientHwAddr())
}