summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
AgeCommit message (Expand)Author
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
2014-07-10introduce bpf_mcopy_stripvlan, which cuts the 4 extra bytes out of theHenning Brauer
2014-07-09Add support bpfwrite on DLT_LOOP interfaces.YASUOKA Masahiko
2014-07-09Herr Reyk correctly pointed out that we don't need the if_pflog.h includeHenning Brauer
2014-07-09tedu bpf_mtap_pflog().Henning Brauer
2014-07-09bpf code surgery / shuffling / simplification.Henning Brauer
2014-04-23Don't attempt to deal with link types supported by no drivers in theJeremie Courreges-Anglas
2014-04-14"struct pkthdr" holds a routing table ID, not a routing domain one.Martin Pieuchot
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther
2013-12-24rearrange/correct timeout conditionals to work better.Ted Unangst
2013-11-29panics still being reported. send bpf.c back to 1.85Ted Unangst
2013-11-17speelingDavid Gwynne
2013-11-15calculate the line in the sand before comparing it to ticks, which looksDavid Gwynne
2013-11-12try bpf.c r1.84 again, this time without semantic changes to if statements.David Gwynne
2013-11-11Revert bpf.c 1.84 / bpfdesc.h 1.19 for now, "panic: timeout_add: to_ticks (-1)Stuart Henderson
2013-11-11replace the user of ticks in a condition like "interval + start < ticks"David Gwynne
2012-12-28change the malloc(9) flags from M_DONTWAIT to M_NOWAIT; OK millert@Gleydson Soares
2012-12-21Rather than calling mircotime in bpf_catchpacket each time it's calledMike Belopuhov