aboutsummaryrefslogtreecommitdiff
path: root/sys/net/bpf_ifnet.c
Commit message (Collapse)AuthorAgeFilesLines
* bpf: add missing IFT_BRIDGE in the write methodGleb Smirnoff2025-12-191-0/+1
| | | | Fixes: 8774a990ee4094f16d596d4b78e0f3239e5d0c88
* bpf: modularize ifnet(9) part of bpfGleb Smirnoff2025-12-151-0/+257
Imagine that bpf(9) tapping can happen at any point in the network stack, not necessarily at interface transmit or receive. To achieve that we need a thin layer of abstraction defined by struct bif_methods, that defines how generic bpf layer works with a tap point of this kind. Implement ifnet(9) specific methods in a separate file bpf_ifnet.c. At this point there is 100% compatibility for all existing interfaces, there is no KPI change, yet. The legacy attaching KPI is layered over new ifnet agnostic KPI. The new KPI may change though, as we can implement multiple DLTs per single tap point in a prettier fashion. The new abstraction layer allows us to move all the 802.11 radio injection hacks out of bpf.c into ieee80211_radiotap.c, so do that immediately as a good proof of concept. Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D53872