summaryrefslogtreecommitdiffstats
path: root/doc/primary-expression.txt
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-07-21 12:43:05 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-07-25 11:20:57 +0200
commit25a0de69ea6874c992b703125c6354b006eb6ed1 (patch)
treed2086b15d65ca0415c07f5705a515f59ebd51b71 /doc/primary-expression.txt
parent1ee7c597b69d8ea0c878fc0c7d8b40f9dc32d569 (diff)
doc: fib: explain example in more detail
As noted by Felix Dreissig, fib documentation is quite terse, so explain the 'saddr . iif' example with a few more words. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1220 Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc/primary-expression.txt')
-rw-r--r--doc/primary-expression.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/primary-expression.txt b/doc/primary-expression.txt
index 34bcf2d3..fc17a02c 100644
--- a/doc/primary-expression.txt
+++ b/doc/primary-expression.txt
@@ -280,6 +280,12 @@ If no route was found for the source address/input interface combination, the ou
In case the input interface is specified as part of the input key, the output interface index is always the same as the input interface index or zero.
If only 'saddr oif' is given, then oif can be any interface index or zero.
+In this example, 'saddr . iif' lookups up routing information based on the source address and the input interface.
+oif picks the output interface index from the routing information.
+If no route was found for the source address/input interface combination, the output interface index is zero.
+In case the input interface is specified as part of the input key, the output interface index is always the same as the input interface index or zero.
+If only 'saddr oif' is given, then oif can be any interface index or zero.
+
# drop packets to address not configured on ininterface
filter prerouting fib daddr . iif type != { local, broadcast, multicast } drop