summaryrefslogtreecommitdiff
path: root/bpf_insns.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-15 20:57:47 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-15 20:57:47 +0200
commit1bb8cf17318a09ee55a99043703512ec37560b29 (patch)
tree2bcfd5795aeef5efec437f53483ea983e0688776 /bpf_insns.h
parentd9b5259582a6073d1c2bada8c3294c7550c7b678 (diff)
bpf: use Linux' define of BPF_MAXINSNS
Do not necessarily define our own, only in case the Linux one is not available. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'bpf_insns.h')
-rw-r--r--bpf_insns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bpf_insns.h b/bpf_insns.h
index 193f0b7..47db2e3 100644
--- a/bpf_insns.h
+++ b/bpf_insns.h
@@ -1,6 +1,10 @@
#ifndef BPF_INSNS_H
#define BPF_INSNS_H
+#ifndef BPF_MAXINSNS
+# define BPF_MAXINSNS 4096
+#endif
+
#define BPF_CLASS(code) ((code) & 0x07)
#define BPF_LD 0x00
#define BPF_LDX 0x01