search for: offshift

Displaying 2 results from an estimated 2 matches for "offshift".

Did you mean: kfgshift
1999 Nov 14
0
help: can some body tell me the how to fill params of u32 filter in kernel ?
...ant 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 zxl zxlchinese@china.com
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