opnsense-src/sys/dev/hyperv
Justin Hibbits b2aa3dfc04 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

(cherry picked from commit 8f31b879ecaf9e738dba631df4606742ee404e8e)

bpf: Prefer the boolean form when calling bpf_peers_present()

Reviewed by:	markj, kp, #network
MFC with:	8f31b879ecaf
Differential Revision:	https://reviews.freebsd.org/D45509

(cherry picked from commit 89204d9dcbe28558fae65936a0e93f44d926b88f)
2024-09-25 07:58:27 +02:00
..
hvsock hvsock: Fix a typo in a source code comment 2024-01-07 12:42:45 +01:00
include sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
input sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netvsc bpf: Add IfAPI analogue for bpf_peers_present() 2024-09-25 07:58:27 +02:00
pcib Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi() 2024-03-11 04:23:18 +00:00
storvsc sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
utilities sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vmbus Hyper-V: vmbus: Add NULL check for vmbus_res 2023-11-02 17:10:03 +08:00