summaryrefslogtreecommitdiffstats
path: root/tests/family-bridge
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-03-18 04:55:00 +0100
committerPatrick McHardy <kaber@trash.net>2009-03-18 04:55:00 +0100
commitfac10ea799fe9b6158d74f66d6ad46536d38a545 (patch)
tree8c093bcbb2144aab54c70103e6ed438456ae0d48 /tests/family-bridge
Initial commitv0.01-alpha1
Diffstat (limited to 'tests/family-bridge')
-rwxr-xr-xtests/family-bridge13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/family-bridge b/tests/family-bridge
new file mode 100755
index 00000000..633211fb
--- /dev/null
+++ b/tests/family-bridge
@@ -0,0 +1,13 @@
+#! nft -f
+
+table add bridge filter
+chain add bridge filter output NF_INET_LOCAL_OUT 0
+
+# LL protocol
+rule add bridge filter output eth type 0x0800 counter
+
+# IP address
+rule add bridge filter output eth type 0x0800 ip daddr 20.0.0.2 counter
+
+# IPv6 address
+rule add bridge filter output eth type 0x86DD ip6 daddr 2001:6f8:974:3::2 counter