]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
man: tc-ct.8: fix example
authorAndrea Claudi <aclaudi@redhat.com>
Tue, 21 Jun 2022 16:59:06 +0000 (18:59 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 21 Jun 2022 22:35:58 +0000 (15:35 -0700)
tc-ct manpage provides a wrong command to add an ingress qdisc to an
interface:

$ tc qdisc add dev eth0 handle ingress
Error: argument "ingress" is wrong: invalid qdisc ID

Fix it removing the useless "handle" keyword.

Fixes: 924c43778a84 ("man: tc-ct.8: Add manual page for ct tc action")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
man/man8/tc-ct.8

index 709e62a99cfd501c848d7308ea0241ff7f269d38..2fb81ca29aa40b36d6fd2dc972b3b1d962ad4399 100644 (file)
@@ -74,8 +74,8 @@ Example showing natted firewall in conntrack zone 2, and conntrack mark usage:
 
 #Add ingress qdisc on eth0 and eth1 interfaces
 .nf
-$ tc qdisc add dev eth0 handle ingress
-$ tc qdisc add dev eth1 handle ingress
+$ tc qdisc add dev eth0 ingress
+$ tc qdisc add dev eth1 ingress
 
 #Setup filters on eth0, allowing opening new connections in zone 2, and doing src nat + mark for each new connection
 $ tc filter add dev eth0 ingress prio 1 chain 0 proto ip flower ip_proto tcp ct_state -trk \\