summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
AgeCommit message (Expand)Author
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
2018-01-24add support for bpf on "subsystems", not just network interfacesDavid Gwynne
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-08-11Remove NET_LOCK()'s argument.Martin Pieuchot
2017-05-24When using "tcpdump proto 128" the filter never matched. A signAlexander Bluhm
2017-05-04Introduce sstosa() for converting sockaddr_storage with a type safeAlexander Bluhm
2017-04-20Tweak lock inits to make the system runnable with witness(4)Visa Hankala
2017-01-24splsoftnet() to NET_LOCK() in bpfwrite().Martin Pieuchot
2017-01-24A space here, a space there. Soon we're talking real whitespaceKenneth R Westerback
2017-01-09Use a mutex to serialize accesses to buffer slots.Martin Pieuchot
2017-01-03Revert previous, there's still a problem with recursive entries inMartin Pieuchot
2017-01-02Use a mutex to serialize accesses to buffer slots.Martin Pieuchot
2016-11-28Make sure the descriptor has been removed from the interface listMartin Pieuchot
2016-11-21Make sure bpf_wakeup() is called at most once when matching conditionsMartin Pieuchot
2016-11-21Rename bpf_reset_d() to match bpf_{attach,reset}d().Martin Pieuchot
2016-11-16Use goto in bpf{read,write}() to ease review of locked sections.Martin Pieuchot
2016-11-16Allow bpf_allocbufs() to fail when allocating memory.Martin Pieuchot
2016-10-16Fix bpf_catchpacket comment.Jeremie Courreges-Anglas
2016-09-12bpf_tap() is long dead! Long live bpf_mtap() & friends.Kenneth R Westerback
2016-08-22Call csignal() and selwakeup() from a KERNEL_LOCK'd task.Martin Pieuchot
2016-08-15No need to reset si_selpid after calling selwakeup() the functionMartin Pieuchot
2016-08-15Introduce bpf_put() and bpf_get() instead of mixing macro and functionsMartin Pieuchot
2016-08-15Check if ``bd_bif'' is NULL inside bpf_catchpacket() to match bpfread()Martin Pieuchot
2016-08-15Merge bpfilter_create() into bpfopen() and make it such that theMartin Pieuchot
2016-07-25Make sure closed bpf devices are removed from bpf_d_list to free theMartin Natano