diff options
Diffstat (limited to 'dhcpv6/option_remoteid_test.go')
-rw-r--r-- | dhcpv6/option_remoteid_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcpv6/option_remoteid_test.go b/dhcpv6/option_remoteid_test.go index bc13d43..51566e3 100644 --- a/dhcpv6/option_remoteid_test.go +++ b/dhcpv6/option_remoteid_test.go @@ -28,8 +28,7 @@ func TestOptRemoteId(t *testing.T) { func TestOptRemoteIdToBytes(t *testing.T) { remoteId := []byte("DSLAM01 eth2/1/01/21") - expected := []byte{00, 37, 00, byte(len(remoteId) + 4), 00, 00, 00, 00} - expected = append(expected, remoteId...) + expected := append([]byte{0, 0, 0, 0}, remoteId...) opt := OptRemoteId{ remoteId: remoteId, } |