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); };
}
}
}
}