| author | |
| committer | |
| log | 0ec456c785aa2fe8fa686fd19282a887f3cbe8eb |
| tree | a859e1e95bea49cbabf03178883dec83b0f269bc |
| parent | 6d98649f68cd369376020733a691db5c4324130a |
As described in #32112, two instructions were missing from bpf.zig. They're declared in `linux/filter.h` (not in `linux/bpf.h`).1 files changed, 6 insertions(+), 0 deletions(-)
lib/std/os/linux/bpf.zig+6| ... | ... | @@ -58,6 +58,12 @@ pub const JGT = 0x20; |
| 58 | 58 | pub const JGE = 0x30; |
| 59 | 59 | pub const JSET = 0x40; |
| 60 | 60 | |
| 61 | // misc fields | |
| 62 | /// copy A into X | |
| 63 | pub const TAX = 0x00; | |
| 64 | /// copy X into A | |
| 65 | pub const TXA = 0x80; | |
| 66 | ||
| 61 | 67 | //#define BPF_SRC(code) ((code) & 0x08) |
| 62 | 68 | pub const K = 0x00; |
| 63 | 69 | pub const X = 0x08; |