diff options
Diffstat (limited to 'sys/netgraph/ng_socket.c')
-rw-r--r-- | sys/netgraph/ng_socket.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index fd3d267..4c3321f 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -130,18 +130,16 @@ static int ship_msg(struct ngpcb *pcbp, struct ng_mesg *msg, /* Netgraph type descriptor */ static struct ng_type typestruct = { - NG_ABI_VERSION, - NG_SOCKET_NODE_TYPE, - ngs_mod_event, - ngs_constructor, - ngs_rcvmsg, - ngs_shutdown, - ngs_newhook, - NULL, - ngs_connect, - ngs_rcvdata, - ngs_disconnect, - NULL + .version = NG_ABI_VERSION, + .name = NG_SOCKET_NODE_TYPE, + .mod_event = ngs_mod_event, + .constructor = ngs_constructor, + .rcvmsg = ngs_rcvmsg, + .shutdown = ngs_shutdown, + .newhook = ngs_newhook, + .connect = ngs_connect, + .rcvdata = ngs_rcvdata, + .disconnect = ngs_disconnect, }; NETGRAPH_INIT(socket, &typestruct); |