src/include/override/linux/bpf_insn.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include_next <linux/bpf_insn.h> /* IWYU pragma: export */ |
| 5 | |
| 6 | /* defined in linux/filter.h */ |
| 7 | /* Unconditional jumps, goto pc + off16 */ |
| 8 | #define BPF_JMP_A(OFF) \ |
| 9 | ((struct bpf_insn) { \ |
| 10 | .code = BPF_JMP | BPF_JA, \ |
| 11 | .dst_reg = 0, \ |
| 12 | .src_reg = 0, \ |
| 13 | .off = OFF, \ |
| 14 | .imm = 0 }) |