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
@@ -36,7 +36,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")
}
@@ -46,8 +46,8 @@ func main() {
}))
slogger := logger{lg}
gatewayMAC := tap.HardwareAddr6()
mtu := tap.MTU()
gatewayMAC, _ := tap.HardwareAddress6()
mtu, _ := tap.MTU()
lStack, handler, err := NewEthernetTCPStack(stackHWAddr, gatewayMAC, addrPort, uint16(mtu), slogger)
if err != nil {
log.Fatal(err)