projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
aa41dea
)
Don't use default 1:1
author
David Parrish
<david@dparrish.com>
Mon, 5 Apr 2004 05:29:13 +0000
(
05:29
+0000)
committer
David Parrish
<david@dparrish.com>
Mon, 5 Apr 2004 05:29:13 +0000
(
05:29
+0000)
rl.c
patch
|
blob
|
history
diff --git
a/rl.c
b/rl.c
index
49bd72c
..
7e697d0
100644
(file)
--- a/
rl.c
+++ b/
rl.c
@@
-1,5
+1,5
@@
// L2TPNS Rate Limiting Stuff
// L2TPNS Rate Limiting Stuff
-// $Id: rl.c,v 1.
2 2004-03-05 00:09:0
3 fred_nerk Exp $
+// $Id: rl.c,v 1.
3 2004-04-05 05:29:1
3 fred_nerk Exp $
#include <stdio.h>
#include <sys/file.h>
#include <stdio.h>
#include <sys/file.h>
@@
-25,7
+25,7
@@
int next_tbf = 1;
void init_rl()
{
char *commands[] = {
void init_rl()
{
char *commands[] = {
- "tc qdisc add dev " DEVICE " root handle 1: htb
default 1
",
+ "tc qdisc add dev " DEVICE " root handle 1: htb",
"tc class add dev " DEVICE " parent 1: classid 1:1 htb rate 100mbit burst 300k",
"tc filter del dev " DEVICE " protocol ip pref 1 fw",
"iptables -t mangle -N throttle 2>&1 >/dev/null",
"tc class add dev " DEVICE " parent 1: classid 1:1 htb rate 100mbit burst 300k",
"tc filter del dev " DEVICE " protocol ip pref 1 fw",
"iptables -t mangle -N throttle 2>&1 >/dev/null",