From 3031bba0475fb6c0d9f9a9a35f2a16463a2dda30 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Fri, 1 Nov 2024 16:40:41 +0100 Subject: [PATCH] test: netns: Use passthru mode for MACVLANs This mode let's us receive all packets from the parent device, which is automatically set in promiscuous mode, and let's the MACVLAN transmit packets with any SA, which we need to implement a TPMR (or a bridge or anything else we might dream up) --- test/infamy/netns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/infamy/netns.py b/test/infamy/netns.py index c5827428..54e9e7c9 100644 --- a/test/infamy/netns.py +++ b/test/infamy/netns.py @@ -59,7 +59,7 @@ class IsolatedMacVlans: "link", parent, "address", self._stable_mac(parent), "netns", str(self.sleeper.pid), - "type", "macvlan"], check=True) + "type", "macvlan", "mode", "passthru"], check=True) self.runsh(f""" while ! ip link show dev {ifname}; do sleep 0.1