summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
AgeCommit message (Expand)Author
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
2016-06-10Add the "llprio" field to struct ifnet, and the corresponding keywordVincent Gross
2016-05-18rework the srp api so it takes an srp_ref struct that the caller provides.David Gwynne
2016-05-10make the bpf tap functions take const struct mbuf *David Gwynne
2016-04-14Enable device cloning for bpf. This allows to have just one bpf deviceMartin Natano
2016-04-02refactor bpf_filter a bit.David Gwynne
2016-03-30remove support for BIOCGQUEUE and BIOSGQUEUEDavid Gwynne
2016-03-29make bpf_mtap et al return whether the mbuf should be droppedDavid Gwynne
2016-02-12Convert to uiomove. From Martin Natano.Stefan Kempf
2016-02-10protect the bpf ring with splnet as well as the kernel lock.David Gwynne
2016-02-05return if the bpf_if passed to bpf_tap and _bpf_mtap are NULL.David Gwynne
2016-01-07Make open(O_NONBLOCK) of tun, tap, and bpf behave like open+ioctl(FIONBIO)Philip Guenther
2015-12-05remove old lint annotationsTed Unangst
2015-10-07Do not call bpf_catchpacket() if another CPU detached a file from theMartin Pieuchot
2015-09-29make the bpf filters a bpf_program instead of an array of bpf_insn.David Gwynne
2015-09-29add sizes to some of the simpler free callsTheo de Raadt
2015-09-13There's no point in abstracting ifp->if_output() as long as pf_test()Martin Pieuchot
2015-09-12Stop overwriting the rt_ifp pointer of RTF_LOCAL routes with lo0ifp.Martin Pieuchot
2015-09-11FOREACH macro is not safe to use when removing elements on a list.Martin Pieuchot
2015-09-09convert bpf to using an srp list for the list of descriptors.David Gwynne
2015-09-01reintroduce bpf.c r1.121.David Gwynne
2015-08-23back out bpf+srp. its blowing up in a bridge setup.David Gwynne
2015-08-16make bpf_mtap mpsafe by using SRPs.David Gwynne