summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/fib.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/inet/fib.t')
-rw-r--r--tests/py/inet/fib.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/py/inet/fib.t b/tests/py/inet/fib.t
new file mode 100644
index 00000000..9ee282ab
--- /dev/null
+++ b/tests/py/inet/fib.t
@@ -0,0 +1,14 @@
+:prerouting;type filter hook prerouting priority 0
+
+*ip;test-ip;prerouting
+*ip6;test-ip6;prerouting
+
+fib saddr . daddr oif lo;fail
+fib iif . oif . daddr oif lo;fail
+fib mark oif lo;fail
+fib saddr . iif oif ne 0;ok;fib saddr . iif oif != 0
+fib saddr . iif oifname "lo";ok
+
+fib daddr . iif type local;ok
+fib daddr . iif type vmap { blackhole : drop, prohibit : drop, unicast : accept };ok
+fib daddr . oif type local;fail