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:
ahwayakchih
2026-04-28 21:54:54 +02:00
committed by Alex Rønne Petersen
parent 6d98649f68
commit 0ec456c785
+6
View File
@@ -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;