Skip to contentSkip to conversation

man: tc-csum.8: Fix example

PATCH In review Phil Sutter 2 participants 2 messages Jan 28, 2017 – Jan 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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")

---
Changes since v1:
- Instead of using potentially valid IP addresses, use RFC 5737 ones.

---
 man/man8/tc-csum.8 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
man/man8/tc-csum.8 +3 -3
index 3a64c82f09ba8..68e5610513a51 100644
@@ -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
Signature · 1 line
2.11.0
#1 lore raw
Quoted 6 lines · On Sat, 28 Jan 2017 12:59:10 +0100 Phil Sutter <[email protected]> wrote:

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().

Quoted 6 lines
Fixes dbfb17a67f9c7 ("man: tc-csum.8: Add an example")

---
Changes since v1:
- Instead of using potentially valid IP addresses, use RFC 5737 ones.

Applied thanks