summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/sctp6_usrreq.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-09-08 11:35:11 +0000
committerrrs <rrs@FreeBSD.org>2007-09-08 11:35:11 +0000
commit4dd82bd675126ae3087b47d4425b57c8c44aa790 (patch)
tree33156f38f2aa559546f6d475b9777be0710945b3 /sys/netinet6/sctp6_usrreq.c
parent8c4e364ee08a6259e006283ec6d3d38f50f37d5f (diff)
downloadFreeBSD-src-4dd82bd675126ae3087b47d4425b57c8c44aa790.zip
FreeBSD-src-4dd82bd675126ae3087b47d4425b57c8c44aa790.tar.gz
- Locking compatiability changes. This involves adding
additional flags to many function calls. The flags only get used in BSD when we compile with lock testing. These flags allow apple to escape the "giant" lock it holds on the socket and have more fine-grained locking in the NKE. It also allows us to test (with witness) the locking used by apple via a compile switch (manually applied). Approved by: re@freebsd.org(B Mah)
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r--sys/netinet6/sctp6_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c
index ac74d64..2d4c82c 100644
--- a/sys/netinet6/sctp6_usrreq.c
+++ b/sys/netinet6/sctp6_usrreq.c
@@ -139,7 +139,7 @@ sctp6_input(struct mbuf **i_pak, int *offp, int proto)
/* in6p's ref-count increased && stcb locked */
if ((in6p) && (stcb)) {
sctp_send_packet_dropped(stcb, net, m, iphlen, 1);
- sctp_chunk_output((struct sctp_inpcb *)in6p, stcb, 2);
+ sctp_chunk_output((struct sctp_inpcb *)in6p, stcb, SCTP_OUTPUT_FROM_INPUT_ERROR, SCTP_SO_NOT_LOCKED);
} else if ((in6p != NULL) && (stcb == NULL)) {
refcount_up = 1;
}
@@ -911,7 +911,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p)
/* initialize authentication parameters for the assoc */
sctp_initialize_auth_params(inp, stcb);
- sctp_send_initiate(inp, stcb);
+ sctp_send_initiate(inp, stcb, SCTP_SO_LOCKED);
SCTP_TCB_UNLOCK(stcb);
return error;
}
OpenPOWER on IntegriCloud