From 013932ed065c251571dbf0e0936f9699aa93de21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Mon, 15 Jun 2026 16:24:45 +0200 Subject: [PATCH] multicast: stream MAC sender continuously like the IPv4 sender --- test/infamy/multicast.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/infamy/multicast.py b/test/infamy/multicast.py index 735838e6..72f70630 100644 --- a/test/infamy/multicast.py +++ b/test/infamy/multicast.py @@ -65,7 +65,10 @@ class MacMCastSender: send_cmd = ( "from scapy.all import sendp, Ether; " f"pkt=Ether(src='aa:bb:cc:dd:ee:ff', dst='{self.group}', type=0xdead); " - "sendp(pkt, iface='iface', count=50, inter=1./10)" + # loop until SIGINT (set on __exit__), like the IPv4 MCastSender's + # msend; a fixed count would drain before later verification steps + # run and they would capture nothing. + "sendp(pkt, iface='iface', inter=1./10, loop=1)" ) self.proc = self.netns.popen(["python3", "-c", send_cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE) return self