From mboxrd@z Thu Jan 1 00:00:00 1970 From: "lartc@manchotnetworks.net" Date: Wed, 26 Nov 2003 17:33:23 +0000 Subject: [LARTC] tcng error MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-tCNnbqyBI5aNOE1iqc14" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-tCNnbqyBI5aNOE1iqc14 Content-Type: text/plain Content-Transfer-Encoding: 7bit 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); }; } } } } --=-tCNnbqyBI5aNOE1iqc14 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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); };
            }
        }
    }
}

--=-tCNnbqyBI5aNOE1iqc14-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/