aboutgitcodelistschat:MatrixIRC
path: root/cooker/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'cooker/filter.h')
-rw-r--r--cooker/filter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cooker/filter.h b/cooker/filter.h
index 7705414..afdd0b9 100644
--- a/cooker/filter.h
+++ b/cooker/filter.h
@@ -33,16 +33,20 @@
#define MAX_JUMPS 128
#define EMPTY -1
-enum arg_type { NO_CHECK, U32, U64 };
+enum arg_type { U32, U64 };
union arg_value {
uint32_t v32;
uint64_t v64;
};
+enum arg_cmp { NO_CHECK, EQ, NE, LE, LT, GE, GT, AND_EQ, AND_NE };
+
struct arg {
- enum arg_type type;
union arg_value value;
+ enum arg_type type;
+ enum arg_cmp cmp;
+ union arg_value op2;
};
struct bpf_call {