git: 92155f8bbef0 - main - pf tests: don't set interface on scapy's sr1()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Jul 2025 14:23:47 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=92155f8bbef0528a519aaf91e3721c591d12d266
commit 92155f8bbef0528a519aaf91e3721c591d12d266
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-07-16 16:01:19 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-07-23 13:35:44 +0000
pf tests: don't set interface on scapy's sr1()
That's not supported:
> /usr/local/lib/python3.11/site-packages/scapy/sendrecv.py:726: SyntaxWarning: 'iface' has no effect on L3 I/O sr1().
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
tests/sys/netpfil/pf/icmp.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/sys/netpfil/pf/icmp.py b/tests/sys/netpfil/pf/icmp.py
index 59f2e8190b30..2f40259f5665 100644
--- a/tests/sys/netpfil/pf/icmp.py
+++ b/tests/sys/netpfil/pf/icmp.py
@@ -136,8 +136,7 @@ class TestICMP(VnetTestTemplate):
/ sp.ICMP(type='echo-request') \
/ sp.raw(bytes.fromhex('f0') * payload_size)
- p = sp.sr1(packet, iface=self.vnet.iface_alias_map["if1"].name,
- timeout=3)
+ p = sp.sr1(packet, timeout=3)
p.show()
ip = p.getlayer(sp.IP)