Last active
October 3, 2020 18:11
-
-
Save mattnite/74af9ad882338adf121bbe7fafac3b3c to your computer and use it in GitHub Desktop.
Zig BPF Insn and Map Definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub const Insn = packed struct { | |
code: u8, | |
dst: u4, | |
src: u4, | |
off: i16, | |
imm: i32, | |
}; | |
pub const MapDef = extern struct { | |
type: u32, | |
key_size: u32, | |
value_size: u32, | |
max_entries: u32, | |
map_flags: u32, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment