use crate::generated::bpf_attach_type;
#[derive(Copy, Clone, Debug)]
pub enum CgroupSockoptAttachType {
Get,
Set,
}
impl From<CgroupSockoptAttachType> for bpf_attach_type {
fn from(s: CgroupSockoptAttachType) -> Self {
match s {
CgroupSockoptAttachType::Get => Self::BPF_CGROUP_GETSOCKOPT,
CgroupSockoptAttachType::Set => Self::BPF_CGROUP_SETSOCKOPT,
}
}
}