arp fixes for #70 (#71)

This commit is contained in:
Pat Whittingslow
2026-04-11 11:08:06 -03:00
committed by GitHub
parent 68907ef898
commit 68461b4416
5 changed files with 46 additions and 24 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
package dhcpv4
import (
"bytes"
"net/netip"
"testing"
"github.com/soypat/lneto/internal"
)
func TestClientServer(t *testing.T) {
@@ -516,7 +517,7 @@ func TestRequestedIPNotSentWhenInvalid(t *testing.T) {
// it should be included. This test documents expected behavior.
if foundRequestedIP {
// Verify the value matches what was requested
if !bytes.Equal(ipValue[:], []byte{0, 0, 0, 0}) {
if !internal.BytesEqual(ipValue[:], []byte{0, 0, 0, 0}) {
t.Errorf("unexpected requested IP value: %v", ipValue)
}
}