use crate::generated::bpf_attach_type;
#[derive(Copy, Clone, Debug)]
pub enum CgroupSkbAttachType {
Ingress,
Egress,
}
impl From<CgroupSkbAttachType> for bpf_attach_type {
fn from(s: CgroupSkbAttachType) -> Self {
match s {
CgroupSkbAttachType::Ingress => Self::BPF_CGROUP_INET_INGRESS,
CgroupSkbAttachType::Egress => Self::BPF_CGROUP_INET_EGRESS,
}
}
}