Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/ng_socketvar.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
/* Netgraph protocol control block for each socket */ | /* Netgraph protocol control block for each socket */ | ||||
struct ngpcb { | struct ngpcb { | ||||
struct socket *ng_socket; /* the socket */ | struct socket *ng_socket; /* the socket */ | ||||
struct ngsock *sockdata; /* netgraph info */ | struct ngsock *sockdata; /* netgraph info */ | ||||
LIST_ENTRY(ngpcb) socks; /* linked list of sockets */ | LIST_ENTRY(ngpcb) socks; /* linked list of sockets */ | ||||
int type; /* NG_CONTROL or NG_DATA */ | int type; /* NG_CONTROL or NG_DATA */ | ||||
ng_ID_t node_id; /* a hint for netstat(1) to find the node */ | ng_ID_t node_id; /* a hint for netstat(1) to find the node */ | ||||
u_long sendspace; /* buffer space for socket */ | |||||
u_long recvspace; /* buffer space for socket */ | |||||
}; | }; | ||||
#endif /* _NETGRAPH_NG_SOCKETVAR_H_ */ | #endif /* _NETGRAPH_NG_SOCKETVAR_H_ */ |