From: Phil Sutter Date: Sat, 28 Jan 2017 11:59:10 +0000 (+0100) Subject: man: tc-csum.8: Fix example X-Git-Tag: v4.10.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bbe5e6290db5cf3e78d6a1a179c76535a2eea3f;p=thirdparty%2Fiproute2.git man: tc-csum.8: Fix example This fixes two issues with the provided example: - Add missing 'dev' keyword to second command. - Use a real IPv4 address instead of a bogus hex value since that will be rejected by get_addr_ipv4(). Fixes: dbfb17a67f9c7 ("man: tc-csum.8: Add an example") Reported-by: Davide Caratti Signed-off-by: Phil Sutter --- diff --git a/man/man8/tc-csum.8 b/man/man8/tc-csum.8 index 3a64c82f0..68e561051 100644 --- a/man/man8/tc-csum.8 +++ b/man/man8/tc-csum.8 @@ -57,9 +57,9 @@ packets, both IP and UDP checksums have to be recalculated: .RS .EX # tc qdisc add dev eth0 ingress handle ffff: -# tc filter add eth0 prio 1 protocol ip parent ffff: \\ - u32 match ip src 192.168.1.100/32 flowid :1 \\ - action pedit munge ip dst set 0x12345678 pipe \\ +# tc filter add dev eth0 prio 1 protocol ip parent ffff: \\ + u32 match ip src 192.0.2.100/32 flowid :1 \\ + action pedit munge ip dst set 198.51.100.1 pipe \\ csum ip and udp .EE .RE