Page MenuHomeFreeBSD

Add tcp_freecb() - single place to free tcpcb.
ClosedPublic

Authored by glebius on Nov 12 2021, 5:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 27, 12:35 AM
Unknown Object (File)
Sat, Jan 24, 12:40 PM
Unknown Object (File)
Jan 8 2026, 12:15 AM
Unknown Object (File)
Jan 1 2026, 12:07 AM
Unknown Object (File)
Dec 29 2025, 12:42 PM
Unknown Object (File)
Dec 26 2025, 10:49 PM
Unknown Object (File)
Nov 26 2025, 3:57 AM
Unknown Object (File)
Nov 23 2025, 8:34 PM
Subscribers

Details

Reviewers
hselasky
rrs
Group Reviewers
transport
Summary

Until this change there were two places where we would free tcpcb -
tcp_discardcb() in case if all timers are drained and tcp_timer_discard()
otherwise. They were pretty much copy-n-paste, except that in the
default case we would run tcp_hc_update(). Merge this into single
function tcp_freecb() and move new short version of tcp_timer_discard()
to tcp_timer.c and make it static.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42758
Build 39646: arc lint + arc unit