aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_bpf.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix build without BPF_JITTER option.Jung-uk Kim2005-12-071-1/+3
| | | | Notes: svn path=/head/; revision=153214
* Add BPF Just-In-Time compiler support for ng_bpf(4).Jung-uk Kim2005-12-071-2/+28
| | | | | | | | The sysctl is changed from net.bpf.jitter.enable to net.bpf_jitter.enable and this controls both bpf(4) and ng_bpf(4) now. Notes: svn path=/head/; revision=153213
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-2/+3
| | | | Notes: svn path=/head/; revision=139823
* Avoid calling bpf_filter() with len == 0, which causes a change in semanticsArchie Cobbs2004-06-231-1/+4
| | | | | | | | | | (it treats the buffer pointer as an mbuf pointer) and subsequent panic. MFC after: 3 days Reported by: Tony Hariman <tony@cbn.net.id> Notes: svn path=/head/; revision=130956
* Switch to using C99 sparse initialisers for the type methods array.Julian Elischer2004-05-291-12/+9
| | | | | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week Notes: svn path=/head/; revision=129823
* Fix GCC warnings caused by initializing a zero length array. In the process,Archie Cobbs2002-05-311-9/+7
| | | | | | | | | | simply things a bit by getting rid of 'struct ng_parse_struct_info' which was useless because it only contained one field. MFC after: 2 weeks Notes: svn path=/head/; revision=97685
* Update to C99, s/__FUNCTION__/__func__/,David E. O'Brien2001-12-101-1/+1
| | | | | | | also don't use ANSI string concatenation. Notes: svn path=/head/; revision=87599
* Fix cut and paste error in a comment.Julian Elischer2001-01-301-1/+1
| | | | | | | Submitted by: Peter Wemm <peter@freebsd.org> Notes: svn path=/head/; revision=71821
* Another brian fix, luckily not in live code.Julian Elischer2001-01-111-3/+1
| | | | Notes: svn path=/head/; revision=70933
* Fix some memory leaksJulian Elischer2001-01-101-8/+14
| | | | | | | Add memory leak detection assitance. Notes: svn path=/head/; revision=70870
* Part 2 of the netgraph rewrite.Julian Elischer2001-01-081-16/+15
| | | | | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org Notes: svn path=/head/; revision=70784
* Rewrite of netgraph to start getting ready for SMP.Julian Elischer2001-01-061-30/+32
| | | | | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems. Notes: svn path=/head/; revision=70700
* Divorce the kernel binary ABI version number from the messageJulian Elischer2000-12-181-1/+1
| | | | | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change) Notes: svn path=/head/; revision=70159
* Reviewed by: Archie@freebsd.orgJulian Elischer2000-12-121-2/+1
| | | | | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-) Notes: svn path=/head/; revision=69922
* Add the use of M_ZERO to netgraph.David Malone2000-11-181-2/+1
| | | | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Submitted by: archie Approved by: archie Notes: svn path=/head/; revision=68876
* Since neither archie nor I work at Whistle any more, change our emailJulian Elischer2000-10-241-1/+1
| | | | | | | | | addresses to be the more usefu @freebsd.org ones so we can keep getting bug-reports. - man pages to follow.. Notes: svn path=/head/; revision=67506
* Allocate all memory (including within node constructors) with M_NOWAITArchie Cobbs2000-09-211-2/+2
| | | | | | | instead of M_WAITOK, to allow for maximum flexibility. Notes: svn path=/head/; revision=66182
* Take advantage of the new unsigned and hex integer types.Archie Cobbs2000-08-101-4/+4
| | | | Notes: svn path=/head/; revision=64508
* Two simple changes to the kernel internal API for netgraph modules,Julian Elischer2000-04-281-2/+3
| | | | | | | | | | to support future work in flow-control and 'packet reject/replace' processing modes. reviewed by: phk, archie Notes: svn path=/head/; revision=59728
* Change definition of NG_BPF_HOOKPROG_SIZE() so as not to requireArchie Cobbs1999-12-061-7/+8
| | | | | | | a structure pointer, just the number of BPF instructions. Notes: svn path=/head/; revision=54214
* New netgraph node type, ng_bpf(8). This node type allows you toArchie Cobbs1999-12-031-0/+501
apply bpf(4) filters to data travelling through a netgraph network. Notes: svn path=/head/; revision=54097