Assert that the inpcb lock is held when calling tcp_output().

Approved by:	hsu
This commit is contained in:
Jennifer Yang 2002-08-12 03:22:46 +00:00
parent 7ba28492c5
commit 3d6ade3a03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101713

View file

@ -128,6 +128,8 @@ tcp_output(struct tcpcb *tp)
isipv6 = (tp->t_inpcb->inp_vflag & INP_IPV6) != 0;
#endif
mtx_assert(&tp->t_inpcb->inp_mtx, MA_OWNED);
/*
* Determine length of data that should be transmitted,
* and flags that will be used.