36#include <sys/kernel.h>
37#include <sys/malloc.h>
40#include <sys/sockio.h>
41#include <sys/socket.h>
42#include <sys/syslog.h>
89 priv = malloc(
sizeof(*
priv), M_NETGRAPH, M_ZERO | M_WAITOK);
109 localhook = &
priv->mixed;
111 localhook = &
priv->in;
113 localhook = &
priv->out;
117 if (*localhook != NULL)
134 if (hook ==
priv->out) {
135 printf(
"ng_split: got packet from out hook!\n");
138 }
else if ((hook ==
priv->in) && (
priv->mixed != NULL)) {
140 }
else if ((hook ==
priv->mixed) && (
priv->out != NULL)) {
157 free(
priv, M_NETGRAPH);
170 KASSERT(localhook != NULL, (
"%s: null info", __func__));
#define NG_HOOK_NODE(hook)
#define NG_FWD_ITEM_HOOK(error, item, hook)
int ng_disconnect_t(hook_p hook)
#define NG_NODE_SET_PRIVATE(node, val)
#define NG_NODE_IS_VALID(node)
#define NG_NODE_UNREF(node)
#define NG_HOOK_SET_PRIVATE(hook, val)
int ng_rmnode_self(node_p here)
int ng_rcvdata_t(hook_p hook, item_p item)
int ng_shutdown_t(node_p node)
#define NG_FREE_ITEM(item)
int ng_constructor_t(node_p node)
#define NG_NODE_NUMHOOKS(node)
#define NG_NODE_PRIVATE(node)
int ng_newhook_t(node_p node, hook_p hook, const char *name)
#define NG_HOOK_PRIVATE(hook)
static ng_disconnect_t ng_split_disconnect
static ng_shutdown_t ng_split_shutdown
static ng_rcvdata_t ng_split_rcvdata
static struct ng_type typestruct
static ng_newhook_t ng_split_newhook
NETGRAPH_INIT(ng_split, &typestruct)
struct ng_split_private * priv_p
static ng_constructor_t ng_split_constructor
#define NG_SPLIT_HOOK_MIXED
#define NG_SPLIT_HOOK_OUT
#define NG_SPLIT_NODE_TYPE