|
|
|
@ -45,3 +45,15 @@ pub const TC_ACT_REDIRECT: i32 = gen::bindings::TC_ACT_REDIRECT as i32;
|
|
|
|
|
pub const TC_ACT_TRAP: i32 = gen::bindings::TC_ACT_TRAP as i32;
|
|
|
|
|
pub const TC_ACT_VALUE_MAX: i32 = gen::bindings::TC_ACT_VALUE_MAX as i32;
|
|
|
|
|
pub const TC_ACT_EXT_VAL_MASK: i32 = 268435455;
|
|
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
pub struct bpf_map_def {
|
|
|
|
|
pub type_: ::aya_bpf_cty::c_uint,
|
|
|
|
|
pub key_size: ::aya_bpf_cty::c_uint,
|
|
|
|
|
pub value_size: ::aya_bpf_cty::c_uint,
|
|
|
|
|
pub max_entries: ::aya_bpf_cty::c_uint,
|
|
|
|
|
pub map_flags: ::aya_bpf_cty::c_uint,
|
|
|
|
|
pub id: ::aya_bpf_cty::c_uint,
|
|
|
|
|
pub pinning: ::aya_bpf_cty::c_uint,
|
|
|
|
|
}
|
|
|
|
|