summaryrefslogtreecommitdiff
path: root/include/linux/tc_ematch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.davemloft.net>2005-02-14 20:16:10 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2005-02-14 20:16:10 -0800
commite29bf325f17d784a519646c490c3aad39ad1739a (patch)
tree2bd2b02567b6032b3286005da64dddc3b3ad8e82 /include/linux/tc_ematch
parent580eb91a2b53c00a3530b27a488ef3aef2121fdf (diff)
[PKT_SCHED]: Multi byte comparison ematch (nbyte)
The nbyte ematch allows comparing any number of bytes at an arbitary offset based on one of the skb layers. Its main usage is intended for IPv6 addresses but may be used for any kind of pattern. 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_nbyte.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/tc_ematch/tc_em_nbyte.h b/include/linux/tc_ematch/tc_em_nbyte.h
new file mode 100644
index 000000000000..f19d1f58ec9d
--- /dev/null
+++ b/include/linux/tc_ematch/tc_em_nbyte.h
@@ -0,0 +1,13 @@
+#ifndef __LINUX_TC_EM_NBYTE_H
+#define __LINUX_TC_EM_NBYTE_H
+
+#include <linux/pkt_cls.h>
+
+struct tcf_em_nbyte
+{
+ __u16 off;
+ __u16 len:12;
+ __u8 layer:4;
+};
+
+#endif