Displaying 20 results from an estimated 400 matches similar to: "tc offset & subheader matching clarification / question"
2003 Aug 16
0
offset mask usage in u32 filter
iproute2 distribution in README.iproute2+tc includes
toward the end an example of usage of syntax ''offset
mask'' as follows:
# Lookup hash table, if it is not fragmented frame
# Use protocol as hash key
$TC filter add dev eth1 parent 1:0 prio 5 handle ::1
u32 ht 800:: \
match ip nofrag \
offset mask 0x0F00 shift 6 \
hashkey mask 0x00ff0000 at 8 \
link 1:
Also, identical
2004 Nov 05
3
[PATCH] Use nfmark as a key for u32 classifier
Hello!
I am glad to announce a patch for u32 to allow matches on nfmark.
The patch is non intrusive (few lines).
Why I did this? Because fw classifier cannot be used together with u32.
For example, now, you cannot match a mark of 0x90 and a destination
port of 80. I know you can do it with iptables to do the marking, but if
you use Jamal actions to apply mark to policed packets, you need
2003 Jan 06
1
compiling cls_u32 sch_htb and bridge into the kernel
Hi fellows:
Im wondering about compiling cls_u32 sch_htb and
bridge into the kernel
Are there any advantages or disadvantages doing this
in terms of stability or crash problems?
Thanks in advance for the replys
Victor
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
2001 Dec 24
2
Two u32 problems: module count and fw
Hi All,
I found 2 unusual behavior with u32 classifier in Kernel 2.4.12. Ive u32
compiled as module.
1> u32 filter seems not working if there is already some fw filter used for
some other class. In order to get u32 working Ive to delete root class,
which in terms delete all fw filters too, and then same command for u32
works. fw is also compiled as module.
2> If I add u32 filter to my
2004 Nov 30
1
What is wrong here?
Hello Everyone,
I have this weird problem. I have 2.6.10-rc2-mm3 kernel with u32
compiled as module. I have the cls_u32 module loaded. I have
different binaryes of tc, the one from iproute packaged from debian
sarge, the Kaber''s one from trash.net, and also from another computer
where u32 worked. When I run this:
cyclops:~# /usr/local/sbin/tc filter add dev eth0 parent 6: protocol
ip
2007 Sep 07
1
tc filter syntax (and general noobness)
Ok,
After much research and e-mails to the list, I''m finally to the point
where I have filtering setup properly.
Now, I''m trying to figure out tc filter so that I can classify packets
on both eth0 and eth1.
So, lets take for example Samba traffic. I want to be sure that its
being sent with relative speed so that my shares don''t get lagged. And
what the heck, its
2007 May 07
2
IMQ KERNEL PANIC 2.6.17.14 AND 2.6.21.1 No chain/target/match by that name
After starting to shape local traffic now i am getting a lot of kernel
panics in tcp_retransmit, so i decided to update my kernel from
2.6.17.14 to 2.6.21.1 , the problem is that after that i get:
# iptables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 0
iptables: No chain/target/match by that name
so i can not redirect ttraffic to IMQ device.
and modules are loaded.
-
# lsmod
Module
1999 Nov 14
0
help: can some body tell me the how to fill params of u32 filter in kernel ?
i'm a chinese programmer, i want to write a system call to create an filter attach with some
qdisc, but i don't know the filter param's struct in the kernel.
i just know the struct
struct tc_u32_key
{
__u32 mask;
__u32 val;
int off;
int offmask;
};
struct tc_u32_sel
{
unsigned char flags;
unsigned char offshift;
unsigned char nkeys;
__u16 offmask;
__u16 off;
2004 May 26
1
error compilling TC
Hi,
I have a box with RH 7,2 upgraded to Fedora Core 1.
with:
kernel 2.4.26
iptables 1.2.9
gcc 3.2.2
In this momment I''m using a binary TC version,
but when I try to compile, get errors in Make process.
Any hints ?
Bests.
Andres.
----> iproute2-2.4.7-now-ss010824.tar.gz
make[1]: Cambiando a directorio `/usr/local/src/iproute2/lib''
gcc -D_GNU_SOURCE -O2
2006 Feb 10
14
[PATCH] TC: bug fixes to the "sample" clause
PATCH 1
=======
On my machine tc does not parse filter "sample" for the u32
filter. Eg:
tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 ht 801: \
classid 1:3 \
sample ip protocol 1 0xff match ip protocol 1 0xff
Illegal "sample"
The reason is a missing memset. This patch fixes it.
diff -Nur iproute-20051007.keep/tc/f_u32.c iproute-20051007/tc/f_u32.c
2007 Feb 09
4
need help with tc filters
Hi,
I am attempting to set up some simple outbound shaping following the
LARTC HOWTO.
The HTB qdisc seems to work as the documentation says, but my filters
don''t seem to be working. All of the packets go to the default queue
regardless of what filters I set, it seems. (according to tc -s qdisc show)
I am trying to get this working on my openwrt box (whiterussian rc6),
but when
2006 Sep 10
1
HTB and tc filter
Help me ...
I try use the tc filter, but seems he doesn''t work, I already
reconfigured my kernel ( 2.4.32 ) with all options related a QOS
enabled ( like modules ) and nothing happens. I get the tc tool from
HTB source package, well this is my set :
eth0 is my internal NIC.
tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1: classid 1:1 htb rate
2006 Sep 10
1
help with HTB and tc
Help me ...
I try use the tc filter, but seems he doesn''t work, I already
reconfigured my kernel ( 2.4.32 ) with all options related a QOS
enabled ( like modules ) and nothing happens. I get the tc tool from
HTB source package, well this is my set :
eth0 is my internal NIC.
tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1: classid 1:1 htb rate
2013 Jun 05
8
btrfs raid1 on 16TB goes read-only after "btrfs: block rsv returned -28"
Dear Devs,
I have x4 4TB HDDs formatted with:
mkfs.btrfs -L bu-16TB_0 -d raid1 -m raid1 /dev/sd[cdef]
/etc/fstab mounts with the options:
noatime,noauto,space_cache,inode_cache
All on kernel 3.8.13.
Upon using rsync to copy some heavily hardlinked backups from ReiserFS,
I''ve seen:
The following "block rsv returned -28" is repeated 7 times until there
is a call trace
2006 Dec 12
1
Layer7 module doesn''t detect nothing on my bridge with a 2.6.18.3 kernel
Hello
I''ve setuped a QOS bridge under debian 3.1 using 2.6.18.3 kernel +
iptables 1.3.6
I''ve patched the kernel an Iptables with esfq+layer7 without problems.
This simple script doesn''t log nothing ... And I''m sure to have eMule
traffic (I''ve checked with tcpdump )
If I remove " -m layer7 --l7proto edonkey \" line I can see
2005 Nov 25
7
tcpdump not working with imq0 devices
On my debian woody (kernel 2.4.31) the tcpdump
doesn''t work with imq0 devices. If I try to tcpdump
imq devices there is no packet seen:
[...]
rt1:~# tcpdump -n -i imq0
Warning: arptype 65535 not supported by libpcap - falling back to cooked socket
tcpdump: WARNING: imq0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on
2003 Jan 15
5
HTB. QoS and Shorewall
Group,
I am reading about tc (traffic control) and willing to get my feet wet. As requirement, there should be HTB compiled in the kernel. I grabbed a Mandrake 8.2 distro, and didn''t installed the kernel source.
Anyone knows if the HTB is compiled in Mandrake 8.2, or point a way to find that out? I tried to read the /usr/src/kernel.xxxxx/.config file, but it doesn''t exists.
1999 Jan 15
1
Oplock question
Hi! Been having the same problem with oplocks for a while and have been
trying to figure out what's going wrong. The FAQ says that we may have a
networking (hardware?) problem, but according to the Linux box's ifconfig
results, we have had no errors and no dropped packets on the internal
network. I am able to reproduce the error pretty much at will on our
network, and it is not isolated
2014 Jan 30
2
CentOS 6.5: NFS server crashes with list_add corruption errors
Hi,
I'm running CentOS 6.5 as NFS server (v3 and v4) and exporting Ext4 and
XFS filesystem.
After many months that all works fine today the server crash:
Jan 30 09:46:13 qb-storage kernel: ------------[ cut here ]------------
Jan 30 09:46:13 qb-storage kernel: WARNING: at lib/list_debug.c:26
__list_add+0x6d/0xa0() (Not tainted)
Jan 30 09:46:13 qb-storage kernel: Hardware name: PowerEdge
2005 Jun 01
2
TC Filtering Problems
Dear Admins and Hackers,
maybe i am to stupid to use ''tc''. But i having logical Problems to understand the Filter Rules in tc.
Common Config:
There is a Linux Engine (Debian) with a 2.6.11.11 Kernel which act as Packetshaper.
Two Interfaces eth0 and eth1 are installed. Interface ''eth0'' is the Firewall Side Net
195.185.185.0/24. Interface