From d2054ffc05e53ef35fe895e95fd2adaed3f6d171 Mon Sep 17 00:00:00 2001 From: Pierre Lalet Date: Thu, 9 Dec 2021 15:57:19 +0100 Subject: [PATCH] Tests: remove hardcoded addresses --- test/src/all.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/all.py b/test/src/all.py index 9e4f60f..f9f2d80 100644 --- a/test/src/all.py +++ b/test/src/all.py @@ -106,7 +106,7 @@ def check_ipv6_checksum(pkt): @test def test_arp_req(iface): ##### ARP ##### - arp_req = Ether(dst=ETHER_BROADCAST) / ARP(psrc="192.0.0.2", pdst=IPV4_ADDR) + arp_req = Ether(dst=ETHER_BROADCAST) / ARP(pdst=IPV4_ADDR) arp_repl = iface.sr1(arp_req, timeout=1) assert arp_repl is not None, "expecting answer, got nothing" assert ARP in arp_repl, "no ARP layer found" @@ -128,7 +128,7 @@ def test_arp_req(iface): @test def test_arp_req_other_ip(iface): ##### ARP ##### - arp_req = Ether() / ARP(psrc="192.0.0.2", pdst="1.2.3.4") + arp_req = Ether(dst=ETHER_BROADCAST) / ARP(pdst="1.2.3.4") arp_repl = iface.sr1(arp_req, timeout=1) assert arp_repl is None, "responding to ARP requests for other IP addresses"