Sirs,
i've been reading a lot about cbq, htb and other queueing disciplines
but none of them seems to do what I really want. Here comes what I need:
1) listen eth0 and detect if some host is using more thant 50kbps,
for more that 1 minute.
2) Reduce the bandwidth for this host by 50% and keep on reducing
(50%/min) until it reaches a minimum (say 2kbps)
3) Let the greedy host using 2kbps for 10 minutes.
It will act like a punishment for greedy hosts. I wish to use it
on a medium network and I don't want to create classes for each host.
Which program is a best aproach to solve this problem on a linux box?
--
//leoh
main(){int j=1234;char t[]=":@abcdefghijklmnopqrstuvwxyz.\n"
,*i = "iqgbgxmlvivuc\n:wwnfwsdoi"; char *strchr(char *,int);
while(*i){j+=strchr(t,*i++)-t;j%=sizeof t-1;putchar(t[j]);}}