mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
libbpf.h: add BPF_JMP_A macro
Add unconditional jump macro to use in generated bpf programs.
This commit is contained in:
parent
17f149556a
commit
e867866623
@ -174,6 +174,16 @@ struct bpf_insn;
|
||||
.off = OFF, \
|
||||
.imm = IMM })
|
||||
|
||||
/* Unconditional jumps */
|
||||
|
||||
#define BPF_JMP_A(OFF) \
|
||||
((struct bpf_insn) { \
|
||||
.code = BPF_JMP | BPF_JA, \
|
||||
.dst_reg = 0, \
|
||||
.src_reg = 0, \
|
||||
.off = OFF, \
|
||||
.imm = 0 })
|
||||
|
||||
/* Raw code statement block */
|
||||
|
||||
#define BPF_RAW_INSN(CODE, DST, SRC, OFF, IMM) \
|
||||
|
Loading…
Reference in New Issue
Block a user