aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-08-10 16:42:35 -0700
committerStephen Hemminger <stephen@networkplumber.org>2017-08-10 16:42:35 -0700
commit3af3d358a3a991f8276e96a06777fc43c28b8e71 (patch)
tree9cf9611269eec3a98ce43b555b4edb20696e4301 /include
parent16ab6c47ba23af15c5f384a2c6abe04600f95eaf (diff)
downloadplatform_external_iproute2-3af3d358a3a991f8276e96a06777fc43c28b8e71.tar.gz
platform_external_iproute2-3af3d358a3a991f8276e96a06777fc43c28b8e71.tar.bz2
platform_external_iproute2-3af3d358a3a991f8276e96a06777fc43c28b8e71.zip
more BPF headers update
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/bpf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index 8b3d7d3f..9c7c78bc 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -30,9 +30,14 @@
#define BPF_FROM_LE BPF_TO_LE
#define BPF_FROM_BE BPF_TO_BE
+/* jmp encodings */
#define BPF_JNE 0x50 /* jump != */
+#define BPF_JLT 0xa0 /* LT is unsigned, '<' */
+#define BPF_JLE 0xb0 /* LE is unsigned, '<=' */
#define BPF_JSGT 0x60 /* SGT is signed '>', GT in x86 */
#define BPF_JSGE 0x70 /* SGE is signed '>=', GE in x86 */
+#define BPF_JSLT 0xc0 /* SLT is signed, '<' */
+#define BPF_JSLE 0xd0 /* SLE is signed, '<=' */
#define BPF_CALL 0x80 /* function call */
#define BPF_EXIT 0x90 /* function return */