diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 20:10:31 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 20:10:31 +0100 |
| commit | fc00c656c96528112d05cf0edf8631bd5eaea446 (patch) | |
| tree | a6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/arch/x86_64/linux/tc_ematch/tc_em_text.h | |
Add build system scaffolding and libc headers
Diffstat (limited to 'include/arch/x86_64/linux/tc_ematch/tc_em_text.h')
| -rw-r--r-- | include/arch/x86_64/linux/tc_ematch/tc_em_text.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/arch/x86_64/linux/tc_ematch/tc_em_text.h b/include/arch/x86_64/linux/tc_ematch/tc_em_text.h new file mode 100644 index 00000000..e8761987 --- /dev/null +++ b/include/arch/x86_64/linux/tc_ematch/tc_em_text.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_EM_TEXT_H +#define __LINUX_TC_EM_TEXT_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TC_EM_TEXT_ALGOSIZ 16 + +struct tcf_em_text { + char algo[TC_EM_TEXT_ALGOSIZ]; + __u16 from_offset; + __u16 to_offset; + __u16 pattern_len; + __u8 from_layer : 4; + __u8 to_layer : 4; + __u8 pad; +}; + +#endif |
