summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/modifiers_test.go
diff options
context:
space:
mode:
authorChristopher Koch <chrisko@google.com>2019-01-09 13:19:46 -0800
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-09 23:54:01 +0000
commitdf450f2899aa103d7c754ff17df05afe74a9f462 (patch)
tree63026988bdf7efad97d9f1897110bfae9b23aa3c /dhcpv4/modifiers_test.go
parent2439a850c766acf2d21501bf075b4dbeb6d7d295 (diff)
dhcpv4: introduce TransactionID type.
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 f50e40b..d85d2e9 100644
--- a/dhcpv4/modifiers_test.go
+++ b/dhcpv4/modifiers_test.go
@@ -10,8 +10,8 @@ import (
func TestTransactionIDModifier(t *testing.T) {
d, err := New()
require.NoError(t, err)
- d = WithTransactionID(0xddccbbaa)(d)
- require.Equal(t, uint32(0xddccbbaa), d.TransactionID())
+ d = WithTransactionID(TransactionID{0xdd, 0xcc, 0xbb, 0xaa})(d)
+ require.Equal(t, TransactionID{0xdd, 0xcc, 0xbb, 0xaa}, d.TransactionID())
}
func TestBroadcastModifier(t *testing.T) {