Allow the socket buffer sizes to be controlled via sysctl(8).

MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2004-01-23 14:35:44 +00:00
parent bbf53bc053
commit d2030b65a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124871

View File

@ -147,7 +147,11 @@ NETGRAPH_INIT(socket, &typestruct);
/* Buffer space */
static u_long ngpdg_sendspace = 20 * 1024; /* really max datagram size */
SYSCTL_INT(_net_graph, OID_AUTO, maxdgram, CTLFLAG_RW,
&ngpdg_sendspace , 0, "Maximum outgoing Netgraph datagram size");
static u_long ngpdg_recvspace = 20 * 1024;
SYSCTL_INT(_net_graph, OID_AUTO, recvspace, CTLFLAG_RW,
&ngpdg_recvspace , 0, "Maximum incoming Netgraph datagram size");
/* List of all sockets */
static LIST_HEAD(, ngpcb) ngsocklist;