Displaying 3 results from an estimated 3 matches for "offmask".
Did you mean:
df_mask
2007 Jun 01
2
tc offset & subheader matching clarification / question
...:0 prio 1 u32 \
match tcp dst 1234 0xffff flowid 1:5
or its equivalent
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
match u32 0x00001234 0x0000ffff at nexthdr+0 flowid 1:5
is not enough. Looking at f_u32.c, the only thing that nexthdr+ will
cause, is setting offset mask (key->offmask), used in the following line
of net/sched/cls_u32.c:
if ((*(u32*)(ptr+key->off+(off2&key->offmask))^key->val)&key->mask) {
If I understand it correctly, then i.e. lartc howto''s 12.1.1 examples
wouldn''t work as intended. off2 would have to be set by the mean...
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;
short offoff;
short hoff;
__u32 hmask;
struct tc_u32_key keys[0];
};
but i don't know how to fill it ,
the struct's mean?
can you tell me...
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