summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
AgeCommit message (Expand)Author
2022-03-17Use the refcnt API in bpf.Visa Hankala
2022-02-15Use knote_modify_fn() and knote_process_fn() in bpf.Visa Hankala
2022-02-13The length value in bpf_movein() is casted to from size_t to u_intAlexander Bluhm
2022-02-13Rename knote_modify() to knote_assign()Visa Hankala
2022-02-11Replace manual !klist_empty()+knote() with KNOTE().Visa Hankala
2022-02-05make bpf_movein align the packet payload.David Gwynne
2022-01-16activate/notify waiting kq kevents from bpf_wakeup directly.David Gwynne
2022-01-13Make bpf event filter MP-safeVisa Hankala
2022-01-13Return an error if bpfilter_lookup() fails in bpfkqfilter()Visa Hankala
2021-11-10whitespace tweaks, no functional change.David Gwynne
2021-10-23Fix double free after allocation failure in bpf(4).Visa Hankala
2021-06-15factor out nsecuptime and getnsecuptime.David Gwynne
2021-04-23call klist_invalidate from bpfsdetach to tell kq listeners what happened.David Gwynne
2021-01-21let vfs keep track of nonblocking state for us.David Gwynne
2021-01-17don't encode the mbuf prio as part of the vlan tag in bpf_mtap_ether.David Gwynne
2021-01-02optimise bpf_catchpacket and bpf_wakeup.David Gwynne
2021-01-02bpf(4): remove tickscheloha
2020-12-26bpf(4): bpf_d struct: replace bd_rdStart member with bd_nreaders membercheloha
2020-12-25Refactor klist insertion and removalVisa Hankala
2020-12-12Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.jan
2020-12-12get bpf_mtap_ether to call _bpf_mtap directly instead of via bpf_mtap.David Gwynne
2020-12-12try to read the mbuf timestamp from the mbuf with the pkthdrs in it.David Gwynne
2020-12-11bpf(4): BIOCGRTIMEOUT, BIOCSRTIMEOUT: protect bd_rtout with bd_mtxcheloha
2020-11-04Use sysctl_int_bounded in bpf_sysctlgnezdo
2020-06-18pass the mbuf with the data separately to the one with the pkthdr to mtap.David Gwynne
2020-06-18extend the bpf_hdr struct to include some metadata if available.David Gwynne
2020-05-13bpf(4): separate descriptor non-blocking status from read timeoutcheloha
2020-04-07Abstract the head of knote lists. This allows extending the lists,Visa Hankala
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowVisa Hankala
2020-02-14Push the KERNEL_LOCK() insidge pgsigio() and selwakeup().Martin Pieuchot
2020-01-27update bpf_iflist in bpfsdetach instead of bpfdetach as some driversJoshua Stein
2020-01-08Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP andVisa Hankala
2020-01-02Switch bpf to use pgsigio(9) and sigio_init(9) instead of handrollingClaudio Jeker
2019-12-31Use C99 designated initializers with struct filterops. In addition,Visa Hankala
2019-10-21put bpfdesc reference counting back, revert change introduced in 1.175 as:Alexandr Nedvedicky
2019-10-01remove the internal plumbing that supported a custom mbuf copy function.David Gwynne
2019-09-30remove the "copy function" argument to bpf_mtap_hdr.David Gwynne
2019-09-12we don't need to cast hdr arguments to caddr_t for bpf_mtap_hdr anymore.David Gwynne
2019-09-12make bpf_mtap_hdr take a const void *, not a caddr_t.David Gwynne
2019-06-13free(9) sizes for buffers.Martin Pieuchot
2019-06-10use m_microtime to get the packet rx time it might be available.David Gwynne
2019-05-18BPF: remove redundant reference counting of filedescriptorsAlexandr Nedvedicky
2019-04-25Lower the accepted upper bound for bd_rtout to INT_MAX in order toanton
2019-04-15moving BPF to RCUAlexandr Nedvedicky
2019-04-03Reject negative and too large timeouts passed to BIOCSRTIMEOUT. Sinceanton
2019-03-18extend BIOCSFILDROP so it can be configured to not capture packets.David Gwynne
2018-07-13Some USB network interfaces like rum(4) report ENXIO from theirAlexander Bluhm
2018-03-02Protect the calls to ifpromisc() in bpf(4) with net lock. ThisAlexander Bluhm
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2018-02-01add bpf_tap_hdr(), for handling a buffer (not an mbuf) with a header.David Gwynne