Tests: fix IPv6 warnings from Scapy

This commit is contained in:
Pierre Lalet 2021-12-15 16:01:25 +01:00
parent 96b82bdce2
commit b5fb589361
2 changed files with 18 additions and 6 deletions

View file

@ -68,9 +68,11 @@ conf.iface = resolve_iface(IFACE)
# set interface
subprocess.check_call(["ip", "addr", "add", "dev", IFACE, "192.0.0.0/31"])
subprocess.check_call(["ip", "addr", "add", "dev", IFACE, "2001:41d0::1234:5678/96"])
subprocess.check_call(["ip", "link", "set", IFACE, "up"])
subprocess.check_call(["ip", "route", "add", "1.2.3.4/32", "via", IPV4_ADDR])
conf.route.resync()
conf.route6.resync()
# start capture
if TCPDUMP: