diff options
Diffstat (limited to 'dhcpv6')
-rw-r--r-- | dhcpv6/option_dhcpv4_msg_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv6/option_dhcpv4_msg_test.go b/dhcpv6/option_dhcpv4_msg_test.go index 1ffa17a..d8d3f6d 100644 --- a/dhcpv6/option_dhcpv4_msg_test.go +++ b/dhcpv6/option_dhcpv4_msg_test.go @@ -87,14 +87,14 @@ func TestOptDHCPv4MsgToBytes(t *testing.T) { // Magic Cookie expected = append(expected, magicCookie[:]...) + // End + expected = append(expected, 0xff) + // Minimum message length padding. // - // 236 + 4 byte cookie + 59 bytes padding + 1 byte end. + // 236 + 4 byte cookie + 1 byte end + 59 bytes padding. expected = append(expected, bytes.Repeat([]byte{0}, 59)...) - // End - expected = append(expected, 0xff) - d, err := dhcpv4.New() require.NoError(t, err) // fix TransactionID to match the expected one, since it's randomly |