HomeFreeBSD

bpf: don't call bpf_detachd() in bpf_setdlt()

Description

bpf: don't call bpf_detachd() in bpf_setdlt()

The bpf_attachd() will perform bpf_detachd() itself. Performing it twice
will lead to doing CK_LIST_REMOVE twice.

Reported & tested by: bz

Details

Provenance
glebiusAuthored on Feb 12 2026, 8:11 PM
Parents
rGd19fd2f34922: ip_mroute: Make the routing socket private
Branches
Unknown
Tags
Unknown