Skip to contentSkip to conversation

tests: shell: add packetpath test for meta ibrhwdr

PATCH Superseded Fernando Fernandez Mancera 1 participant 1 message Oct 13, 2025 netfilter

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tests: shell: add packetpath test for meta ibrhwdr

The test checks that the packets are processed by the bridge device and not forwarded.

---
v2: set ipv4 address on bridge, enable ip_forwarding and check ipv4 forward hook too.

---
 tests/shell/features/meta_ibrhwdr.nft         |   8 ++
 .../shell/testcases/packetpath/bridge_pass_up | 102 ++++++++++++++++++
 2 files changed, 110 insertions(+)
 create mode 100644 tests/shell/features/meta_ibrhwdr.nft
 create mode 100755 tests/shell/testcases/packetpath/bridge_pass_up
tests/shell/features/meta_ibrhwdr.nft new file +8 -0
new file mode 100644
index 00000000..ba9b3431
@@ -0,0 +1,8 @@
+# cbd2257dc96e ("netfilter: nft_meta_bridge: introduce NFT_META_BRI_IIFHWADDR support")
+# v6.16-rc2-16052-gcbd2257dc96e
+table bridge nat {
+	chain PREROUTING {
+		type filter hook prerouting priority 0; policy accept;
+		ether daddr set meta ibrhwdr
+	}
+}
tests/shell/testcases/packetpath/bridge_pass_up new file +102 -0

102 lines not on this page · raw message

Signature · 1 line
2.51.0