* bpf_filter.c (print_bpf_filter_code): Add extended argument, remove static qualifier. Add support for decoding eBPF instruction code. * defs.h (print_bpf_filter_code): New declaration. * xlat/ebpf_class.in: New file. * xlat/ebpf_mode.in: Likewise. * xlat/ebpf_op_alu.in: Likewise. * xlat/ebpf_op_jmp.in: Likewise. * xlat/ebpf_size.in: Likewise. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8 lines
90 B
Plaintext
8 lines
90 B
Plaintext
BPF_LD 0x0
|
|
BPF_LDX 0x1
|
|
BPF_ST 0x2
|
|
BPF_STX 0x3
|
|
BPF_ALU 0x4
|
|
BPF_JMP 0x5
|
|
BPF_ALU64 0x7
|