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, Jun 16, 10:24 AM
Unknown Object (File)
Tue, Jun 16, 6:57 AM
Unknown Object (File)
May 12 2026, 1:25 AM
Unknown Object (File)
May 12 2026, 12:49 AM
Unknown Object (File)
May 12 2026, 12:26 AM
Unknown Object (File)
May 12 2026, 12:25 AM
Unknown Object (File)
May 7 2026, 4:18 PM
Unknown Object (File)
Apr 29 2026, 9:12 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