#include <sys/param.h>
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/malloc.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
#include <netgraph/ng_vjc.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <net/slcompress.h>
Go to the source code of this file.
◆ ERROUT
#define ERROUT |
( |
|
x | ) |
do { error = (x); goto done; } while (0) |
◆ MAX_VJHEADER
◆ NG_VJC_TSTATE_PTR_TYPE
◆ priv_p
◆ NETGRAPH_INIT()
NETGRAPH_INIT |
( |
vjc |
, |
|
|
& |
ng_vjc_typestruct |
|
) |
| |
◆ ng_vjc_constructor()
static int ng_vjc_constructor |
( |
node_p |
node | ) |
|
|
static |
◆ ng_vjc_disconnect()
static int ng_vjc_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_vjc_newhook()
static int ng_vjc_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ ng_vjc_pulluphdrs()
static struct mbuf * ng_vjc_pulluphdrs |
( |
struct mbuf * |
m, |
|
|
int |
knownTCP |
|
) |
| |
|
static |
◆ ng_vjc_rcvdata()
◆ ng_vjc_rcvmsg()
Definition at line 291 of file ng_vjc.c.
References ng_mesg::ng_msghdr::arglen, ng_mesg::ng_msghdr::cmd, ng_mesg::data, ngm_vjc_config::enableComp, ngm_vjc_config::enableDecomp, ERROUT, ng_mesg::header, ngm_vjc_config::maxChannel, NG_FREE_MSG, NG_MKRESPONSE, NG_NODE_PRIVATE, NG_RESPOND_MSG, NG_VJC_MAX_CHANNELS, NG_VJC_MIN_CHANNELS, NGI_GET_MSG, NGM_VJC_CLR_STATS, NGM_VJC_COOKIE, NGM_VJC_GET_CONFIG, NGM_VJC_GET_STATE, NGM_VJC_RECV_ERROR, NGM_VJC_SET_CONFIG, and ng_mesg::ng_msghdr::typecookie.
◆ ng_vjc_shutdown()
static int ng_vjc_shutdown |
( |
node_p |
node | ) |
|
|
static |
◆ ng_vjc_cmds
◆ ng_vjc_config_type
Initial value:= {
}
const struct ng_parse_type ng_parse_struct_type
static const struct ng_parse_struct_field ng_vjc_config_type_fields[]
Definition at line 105 of file ng_vjc.c.
◆ ng_vjc_config_type_fields
◆ ng_vjc_constructor
◆ ng_vjc_cs_hdr_type
Initial value:= {
}
const struct ng_parse_type ng_parse_fixedarray_type
static const struct ng_parse_fixedarray_info ng_vjc_cs_hdr_type_info
Definition at line 124 of file ng_vjc.c.
◆ ng_vjc_cs_hdr_type_info
Initial value:= {
MAX_HDR
}
const struct ng_parse_type ng_parse_hint8_type
Definition at line 120 of file ng_vjc.c.
◆ ng_vjc_cstate_type
Initial value:= {
}
static const struct ng_parse_struct_field ng_vjc_cstate_type_fields[]
Definition at line 138 of file ng_vjc.c.
◆ ng_vjc_cstate_type_fields
Initial value:= {
{ NULL }
}
const struct ng_parse_type ng_parse_uint16_type
const struct ng_parse_type ng_parse_uint8_type
static const struct ng_parse_type ng_vjc_cs_hdr_type
#define NG_VJC_TSTATE_PTR_TYPE
Definition at line 130 of file ng_vjc.c.
◆ ng_vjc_cstatearray_type
Initial value:= {
}
static const struct ng_parse_fixedarray_info ng_vjc_cstatearray_type_info
Definition at line 148 of file ng_vjc.c.
◆ ng_vjc_cstatearray_type_info
Initial value:= {
MAX_STATES
}
static const struct ng_parse_type ng_vjc_cstate_type
Definition at line 144 of file ng_vjc.c.
◆ ng_vjc_disconnect
◆ ng_vjc_newhook
◆ ng_vjc_rcvdata
◆ ng_vjc_rcvmsg
◆ ng_vjc_shutdown
◆ ng_vjc_slcompress_type
Initial value:= {
}
static const struct ng_parse_struct_field ng_vjc_slcompress_type_fields[]
Definition at line 174 of file ng_vjc.c.
◆ ng_vjc_slcompress_type_fields
Initial value:= {
{ NULL }
}
const struct ng_parse_type ng_parse_uint32_type
const struct ng_parse_type ng_parse_hint16_type
static const struct ng_parse_type ng_vjc_cstatearray_type
Definition at line 155 of file ng_vjc.c.
◆ ng_vjc_typestruct
Initial value:= {
}
static ng_rcvdata_t ng_vjc_rcvdata
static ng_rcvmsg_t ng_vjc_rcvmsg
static ng_disconnect_t ng_vjc_disconnect
static ng_constructor_t ng_vjc_constructor
static const struct ng_cmdlist ng_vjc_cmds[]
static ng_shutdown_t ng_vjc_shutdown
static ng_newhook_t ng_vjc_newhook
Definition at line 220 of file ng_vjc.c.