summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-25 09:46:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-25 09:46:13 +0000
commit619dcbfbd09087df14d79ce9bce6ec10f9d43067 (patch)
tree6a10266643da22b56ba2ddd6814a052ad6c66b4a /sys
parent612709ed1c97e222a51b67599b490939a984734c (diff)
SS_CONNECTOUT indicates socket was connect()ed at this end, accept()ed at other end
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_usrreq.c3
-rw-r--r--sys/sys/socketvar.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index e47e0378f77..e484d1afce5 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.3 1996/03/14 08:11:54 tholo Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.4 1996/07/25 09:46:12 deraadt Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -201,6 +201,7 @@ tcp_usrreq(so, req, m, nam, control)
error = ENOBUFS;
break;
}
+ so->so_state |= SS_CONNECTOUT;
/* Compute window scaling to request. */
while (tp->request_r_scale < TCP_MAX_WINSHIFT &&
(TCP_MAXWIN << tp->request_r_scale) < so->so_rcv.sb_hiwat)
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 41efd45011d..0f67c8bf950 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: socketvar.h,v 1.4 1996/04/28 18:57:18 mickey Exp $ */
+/* $OpenBSD: socketvar.h,v 1.5 1996/07/25 09:46:07 deraadt Exp $ */
/* $NetBSD: socketvar.h,v 1.18 1996/02/09 18:25:38 christos Exp $ */
/*-
@@ -114,7 +114,7 @@ struct socket {
#define SS_NBIO 0x100 /* non-blocking ops */
#define SS_ASYNC 0x200 /* async i/o notify */
#define SS_ISCONFIRMING 0x400 /* deciding to accept connection req */
-
+#define SS_CONNECTOUT 0x1000 /* connect, not accept, at this end */
/*
* Macros for sockets and socket buffering.