Package: tcng
Version: 10b-1
Severity: normal
I am trying to assemble a simple bandwidth-limiting setup. Below is what I got
so far:
#include "fields.tc"
#include "ports.tc"
dev eth0 {
ingress {
$b = SLB (cir 256kbps, cbs 64kB);
class (4)
if (ip_proto == IPPROTO_UDP) && (udp_dport == 1194)
if (ip_proto == IPPROTO_TCP) && (tcp_sport == 22883)
;
}
egress {
// classification
class (<$express>)
if (ip_proto == IPPROTO_UDP) && (ip_len <= 512)
;
class (<$expedited>)
if (ip_proto == IPPROTO_ICMP)
if (ip_proto == IPPROTO_UDP) && (udp_sport == 1194)
if (ip_proto == IPPROTO_TCP) && (tcp_sport == 22883 || tcp_dport ==
53 || tcp_dport == 25)
if (ip_proto == IPPROTO_TCP) && (ip_len <= 128) && (tcp_dport <
1024) && (tcp_ACK == 1 || tcp_SYN == 1)
;
class (<$normal>)
if 1
;
// queuing
htb (rate 10Mbps) {
$express = class (prio 1) { sfq; }
$expedited = class (prio 2, rate 1Mbps) { sfq; }
$normal = class (prio 3, rate 256kbps) { sfq; }
}
}
}
The ingress section obviously does nothing, it was just where I stopped to test
...
When I compile this with tcng -r and run the resulting shell script, I get
RTNETLINK answers: File exists
RTNETLINK answers: File exists
We have an error talking to the kernel
RTNETLINK answers: File exists
We have an error talking to the kernel
RTNETLINK answers: File exists
We have an error talking to the kernel
RTNETLINK answers: File exists
We have an error talking to the kernel
But when I remove the entire ingress section, it works flawlessly (and does
what it's supposed to).
What gives? Has perhaps tcng bitrotted with respect to tc/iproute?
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-4unicorn200710072127 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages tcng depends on:
ii cpp 4:4.2.1-6 The GNU C preprocessor (cpp)
ii iproute 20070313-1 Professional tools to control the
ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
tcng recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]