use crate::generated::bpf_attach_type;
#[derive(Clone, Copy, Debug)]
pub enum SkReuseportAttachType {
Select,
SelectOrMigrate,
}
impl From<SkReuseportAttachType> for bpf_attach_type {
fn from(value: SkReuseportAttachType) -> Self {
match value {
SkReuseportAttachType::Select => Self::BPF_SK_REUSEPORT_SELECT,
SkReuseportAttachType::SelectOrMigrate => Self::BPF_SK_REUSEPORT_SELECT_OR_MIGRATE,
}
}
}