diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-15 00:48:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-15 00:48:55 +0000 |
commit | bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19 (patch) | |
tree | f4833b49f98d2e1c6c6a4a6f180d0c919b6a5b84 /net-firewall/shapecfg/files | |
parent | Clean up ebuild, add a patch from Fedora, and add back in missing KEYWORDS al... (diff) | |
download | gentoo-2-bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19.tar.gz gentoo-2-bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19.tar.bz2 gentoo-2-bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19.zip |
initial import
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'net-firewall/shapecfg/files')
-rw-r--r-- | net-firewall/shapecfg/files/README.shaper | 50 | ||||
-rw-r--r-- | net-firewall/shapecfg/files/digest-shapecfg-36 | 1 | ||||
-rw-r--r-- | net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch | 15 |
3 files changed, 66 insertions, 0 deletions
diff --git a/net-firewall/shapecfg/files/README.shaper b/net-firewall/shapecfg/files/README.shaper new file mode 100644 index 000000000000..60c2b4d6afb6 --- /dev/null +++ b/net-firewall/shapecfg/files/README.shaper @@ -0,0 +1,50 @@ + +Traffic Shaper For Linux + +This is the current ALPHA release of the traffic shaper for Linux. It works +within the following limits: + +o Minimum shaping speed is currently about 9600 baud (it can only + shape down to 1 byte per clock tick) + +o Maximum is about 256K, it will go above this but get a bit blocky. + +o If you ifconfig the master device that a shaper is attached to down + then your machine will follow. + +o The shaper must be a module. + + +Setup: + +A shaper device is configured using the shapeconfig program. +Typically you will do something like this + +shapecfg attach shaper0 eth1 +shapecfg speed shaper0 64000 +ifconfig shaper0 myhost netmask 255.255.255.240 broadcast 1.2.3.4.255 up +route add -net some.network netmask a.b.c.d dev shaper0 + +The shaper should have the same IP address as the device it is attached to +for normal use. + +Gotchas: + + The shaper shapes transmitted traffic. It's rather impossible to +shape received traffic except at the end (or a router) transmitting it. + + Gated/routed/rwhod/mrouted all see the shaper as an additional device +and will treat it as such unless patched. Note that for mrouted you can run +mrouted tunnels via a traffic shaper to control bandwidth usage. + + The shaper is device/route based. This makes it very easy to use +with any setup BUT less flexible. You may well want to combine this patch +with Mike McLagan 's patch to allow routes to be +specified by source/destination pairs. + + There is no "borrowing" or "sharing" scheme. This is a simple +traffic limiter. I'd like to implement Van Jacobson and Sally Floyd's CBQ +architecture into Linux one day (maybe in 2.1 sometime) and do this with +style. + + diff --git a/net-firewall/shapecfg/files/digest-shapecfg-36 b/net-firewall/shapecfg/files/digest-shapecfg-36 new file mode 100644 index 000000000000..9f114c3a6aab --- /dev/null +++ b/net-firewall/shapecfg/files/digest-shapecfg-36 @@ -0,0 +1 @@ +MD5 fc009b9dfc7b85722c73636c99be9a6b shaper.36.tar.gz 671 diff --git a/net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch b/net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch new file mode 100644 index 000000000000..3fb6a36ae50b --- /dev/null +++ b/net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch @@ -0,0 +1,15 @@ +--- shaper/shapecfg.c.glibc Tue Sep 29 20:24:02 1998 ++++ shaper/shapecfg.c Tue Sep 29 20:29:27 1998 +@@ -3,9 +3,9 @@ + #include <stdlib.h> + #include <linux/types.h> + #include <netinet/in.h> +-#include <linux/if.h> +-#include <linux/if_shaper.h> +-#include <linux/sockios.h> ++#include <net/if.h> ++#include <net/if_shaper.h> ++#include <sys/ioctl.h> + + void usage(char *name) + { |