46#include <sys/kernel.h>
48#include <sys/malloc.h>
51#include <sys/syslog.h>
60#ifdef NG_SEPARATE_MALLOC
63#define M_NETGRAPH_XXX M_NETGRAPH
191 if ((xxxp->
flags & SCF_RUNNING) == 0) {
192 ng_xxx_start_hardware(xxxp);
205 if (!isdigit(*cp) || (cp[0] ==
'0' && cp[1] !=
'\0'))
207 dlci = (int)strtoul(cp, &eptr, 10);
208 if (*eptr !=
'\0' || dlci < 0 || dlci > 1023)
290 xxxp->
flags = *((u_int32_t *) msg->
data);
357 return (ENETUNREACH);
421#ifndef PERSISTANT_NODE
int ng_connect_t(hook_p hook)
#define NG_HOOK_NODE(hook)
int ng_rcvmsg_t(node_p node, item_p item, hook_p lasthook)
int ng_disconnect_t(hook_p hook)
#define NG_NODE_SET_PRIVATE(node, val)
#define NG_RESPOND_MSG(error, here, item, resp)
#define NG_NODE_IS_VALID(node)
#define NG_HOOK_PEER(hook)
#define NG_NODE_UNREF(node)
#define NG_HOOK_SET_PRIVATE(hook, val)
int ng_rmnode_self(node_p here)
#define NG_FWD_NEW_DATA(error, item, hook, m)
#define NG_SEND_DATA_ONLY(error, hook, m)
#define NG_NODE_REVIVE(node)
#define NG_HOOK_FORCE_QUEUE(hook)
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 NGI_GET_MSG(i, m)
#define NG_NODE_PRIVATE(node)
int ng_newhook_t(node_p node, hook_p hook, const char *name)
#define NG_HOOK_PRIVATE(hook)
MALLOC_DEFINE(M_NG_CCATM, "ng_ccatm", "netgraph uni api node")
#define NG_MKRESPONSE(rsp, msg, len, how)
const struct ng_parse_type ng_parse_int32_type
const struct ng_parse_type ng_parse_struct_type
static const struct ng_parse_type ng_xxx_stat_type
NETGRAPH_INIT(xxx, &typestruct)
static ng_newhook_t ng_xxx_newhook
static ng_rcvdata_t ng_xxx_rcvdata
static ng_rcvmsg_t ng_xxx_rcvmsg
static struct ng_type typestruct
static ng_disconnect_t ng_xxx_disconnect
static const struct ng_parse_struct_field ng_xxx_stat_type_fields[]
static const struct ng_cmdlist ng_xxx_cmdlist[]
static ng_shutdown_t ng_xxx_shutdown
static ng_connect_t ng_xxx_connect
static ng_constructor_t ng_xxx_constructor
#define NG_XXX_HOOK_DEBUG
#define NG_XXX_HOOK_DOWNSTREAM
#define NG_XXX_STATS_TYPE_INFO
#define NG_XXX_HOOK_DLCI_LEADIN
struct XXX_hookinfo channel[XXX_NUM_DLCIS]
struct XXX_hookinfo downstream_hook
struct ng_mesg::ng_msghdr header