summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
AgeCommit message (Expand)Author
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
2012-12-21bpf allocates packet buffers in the ioctl path and can sleepMike Belopuhov
2012-04-14Use DLT_LOOP for all tunneling interfaces.YASUOKA Masahiko
2012-01-16bpf devices behave similar to raw sockets and never block on write,Philip Guenthe
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
2011-01-04in bpf_movein(), range-check mbuf size against MCLBYTES beforeTheo de Raadt
2010-09-21pflog overhaulHenning Brauer
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
2009-10-26Set the rdomain in bpfwrite() to the interface rdomain so that bpf senderClaudio Jeker
2009-09-21Properly reference count bpf descriptors when using kqueue.Can Erkin Acar
2009-09-07de-inline a function which gains absolutely no benefit at all from itTheo de Raadt
2008-11-26dont have bpf.h expose the kernel ticks variable wherever it is includeing.David Gwynne
2008-11-09Introduce bpf_mtap_ether(), which for the benefit of bpf listenersChristian Weisgerber
2008-09-17remove dead stores and newly created unused variables.Charles Longeau
2008-01-25Prevent USB network devices to generate a page fault trap when detachedMarcus Glocker
2007-09-15malloc sweep:Henning Brauer