summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-23 14:35:44 +0000
committerru <ru@FreeBSD.org>2004-01-23 14:35:44 +0000
commit9942270d4860991a7f7306067796cee51afaf7ca (patch)
tree20d7226417d20a2166d23cd169a7f9cd4aff4b7d
parenta3cc95eec930b8a454ff879d14c67ad45e87c9a8 (diff)
downloadFreeBSD-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.c4
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;
OpenPOWER on IntegriCloud