#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.
◆ ACCEPT_FILTER_MOD
#define ACCEPT_FILTER_MOD |
◆ DNS_OK
◆ DNS_RUN
◆ DNS_WAIT
◆ GET16
Value: do { \
unsigned int v0, v1; \
GET8(p, v0); \
GET8(p, v1); \
val = v0 * 0x100 + v1; \
} while (0)
Definition at line 95 of file accf_dns.c.
◆ GET8
Value: do { \
if (p->offset < p->moff) \
while (p->offset >= p->moff + p->m->m_len) { \
p->moff += p->m->m_len; \
p->m = p->m->m_next; \
if (p->m == NULL) { \
p->m = p->n; \
p->n = p->m->m_nextpkt; \
} \
if (p->m == NULL) \
} \
val = *(mtod(p->m, unsigned char *) + (p->offset - p->moff)); \
p->offset++; \
} while (0)
Definition at line 78 of file accf_dns.c.
◆ ACCEPT_FILTER_DEFINE()
ACCEPT_FILTER_DEFINE |
( |
accf_dns |
, |
|
|
"dnsready" |
, |
|
|
sohasdns |
, |
|
|
NULL |
, |
|
|
NULL |
, |
|
|
1 |
|
|
) |
| |
◆ skippacket()
static int skippacket |
( |
struct sockbuf * |
sb | ) |
|
|
static |
◆ sohasdns()
static int sohasdns |
( |
struct socket * |
so, |
|
|
void * |
arg, |
|
|
int |
waitflag |
|
) |
| |
|
static |