mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Assert the inpcb lock in tcp_xmit_timer() as it performs read-modify-
write of various time/rtt-related fields in the tcpcb.
This commit is contained in:
parent
18ad5842c5
commit
2be3bf2244
2 changed files with 4 additions and 0 deletions
|
|
@ -2640,6 +2640,8 @@ tcp_xmit_timer(tp, rtt)
|
|||
{
|
||||
register int delta;
|
||||
|
||||
INP_LOCK_ASSERT(tp->t_inpcb);
|
||||
|
||||
tcpstat.tcps_rttupdated++;
|
||||
tp->t_rttupdated++;
|
||||
if (tp->t_srtt != 0) {
|
||||
|
|
|
|||
|
|
@ -2640,6 +2640,8 @@ tcp_xmit_timer(tp, rtt)
|
|||
{
|
||||
register int delta;
|
||||
|
||||
INP_LOCK_ASSERT(tp->t_inpcb);
|
||||
|
||||
tcpstat.tcps_rttupdated++;
|
||||
tp->t_rttupdated++;
|
||||
if (tp->t_srtt != 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue