bpf: handling missing defines

parent 7aec2bd3
...@@ -29,6 +29,18 @@ ...@@ -29,6 +29,18 @@
#include <linux/filter.h> #include <linux/filter.h>
#endif #endif
#ifndef BPF_F_ALLOW_OVERRIDE
#define BPF_F_ALLOW_OVERRIDE (1U << 0)
#endif
#ifndef BPF_F_ALLOW_MULTI
#define BPF_F_ALLOW_MULTI (1U << 1)
#endif
#ifndef BPF_F_REPLACE
#define BPF_F_REPLACE (1U << 2)
#endif
#ifndef HAVE_BPF #ifndef HAVE_BPF
union bpf_attr; union bpf_attr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment