summaryrefslogtreecommitdiff
path: root/bpf_ext.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 14:21:31 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 14:21:31 +0200
commit4d3be7be483f92030912e976e4dea24edd723f34 (patch)
treef695f07c924f887357d590ecb8f7ba5fc9c81c89 /bpf_ext.h
parent214cb42c626cfe5fe5d9ef1e83e7b23cca1cf02b (diff)
bpf: split up instructions and extensions from header
Move them into a separate header file, so that it is more clean. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'bpf_ext.h')
-rw-r--r--bpf_ext.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/bpf_ext.h b/bpf_ext.h
new file mode 100644
index 0000000..f9892ed
--- /dev/null
+++ b/bpf_ext.h
@@ -0,0 +1,47 @@
+#ifndef BPF_EXT
+#define BPF_EXT
+
+#ifndef SKF_AD_OFF
+# define SKF_AD_OFF (-0x1000)
+#endif
+#ifndef SKF_AD_PROTOCOL
+# define SKF_AD_PROTOCOL 0
+#endif
+#ifndef SKF_AD_PKTTYPE
+# define SKF_AD_PKTTYPE 4
+#endif
+#ifndef SKF_AD_IFINDEX
+# define SKF_AD_IFINDEX 8
+#endif
+#ifndef SKF_AD_NLATTR
+# define SKF_AD_NLATTR 12
+#endif
+#ifndef SKF_AD_NLATTR_NEST
+# define SKF_AD_NLATTR_NEST 16
+#endif
+#ifndef SKF_AD_MARK
+# define SKF_AD_MARK 20
+#endif
+#ifndef SKF_AD_QUEUE
+# define SKF_AD_QUEUE 24
+#endif
+#ifndef SKF_AD_HATYPE
+# define SKF_AD_HATYPE 28
+#endif
+#ifndef SKF_AD_RXHASH
+# define SKF_AD_RXHASH 32
+#endif
+#ifndef SKF_AD_CPU
+# define SKF_AD_CPU 36
+#endif
+#ifndef SKF_AD_VLAN_TAG
+# define SKF_AD_VLAN_TAG 44
+#endif
+#ifndef SKF_AD_VLAN_TAG_PRESENT
+# define SKF_AD_VLAN_TAG_PRESENT 48
+#endif
+#ifndef SKF_AD_PAY_OFFSET
+# define SKF_AD_PAY_OFFSET 52
+#endif
+
+#endif /* BPF_EXT */