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

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.