From dca9f124e486b57e81f4e4aa6e161385f433c73f Mon Sep 17 00:00:00 2001 From: hk Date: Mon, 31 Oct 2016 13:01:44 +0100 Subject: [PATCH] Fix some errors in documentation --- README.md | 5 +++-- src/tc-gen.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d0d0ff0..66cdbe6 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Run tc-gen.sh without parameters to see more details. Shape egress to 5 mbit/s and ingress to 10 mbit/s using IFB-interface tc-gen.sh -i eth0 -u 5 -d 10 -f ifb0 - Shape egress to 20 mbit/s and police ingress to 2 mbit/s + Shape egress to 2 mbit/s and police ingress to 20 mbit/s tc-gen.sh -i eth0 -u 2 -d 20 Display current configuration @@ -29,7 +29,8 @@ Run tc-gen.sh without parameters to see more details. post-up /usr/local/bin/tc-gen.sh -i ${IFACE} -u 10 -d 100 -f ifb0 # More advanced example with an additional tc filter exclude for - # UDP-encapsulated IPsec ESP-traffic to avoid double counting IPsec data + # UDP-encapsulated IPsec ESP-traffic to avoid double counting IPsec data on + # ingress allow-auto bond0.12 iface bond0.12 inet dhcp post-up /usr/local/bin/tc-gen.sh -i ${IFACE} -u 10 -d 100 -f ifb0 diff --git a/src/tc-gen.sh b/src/tc-gen.sh index 0f28c3d..27cdc60 100755 --- a/src/tc-gen.sh +++ b/src/tc-gen.sh @@ -65,7 +65,7 @@ EXAMPLES OF COMMON USE Shape egress to 5 mbit/s and ingress to 10 mbit/s using IFB-interface tc-gen.sh -i eth0 -u 5 -d 10 -f ifb0 - Shape egress to 20 mbit/s and police ingress to 2 mbit/s + Shape egress to 2 mbit/s and police ingress to 20 mbit/s tc-gen.sh -i eth0 -u 2 -d 20 Display current configuration