summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_hole.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_hole.c')
-rw-r--r--sys/netgraph/ng_hole.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/sys/netgraph/ng_hole.c b/sys/netgraph/ng_hole.c
index 923ed6d..91cb253 100644
--- a/sys/netgraph/ng_hole.c
+++ b/sys/netgraph/ng_hole.c
@@ -102,18 +102,14 @@ static ng_rcvdata_t ngh_rcvdata;
static ng_disconnect_t ngh_disconnect;
static struct ng_type typestruct = {
- NG_ABI_VERSION,
- NG_HOLE_NODE_TYPE,
- NULL, /* modeventhand_t */
- ngh_cons, /* ng_constructor_t */
- ngh_rcvmsg, /* ng_rcvmsg_t */
- NULL, /* ng_shutdown_t */
- ngh_newhook, /* ng_newhook_t */
- NULL, /* ng_findhook_t */
- NULL, /* ng_connect_t */
- ngh_rcvdata, /* ng_rcvdata_t */
- ngh_disconnect, /* ng_disconnect_t */
- ng_hole_cmdlist /* ng_cmdlist */
+ .version = NG_ABI_VERSION,
+ .name = NG_HOLE_NODE_TYPE,
+ .constructor = ngh_cons,
+ .rcvmsg = ngh_rcvmsg,
+ .newhook = ngh_newhook,
+ .rcvdata = ngh_rcvdata,
+ .disconnect = ngh_disconnect,
+ .cmdlist = ng_hole_cmdlist,
};
NETGRAPH_INIT(hole, &typestruct);
OpenPOWER on IntegriCloud