Page MenuHomeFreeBSD

tcp: stop doing superfluous work after sending RST
ClosedPublic

Authored by rscheff on Feb 9 2024, 7:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 7, 10:26 AM
Unknown Object (File)
Tue, Apr 7, 4:21 AM
Unknown Object (File)
Thu, Mar 26, 6:38 AM
Unknown Object (File)
Wed, Mar 25, 1:34 AM
Unknown Object (File)
Feb 23 2026, 1:35 AM
Unknown Object (File)
Feb 8 2026, 11:15 AM
Unknown Object (File)
Feb 8 2026, 3:21 AM
Unknown Object (File)
Jan 31 2026, 1:23 PM

Details

Summary

When sending a RST control segment in tcp_output() it
means we are in TCPS_CLOSED state, called from tcp_drop().
Once the RST is sent, don't call tcp_timer_activate() or
update anything in tcpcb, since that will go away shortly.

Provided by: glebius

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 55889
Build 52778: arc lint + arc unit

Event Timeline

Well, originally my diff. No objection for pushing it in together with your changes. I consider you reviewed it :) Thanks!

This revision is now accepted and ready to land.Feb 10 2024, 8:27 AM