add dhcp failing test

This commit is contained in:
soypat
2025-06-17 02:07:11 -03:00
parent 47eae76dcf
commit 2133966a16
17 changed files with 596 additions and 195 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ func main() {
ip := netip.MustParseAddr(stackIP)
tap := ltesto.NewHTTPTapClient("http://127.0.0.1:7070")
ippfx := tap.IPPrefix()
ippfx, _ := tap.IPMask()
if !ippfx.Contains(ip) {
log.Fatal("interface does not contain stack address")
}
@@ -43,8 +43,8 @@ func main() {
Level: slog.LevelDebug,
}))
gatewayMAC := tap.HardwareAddr6()
mtu := tap.MTU()
gatewayMAC, _ := tap.HardwareAddress6()
mtu, _ := tap.MTU()
var stack Stack
err := stack.Reset(stackHWAddr, gatewayMAC, addrPort.Addr(), mtu)