Skip to contentSkip to conversation

tests: shell: add packetpath test for meta ibrhwaddr

PATCH New Fernando Fernandez Mancera 1 participant 1 message Oct 14, 2025 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 tests: shell: add packetpath test for meta ibrhwaddr

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.
v3: rename to ibrhwaddr

---
 tests/shell/features/meta_ibrhwaddr.nft       |   8 ++
 .../shell/testcases/packetpath/bridge_pass_up | 102 ++++++++++++++++++
 2 files changed, 110 insertions(+)
 create mode 100644 tests/shell/features/meta_ibrhwaddr.nft
 create mode 100755 tests/shell/testcases/packetpath/bridge_pass_up
tests/shell/features/meta_ibrhwaddr.nft new file +8 -0
new file mode 100644
index 00000000..e41abac8
@@ -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 ibrhwaddr
+	}
+}
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