summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_accf.c
Commit message (Collapse)AuthorAgeFilesLines
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-281-1/+1
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-231-14/+14
| | | | MFC after: 3 months
* o setsockopt(2) cannot remove accept filter. [1]maxim2005-06-111-2/+4
| | | | | | | | | | o getsockopt(SO_ACCEPTFILTER) always returns success on listen socket even we didn't install accept filter on the socket. o Fix these bugs and add regression tests for them. Submitted by: Igor Sysoev [1] Reviewed by: alfred MFC after: 2 weeks
* Move the logic implementing retrieval of the SO_ACCEPTFILTER socket optionrwatson2005-03-121-0/+27
| | | | | | | from uipc_socket.c to uipc_accf.c in do_getopt_accept_filter(), so that it now matches do_setopt_accept_filter(). Slightly reformulate the logic to match the optimistic allocation of storage for the argument in advance, and slightly expand the coverage of the socket lock.
* Part two of post-SMPng cleanup of accept filter registration: perform allrwatson2005-03-121-34/+16
| | | | | allocation up front before grabbing the socket mutex and doing the registration work. The result is a lot cleaner.
* First step in simplifying accept filter socket option logic in therwatson2005-03-111-17/+24
| | | | | post-SMPng world order. Centralize handling of the socket option clear case in do_setopt_accept_filter().
* Re-style do_setopt_accept_filter() to match uipc_accf.c style, and fixrwatson2005-02-181-8/+6
| | | | | | one other style nit in the file. MFC after: 3 days
* Move do_setopt_accept_filter() from uipc_socket.c to uipc_accf.c, whererwatson2005-02-181-0/+120
| | | | | | the rest of the accept filter code currently lives. MFC after: 3 days
* Minor style tweaks: line wrap comments and lines more consistently.rwatson2005-02-181-9/+9
| | | | MFC after: 3 days
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-1/+1
|
* Add a global mutex, accept_filter_mtx, to protect the global list ofrwatson2004-06-011-7/+17
| | | | accept filters and prevent read-modify-write races.
* Add some missing <sys/module.h> includes which are masked by thephk2004-05-301-0/+1
| | | | one on death-row in <sys/kernel.h>
* Use __FBSDID().obrien2003-06-111-2/+3
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Revert the last bits of my bogus move of NMBCLUSTERSjesper2001-06-011-0/+1
| | | | to <sys/param.h>
* Move the definition of NMBCLUSTERS from src/sys/kern/uipc_mbuf.cjesper2001-05-311-1/+0
| | | | | | | to <sys/param.h>, so it's available to src/sys/netinet/ip_input.c, and remove the now unneeded includes of "opt_param.h". MFC after: 1 week
* Remove unneeded #include <sys/proc.h> lines.phk2000-10-291-1/+0
|
* Accept filter maintainancealfred2000-09-061-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update copyrights. Introduce a new sysctl node: net.inet.accf Although acceptfilters need refcounting to be properly (safely) unloaded as a temporary hack allow them to be unloaded if the sysctl net.inet.accf.unloadable is set, this is really for developers who want to work on thier own filters. A near complete re-write of the accf_http filter: 1) Parse check if the request is HTTP/1.0 or HTTP/1.1 if not dump to the application. Because of the performance implications of this there is a sysctl 'net.inet.accf.http.parsehttpversion' that when set to non-zero parses the HTTP version. The default is to parse the version. 2) Check if a socket has filled and dump to the listener 3) optimize the way that mbuf boundries are handled using some voodoo 4) even though you'd expect accept filters to only be used on TCP connections that don't use m_nextpkt I've fixed the accept filter for socket connections that use this. This rewrite of accf_http should allow someone to use them and maintain full HTTP compliance as long as net.inet.accf.http.parsehttpversion is set.
* disallow unload until we do proper refcountingalfred2000-07-201-0/+9
|
* return of the accept filter part IIalfred2000-06-201-0/+133
accept filters are now loadable as well as able to be compiled into the kernel. two accept filters are provided, one that returns sockets when data arrives the other when an http request is completed (doesn't work with 0.9 requests) Reviewed by: jmg
OpenPOWER on IntegriCloud