give interfaces an if_bpf_mtap handler.
authordlg <dlg@openbsd.org>
Sat, 20 Feb 2021 04:35:41 +0000 (04:35 +0000)
committerdlg <dlg@openbsd.org>
Sat, 20 Feb 2021 04:35:41 +0000 (04:35 +0000)
commitb4e8a93817193379bfa047db06a860854710763f
treef6e73b016d889acfd87a73625d8df0036191fcda
parent3b89bb0abfc8b87a0331cf03a38e4a5a3b38454a
give interfaces an if_bpf_mtap handler.

the network stack is now responsible for calling bpf for packets
that the interface receives, and we so far got away with using
bpf_mtap_ether for everything. this doesn't work if layer 3 input
goes through the same functions, so letting drivers specify the
appropriate bpf mtap function means they will be able to cope.
sys/net/if_var.h