diff options
author | ru <ru@FreeBSD.org> | 2004-01-23 14:35:44 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-01-23 14:35:44 +0000 |
commit | 9942270d4860991a7f7306067796cee51afaf7ca (patch) | |
tree | 20d7226417d20a2166d23cd169a7f9cd4aff4b7d | |
parent | a3cc95eec930b8a454ff879d14c67ad45e87c9a8 (diff) | |
download | FreeBSD-src-9942270d4860991a7f7306067796cee51afaf7ca.zip FreeBSD-src-9942270d4860991a7f7306067796cee51afaf7ca.tar.gz |
Allow the socket buffer sizes to be controlled via sysctl(8).
MFC after: 3 days
-rw-r--r-- | sys/netgraph/ng_socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index e3be7d1..3498f47 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -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; |