summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/atm/sscop/ng_sscop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/atm/sscop/ng_sscop.c')
-rw-r--r--sys/netgraph/atm/sscop/ng_sscop.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/sys/netgraph/atm/sscop/ng_sscop.c b/sys/netgraph/atm/sscop/ng_sscop.c
index b87be7c..0d5906d 100644
--- a/sys/netgraph/atm/sscop/ng_sscop.c
+++ b/sys/netgraph/atm/sscop/ng_sscop.c
@@ -196,18 +196,16 @@ static ng_rcvdata_t ng_sscop_rcvmanage;
static int ng_sscop_mod_event(module_t, int, void *);
static struct ng_type ng_sscop_typestruct = {
- NG_ABI_VERSION,
- NG_SSCOP_NODE_TYPE,
- ng_sscop_mod_event, /* Module event handler (optional) */
- ng_sscop_constructor, /* Node constructor */
- ng_sscop_rcvmsg, /* control messages come here */
- ng_sscop_shutdown, /* reset, and free resources */
- ng_sscop_newhook, /* first notification of new hook */
- NULL, /* findhook */
- NULL, /* connect */
- ng_sscop_rcvlower, /* rcvdata */
- ng_sscop_disconnect, /* notify on disconnect */
- ng_sscop_cmdlist,
+ .version = NG_ABI_VERSION,
+ .name = NG_SSCOP_NODE_TYPE,
+ .mod_event = ng_sscop_mod_event,
+ .constructor = ng_sscop_constructor,
+ .rcvmsg = ng_sscop_rcvmsg,
+ .shutdown = ng_sscop_shutdown,
+ .newhook = ng_sscop_newhook,
+ .rcvdata = ng_sscop_rcvlower,
+ .disconnect = ng_sscop_disconnect,
+ .cmdlist = ng_sscop_cmdlist,
};
NETGRAPH_INIT(sscop, &ng_sscop_typestruct);
OpenPOWER on IntegriCloud