mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-08 02:38:00 +03:00
Add missing BPF.TAX and BPF.TXA declarations
As described in #32112, two instructions were missing from bpf.zig. They're declared in `linux/filter.h` (not in `linux/bpf.h`).
This commit is contained in:
committed by
Alex Rønne Petersen
parent
6d98649f68
commit
0ec456c785
@@ -58,6 +58,12 @@ pub const JGT = 0x20;
|
||||
pub const JGE = 0x30;
|
||||
pub const JSET = 0x40;
|
||||
|
||||
// misc fields
|
||||
/// copy A into X
|
||||
pub const TAX = 0x00;
|
||||
/// copy X into A
|
||||
pub const TXA = 0x80;
|
||||
|
||||
//#define BPF_SRC(code) ((code) & 0x08)
|
||||
pub const K = 0x00;
|
||||
pub const X = 0x08;
|
||||
|
||||
Reference in New Issue
Block a user