search for: tc_u32_sel

Displaying 6 results from an estimated 6 matches for "tc_u32_sel".

2004 Nov 09
4
[PATCH] [TRY2] Use nfmark as a key in u32 classifier
Hello! This is the try number two. What was changed: - Added selectable choice in Kconfig file (thanks Jamal!) - Don''t abuse tc_u32_sel to not break backward compatibility (thanks Patrick!). Stephen, do you have any comments on iproute2 part? I know it''s not perfect but this is the best way, I think. "u32 match mark vvvv mmmm" it''s intuitive but breaks a little the levels, "u32 mark vvvv mmmm&qu...
2006 Jan 03
2
match mark problem still resists
...oblem be related to the only match inside ''parse_selector'' that is treated differently from other matches? All except ''mark'' is parsed like parse_xxxx(&argc, &argv, sel, ..) and mark is parsed parse_mark(&argc, &argv, n,..) where sel is a struct tc_u32_sel and n is a struct nlmsghdr. I should say that this deserves at least an "You idiot, you are using it the wrong way. Do like this and stop bothering me!" answer. Sorry my tempestuous attitude. Frustratedly -- Ethy H. Brito /"\ InterNexo Ltda. \ / CAMPANHA DA FITA...
2003 Aug 16
0
offset mask usage in u32 filter
....ittc.ku.edu/howto/node48.html I could find no explanation of this usage in LARTC, and specifically, Section 12.4 on Hashing filters does not use it. Searches of the mailing list did not yield an answer. Review of tc code in f_u32.c showed that in parse_offset() the arguments were assembled into tc_u32_sel structure fields and passed into the kernel. However, I could not figure out what the intent was in cls_u32.c for these fields. I would much appreciate an explanation or pointers to information. Walter __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web...
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 zxl zxlchinese...
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
2006 Feb 10
14
[PATCH] TC: bug fixes to the "sample" clause
...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 --- iproute-20051007.keep/tc/f_u32.c 2005-01-19 08:11:58.000000000 +1000 +++ iproute-20051007/tc/f_u32.c 2006-01-12 17:12:43.000000000 +1000 @@ -878,6 +878,7 @@ struct tc_u32_sel sel; struct tc_u32_key keys[4]; } sel2; + memset(&sel2, 0, sizeof(sel2)); NEXT_ARG(); if (parse_selector(&argc, &argv, &sel2.sel, n)) { fprintf(stderr, "Illegal \"sample\"\n"); PATCH 2 ======= In tc, the u32 sample clause uses the 2.4 h...