summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-09-27 12:28:21 +0200
committerFlorian Westphal <fw@strlen.de>2022-09-28 11:53:09 +0200
commitdf9ddef00af5ba54c027eb5425eedc2b55a22a3e (patch)
tree7b63b82cd34c5f44470d70b124a0a626eceaca62 /doc
parentc3afb1d8865a724c03ea1008c82ad18a781ed043 (diff)
doc: mention vlan matching in ip/ip6/inet families
It only works if vlan_reorder is turned off to disable the vlan tag removal. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/payload-expression.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/payload-expression.txt b/doc/payload-expression.txt
index 106ff74c..113f5bfc 100644
--- a/doc/payload-expression.txt
+++ b/doc/payload-expression.txt
@@ -23,6 +23,14 @@ VLAN HEADER EXPRESSION
[verse]
*vlan* {*id* | *dei* | *pcp* | *type*}
+The vlan expression is used to match on the vlan header fields.
+This expression will not work in the *ip*, *ip6* and *inet* families,
+unless the vlan interface is configured with the *reorder_hdr off* setting.
+The default is *reorder_hdr on* which will automatically remove the vlan tag
+from the packet. See ip-link(8) for more information.
+For these families its easier to match the vlan interface name
+instead, using the *meta iif* or *meta iifname* expression.
+
.VLAN header expression
[options="header"]
|==================