From d5bb5249b28f8b367e607754ee57bb2949cff37d Mon Sep 17 00:00:00 2001 From: glebius Date: Mon, 23 Jan 2012 15:39:45 +0000 Subject: In ng_socket(4) expose less kernel internals to userland. This commit breaks ABI, but makes probability of ABI breakage in future less. --- sys/netgraph/ng_socketvar.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'sys/netgraph/ng_socketvar.h') diff --git a/sys/netgraph/ng_socketvar.h b/sys/netgraph/ng_socketvar.h index c1e59dc..59080d2 100644 --- a/sys/netgraph/ng_socketvar.h +++ b/sys/netgraph/ng_socketvar.h @@ -50,20 +50,6 @@ struct ngpcb { 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; - struct mtx mtx; /* mtx to wait on */ - int error; /* place to store error */ ng_ID_t node_id; /* a hint for netstat(1) to find the node */ }; -#define NGS_FLAG_NOLINGER 1 /* close with last hook */ - #endif /* _NETGRAPH_NG_SOCKETVAR_H_ */ - -- cgit v1.1