aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tc_ematch
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-06-24 00:00:58 -0400
committerDavid S. Miller <davem@davemloft.net>2005-06-24 00:00:58 -0400
commitd675c989ed2d4ba23dff615330b04371aea83534 (patch)
tree856df6f7dc1fba81b134e2363e42dbf6022fa671 /include/linux/tc_ematch
parent3fc7e8a6d842f72d16d2623b1022814a635ab961 (diff)
[PKT_SCHED]: Packet classification based on textsearch (ematch)
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tc_ematch')
-rw-r--r--include/linux/tc_ematch/tc_em_text.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/tc_ematch/tc_em_text.h b/include/linux/tc_ematch/tc_em_text.h
new file mode 100644
index 000000000000..7cd43e99c7f5
--- /dev/null
+++ b/include/linux/tc_ematch/tc_em_text.h
@@ -0,0 +1,19 @@
1#ifndef __LINUX_TC_EM_TEXT_H
2#define __LINUX_TC_EM_TEXT_H
3
4#include <linux/pkt_cls.h>
5
6#define TC_EM_TEXT_ALGOSIZ 16
7
8struct tcf_em_text
9{
10 char algo[TC_EM_TEXT_ALGOSIZ];
11 __u16 from_offset;
12 __u16 to_offset;
13 __u16 pattern_len;
14 __u8 from_layer:4;
15 __u8 to_layer:4;
16 __u8 pad;
17};
18
19#endif