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)
Sun, Feb 8, 11:15 AM
Unknown Object (File)
Sun, Feb 8, 3:21 AM
Unknown Object (File)
Sat, Jan 31, 1:23 PM
Unknown Object (File)
Fri, Jan 23, 8:28 AM
Unknown Object (File)
Dec 15 2025, 1:27 PM
Unknown Object (File)
Nov 28 2025, 2:20 AM
Unknown Object (File)
Nov 18 2025, 2:28 PM
Unknown Object (File)
Nov 5 2025, 1:10 AM

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