summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2003-02-25 01:32:03 +0000
committerhsu <hsu@FreeBSD.org>2003-02-25 01:32:03 +0000
commitf52965fa5d8b4bdc23c2e702d17f5537a81f6d01 (patch)
tree896ac3dfbccf604d02478898294a8b4c2a8e382d /sys/netinet/tcp_usrreq.c
parent8704f1f1600724cd09dba0fb6706f23ff5636c1c (diff)
downloadFreeBSD-src-f52965fa5d8b4bdc23c2e702d17f5537a81f6d01.zip
FreeBSD-src-f52965fa5d8b4bdc23c2e702d17f5537a81f6d01.tar.gz
Hold the TCP protocol lock while modifying the connection hash table.
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 1135150..a68345e 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -235,7 +235,7 @@ tcp_usr_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
struct inpcb *inp;
struct tcpcb *tp;
struct sockaddr_in *sinp;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
@@ -264,7 +264,7 @@ tcp6_usr_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
struct inpcb *inp;
struct tcpcb *tp;
struct sockaddr_in6 *sin6p;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
@@ -310,7 +310,7 @@ tcp_usr_listen(struct socket *so, struct thread *td)
int error = 0;
struct inpcb *inp;
struct tcpcb *tp;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
if (inp->inp_lport == 0)
@@ -328,7 +328,7 @@ tcp6_usr_listen(struct socket *so, struct thread *td)
int error = 0;
struct inpcb *inp;
struct tcpcb *tp;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
if (inp->inp_lport == 0) {
OpenPOWER on IntegriCloud