From f52965fa5d8b4bdc23c2e702d17f5537a81f6d01 Mon Sep 17 00:00:00 2001 From: hsu Date: Tue, 25 Feb 2003 01:32:03 +0000 Subject: Hold the TCP protocol lock while modifying the connection hash table. --- sys/netinet/tcp_usrreq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/netinet/tcp_usrreq.c') 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) { -- cgit v1.1