#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/module.h>
#include <sys/signalvar.h>
#include <sys/sysctl.h>
#include <sys/socketvar.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | sohashttpget (struct socket *so, void *arg, int waitflag) |
|
static int | soparsehttpvers (struct socket *so, void *arg, int waitflag) |
|
static int | soishttpconnected (struct socket *so, void *arg, int waitflag) |
|
static int | mbufstrcmp (struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) |
|
static int | mbufstrncmp (struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) |
|
static int | sbfull (struct sockbuf *sb) |
|
| ACCEPT_FILTER_DEFINE (accf_http, "httpready", sohashttpget, NULL, NULL, 1) |
|
static | SYSCTL_NODE (_net_inet_accf, OID_AUTO, http, CTLFLAG_RW|CTLFLAG_MPSAFE, 0, "HTTP accept filter") |
|
| SYSCTL_INT (_net_inet_accf_http, OID_AUTO, parsehttpversion, CTLFLAG_RW, &parse_http_version, 1, "Parse http version so that non 1.x requests work") |
|
◆ ACCEPT_FILTER_MOD
#define ACCEPT_FILTER_MOD |
◆ DPRINT
#define DPRINT |
( |
|
fmt, |
|
|
|
args... |
|
) |
| |
◆ NCHRS
◆ STRSETUP
#define STRSETUP |
( |
|
sptr, |
|
|
|
slen, |
|
|
|
str |
|
) |
| |
Value: do { \
sptr = str; \
slen = sizeof(str) - 1; \
} while(0)
Definition at line 145 of file accf_http.c.
◆ __FBSDID()
◆ ACCEPT_FILTER_DEFINE()
ACCEPT_FILTER_DEFINE |
( |
accf_http |
, |
|
|
"httpready" |
, |
|
|
sohashttpget |
, |
|
|
NULL |
, |
|
|
NULL |
, |
|
|
1 |
|
|
) |
| |
◆ mbufstrcmp()
static int mbufstrcmp |
( |
struct mbuf * |
m, |
|
|
struct mbuf * |
npkt, |
|
|
int |
offset, |
|
|
char * |
cmp |
|
) |
| |
|
static |
◆ mbufstrncmp()
static int mbufstrncmp |
( |
struct mbuf * |
m, |
|
|
struct mbuf * |
npkt, |
|
|
int |
offset, |
|
|
int |
max, |
|
|
char * |
cmp |
|
) |
| |
|
static |
◆ sbfull()
static int sbfull |
( |
struct sockbuf * |
sb | ) |
|
|
static |
◆ sohashttpget()
static int sohashttpget |
( |
struct socket * |
so, |
|
|
void * |
arg, |
|
|
int |
waitflag |
|
) |
| |
|
static |
◆ soishttpconnected()
static int soishttpconnected |
( |
struct socket * |
so, |
|
|
void * |
arg, |
|
|
int |
waitflag |
|
) |
| |
|
static |
◆ soparsehttpvers()
static int soparsehttpvers |
( |
struct socket * |
so, |
|
|
void * |
arg, |
|
|
int |
waitflag |
|
) |
| |
|
static |
◆ SYSCTL_INT()
SYSCTL_INT |
( |
_net_inet_accf_http |
, |
|
|
OID_AUTO |
, |
|
|
parsehttpversion |
, |
|
|
CTLFLAG_RW |
, |
|
|
& |
parse_http_version, |
|
|
1 |
, |
|
|
"Parse http version so that non 1.x requests work" |
|
|
) |
| |
◆ SYSCTL_NODE()
static SYSCTL_NODE |
( |
_net_inet_accf |
, |
|
|
OID_AUTO |
, |
|
|
http |
, |
|
|
CTLFLAG_RW| |
CTLFLAG_MPSAFE, |
|
|
0 |
, |
|
|
"HTTP accept filter" |
|
|
) |
| |
|
static |
◆ parse_http_version
int parse_http_version = 1 |
|
static |