HomeFreeBSD

bpf: Add IfAPI analogue for bpf_peers_present()

Description

bpf: Add IfAPI analogue for bpf_peers_present()

An interface's bpf could feasibly not exist, in which case
bpf_peers_present() would panic from a NULL pointer dereference. Solve
this by adding a new IfAPI that could deal with a NULL bpf, if such
could occur in the network stack.

Reviewed by: zlei
Sponsored by: Juniper Networks, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42082

Details

Provenance
jhibbitsAuthored on Oct 4 2023, 8:56 PM
Reviewer
zlei
Differential Revision
D42082: bpf: Add IfAPI analogue for bpf_peers_present()
Parents
rG5e444deec055: Revert "bpf: Add IfAPI analogue for bpf_peers_present()"
Branches
Unknown
Tags
Unknown