summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
AgeCommit message (Expand)Author
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
2015-06-16Store a unique ID, an interface index, rather than a pointer to theMartin Pieuchot
2015-05-13test mbuf pointers against NULL not 0Jonathan Gray
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
2015-02-10make bpf(4) able to filter based on a pf(4) queue ID for tcpdump -Q qnameMartin Pelikan
2015-01-29back bpf.c down to 1.113, from before most recent timeout changes.Ted Unangst
2015-01-28when doing a blocking read with a timeout, after the sleep resetDavid Gwynne
2015-01-09correctly handle no timeouts and make timeout handling in general better.Ted Unangst
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
2014-12-02replace some malloc multiplies with mallocarry. ok deraadt henningTed Unangst
2014-11-23length argument for some free() calls; ok dougTheo de Raadt
2014-10-07when running bpf on an outgoing vlan interface that doesnt have aDavid Gwynne
2014-09-23lock around the sysctl code that sets the bpf buffer sizes so if we everDavid Gwynne
2014-09-22remove a stupid comment above bpfilterattach about how we dont do anythingDavid Gwynne
2014-09-22stash a pointer to bpf_d in the knotes kn_hook instead of the device id.David Gwynne
2014-09-22it's easy to allow bpfwrites bigger than MCLBYTES now that we haveDavid Gwynne
2014-09-22if you request a read timeout and then use kqueues to wait for them, youDavid Gwynne
2014-09-19passing M_NOWAIT to m_tag_get means it can fail, which could hitDavid Gwynne
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-12sizeof(afh), afh being uint32, is cooler than literal "4"Henning Brauer
2014-07-10time to claim copyrightHenning Brauer
2014-07-10some say you don't need NULL checks before free(). Not 0 either.Henning Brauer
2014-07-10introduce the revolutionary concept of NULL pointers. ok gccHenning Brauer