Patchwork [iproute] man: tc-vlan.8: Fix for incorrect example

login
register
mail settings
Submitter Phil Sutter
Date March 23, 2018, 8:18 p.m.
Message ID <20180323201856.12389-1-phil@nwl.cc>
Download mbox | patch
Permalink /patch/483445/
State New
Headers show

Comments

Phil Sutter - March 23, 2018, 8:18 p.m.
This has to be a second match statement to the same u32 filter, not a
second one (which tc-filter doesn't support at all).

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/tc-vlan.8 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/man/man8/tc-vlan.8 b/man/man8/tc-vlan.8
index 59c81e86378d0..f5ffc25f054ed 100644
--- a/man/man8/tc-vlan.8
+++ b/man/man8/tc-vlan.8
@@ -103,7 +103,7 @@  into VLAN ID 123:
 #tc qdisc add dev eth0 handle ffff: ingress
 #tc filter add dev eth0 parent ffff: pref 11 protocol ip \\
 	u32 match ip protocol 1 0xff flowid 1:1 \\
-	u32 match ip src 10.0.0.2 flowid 1:1 \\
+	    match ip src 10.0.0.2 flowid 1:1 \\
 	action vlan push id 123
 .EE
 .RE