summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-01-24 18:21:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-01-24 18:21:41 +0000
commita3dec3a8cd5eee462f1aa04582138858734d7366 (patch)
tree5d6dabf55905110a1aed5f27ff4b3f9e8de6f5b0 /sys/netinet/tcp_usrreq.c
parent01473e56fe2479c167859cc9c2232d82dceb0060 (diff)
sysctl for def sizes for tcp/udp send/recv queues
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index d447ed66740..50df2eea2af 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.15 1998/01/20 02:22:31 mickey Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.16 1998/01/24 18:21:39 mickey Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -440,11 +440,11 @@ tcp_ctloutput(op, so, level, optname, mp)
#ifndef TCP_SENDSPACE
#define TCP_SENDSPACE 1024*16;
#endif
-u_long tcp_sendspace = TCP_SENDSPACE;
+u_int tcp_sendspace = TCP_SENDSPACE;
#ifndef TCP_RECVSPACE
#define TCP_RECVSPACE 1024*16;
#endif
-u_long tcp_recvspace = TCP_RECVSPACE;
+u_int tcp_recvspace = TCP_RECVSPACE;
/*
* Attach TCP protocol to socket, allocating
@@ -578,6 +578,7 @@ tcp_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
case TCPCTL_RFC1323:
return (sysctl_int(oldp, oldlenp, newp, newlen,
&tcp_do_rfc1323));
+
case TCPCTL_KEEPINITTIME:
return (sysctl_int(oldp, oldlenp, newp, newlen,
&tcptv_keep_init));
@@ -597,6 +598,12 @@ tcp_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
return (sysctl_struct(oldp, oldlenp, newp, newlen,
baddynamicports.tcp, sizeof(baddynamicports.tcp)));
+ case TCPCTL_RECVSPACE:
+ return (sysctl_int(oldp, oldlenp, newp, newlen,&tcp_recvspace));
+
+ case TCPCTL_SENDSPACE:
+ return (sysctl_int(oldp, oldlenp, newp, newlen,&tcp_sendspace));
+
default:
return (ENOPROTOOPT);
}