diff options
Diffstat (limited to 'sys/netgraph/ng_socket.c')
-rw-r--r-- | sys/netgraph/ng_socket.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index 87538bc..b13fea3 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -68,6 +68,7 @@ #endif #include <netgraph/ng_message.h> #include <netgraph/netgraph.h> +#include <netgraph/ng_socketvar.h> #include <netgraph/ng_socket.h> /* @@ -96,24 +97,6 @@ * +----------------+ */ -/* Netgraph protocol control block for each socket */ -struct ngpcb { - struct socket *ng_socket; /* the socket */ - struct ngsock *sockdata; /* netgraph info */ - LIST_ENTRY(ngpcb) socks; /* linked list of sockets */ - int type; /* NG_CONTROL or NG_DATA */ -}; - -/* Per-node private data */ -struct ngsock { - struct ng_node *node; /* the associated netgraph node */ - struct ngpcb *datasock; /* optional data socket */ - struct ngpcb *ctlsock; /* optional control socket */ - int flags; - int refs; -}; -#define NGS_FLAG_NOLINGER 1 /* close with last hook */ - /* Netgraph node methods */ static ng_constructor_t ngs_constructor; static ng_rcvmsg_t ngs_rcvmsg; |