]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: mention vlan matching in ip/ip6/inet families
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Sep 2022 10:28:21 +0000 (12:28 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 28 Sep 2022 09:53:09 +0000 (11:53 +0200)
It only works if vlan_reorder is turned off to disable the vlan tag
removal.

Signed-off-by: Florian Westphal <fw@strlen.de>
doc/payload-expression.txt

index 106ff74ce57ef5503da02d68b9f144685c0eda57..113f5bfc597c3aade42ff60fb63afc5a33b5ea41 100644 (file)
@@ -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"]
 |==================