mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Allow the socket buffer sizes to be controlled via sysctl(8).
MFC after: 3 days
This commit is contained in:
parent
bbf53bc053
commit
d2030b65a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124871
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user