diff --git a/include/linux/filter.h b/include/linux/filter.h index e7e3373..a49bfc2 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -37,6 +37,13 @@ .off = 0, \ .imm = IMM }) +#define BPF_CALL_REL(DST) \ + ((struct bpf_insn) { \ + .dst_reg = 0, \ + .src_reg = BPF_PSEUDO_CALL, \ + .off = 0, \ + .imm = DST }) + #define BPF_EXIT_INSN() \ ((struct bpf_insn) { \ .code = BPF_JMP | BPF_EXIT, \