summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_proto.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-02-08 20:22:09 +0000
committerwollman <wollman@FreeBSD.org>1995-02-08 20:22:09 +0000
commit97873f1113d5f586ea9a11de2af074fad9f3bf3a (patch)
tree2d55430ebecdbd8ee043b496605e5ceeda5fa536 /sys/netinet/in_proto.c
parent25cedbd345ed4b346d3d46291559be67f2b621ce (diff)
downloadFreeBSD-src-97873f1113d5f586ea9a11de2af074fad9f3bf3a.zip
FreeBSD-src-97873f1113d5f586ea9a11de2af074fad9f3bf3a.tar.gz
T/TCP changes to generic IP code. This is all ifdefed TTCP so should
have no effect on most users for now. (Eventually, once this code is fully tested, the ifdefs will go away.)
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r--sys/netinet/in_proto.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index 6dc690d..68e6ff7 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)in_proto.c 8.1 (Berkeley) 6/10/93
- * $Id: in_proto.c,v 1.7 1994/11/02 04:41:39 wollman Exp $
+ * $Id: in_proto.c,v 1.8 1994/12/11 21:36:10 wollman Exp $
*/
#include <sys/param.h>
@@ -94,10 +94,15 @@ struct protosw inetsw[] = {
udp_usrreq,
udp_init, 0, 0, 0, udp_sysctl
},
+#ifdef TTCP
+{ SOCK_STREAM, &inetdomain, IPPROTO_TCP,
+ PR_CONNREQUIRED|PR_IMPLOPCL|PR_WANTRCVD,
+#else
{ SOCK_STREAM, &inetdomain, IPPROTO_TCP, PR_CONNREQUIRED|PR_WANTRCVD,
+#endif
tcp_input, 0, tcp_ctlinput, tcp_ctloutput,
tcp_usrreq,
- tcp_init, tcp_fasttimo, tcp_slowtimo, tcp_drain,
+ tcp_init, tcp_fasttimo, tcp_slowtimo, tcp_drain, tcp_sysctl
},
{ SOCK_RAW, &inetdomain, IPPROTO_RAW, PR_ATOMIC|PR_ADDR,
rip_input, rip_output, 0, rip_ctloutput,
OpenPOWER on IntegriCloud