diff --git a/test/src/all.py b/test/src/all.py index b0c098a..9e4f60f 100644 --- a/test/src/all.py +++ b/test/src/all.py @@ -776,7 +776,7 @@ def test_ipv4_udp_stun(iface): tid == b"\x00" * 12 ), "expected tid 0x000000000000000000000000, got {:x}".format(tid) expected_data = b"\x00\x01\x00\x08\x00\x01" + struct.pack( - ">HBBBB", sport, 192, 0, 0, 2 + ">HBBBB", sport, 192, 0, 0, 0 ) assert ( data == expected_data @@ -856,7 +856,7 @@ def test_ipv4_udp_stun_change_port(iface): "expected tid 0x03a3b9464dd8eb75e19481474293845c, got %r" % tid ) expected_data = b"\x00\x01\x00\x08\x00\x01" + struct.pack( - ">HBBBB", sport, 192, 0, 0, 2 + ">HBBBB", sport, 192, 0, 0, 0 ) assert ( data == expected_data diff --git a/test/test_masscanned.py b/test/test_masscanned.py index 2ed9b82..f719007 100755 --- a/test/test_masscanned.py +++ b/test/test_masscanned.py @@ -55,10 +55,9 @@ tap = TunTapInterface(IFACE) conf.iface = resolve_iface(IFACE) # set interface -subprocess.check_call(["ip", "addr", "add", "dev", IFACE, "192.0.0.2"]) +subprocess.check_call(["ip", "addr", "add", "dev", IFACE, "192.0.0.0/31"]) subprocess.check_call(["ip", "link", "set", IFACE, "up"]) -subprocess.check_call(["ip", "route", "add", "192.0.0.1/32", "dev", IFACE]) -subprocess.check_call(["ip", "route", "add", "1.2.3.4/32", "dev", IFACE]) +subprocess.check_call(["ip", "route", "add", "1.2.3.4/32", "via", IPV4_ADDR]) conf.route.resync() # start capture