hi all,
below is my tcng configuration (based on wondershaper) which yields an
error that i do not understand ...
can''t dump subexpression (if_u32.c, access expected)
[==]--[&.IPv6 address]--[==]--[access]-- (none)
| | | +-- 9
| | | `-- 8
| | `--[offset]--[access]-- (none)
| | | +-- 2
| | | `-- 16
| | `--[<<]--[&]--[access]-- (none)
| | | | +-- 0
| | | | `-- 8
| | | `-- 15
| | `-- 2
| `-- FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF
`-- 80
can anyone comment on why this is happening?
additionally, any expressions getting active/passive ftp into $medium
would be greatly appreciated -- i would imagine that i have to mark in
netfilter??
thanks
charles
here comes the config ... :-)
#define DEVICE eth0
#define DOWNLINK 1024
#define UPLINK 512
#include "fields.tc"
#include "ports.tc"
dev DEVICE {
egress {
class (<$high>) if ip_proto == IPPROTO_ICMP ||
tcp_ACK ||
tcp_dport == 8080 ||
tcp_dport == 18082 ||
tcp_dport == 18083;
class (<$medium>) if ip_proto == tcp_dport == 80 ||
tcp_dport == 25 ;
class (<$low>) if 1;
htb () {
class (rate UPLINK kbps, burst 6kB) {
$high = class (prio 1, rate UPLINK kbps)
{ sfq (perturb 10 sec); };
$medium = class (prio 2, rate (0.9*UPLINK) kbps)
{ sfq (perturb 10 sec); };
$low = class (prio 3, rate (0.8*UPLINK) kbps)
{ sfq (perturb 10 sec); };
}
}
}
}
hi werner, thanks very much -- i''ve got it now! btw, tcng is just great -- simply marvelous! cheers charles On Thu, 2003-11-27 at 20:06, Werner Almesberger wrote:> lartc@manchotnetworks.net wrote: > > have i missed something, or indeed there is a problem?? > > No, all this should be correct - in "tc", "bps" means Bytes per > second. And in tcng, rates and packets use the multiplier 1000, > while bit and byte sizes use the multiplier 1024. This just > follows what is the most common use for the respective unit. > > If you don''t like the 1000 multiplier, you can just > > #define bps b/1s > #define kbps kb/1s > #define Mbps Mb/1s > #define Gbps Gb/1s > #define Bps B/1s > #define kBps kB/1s > #define MBps MB/1s > #define GBps GB/1s > > - Werner_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/