tcp: conditionally initializing log track for unbind 12/43512/2
authorSteven Luong <[email protected]>
Fri, 1 Aug 2025 22:26:49 +0000 (15:26 -0700)
committerFlorin Coras <[email protected]>
Sat, 2 Aug 2025 06:27:20 +0000 (06:27 +0000)
commit0ab1d2edf73393948173f13db1188168036be845
tree8b39280b66b2766b17541440da7325696e9567e1
parenta5ca1f955fbee091bda35bfc00fb0ebc78d70129
tcp: conditionally initializing log track for unbind

elog track is initialized when tcp open, bind, or syn rcvd
message is received. Logging tcp unbind event requires and
expects elog track is already initialized. If tcp debug
is enabled after the aforementioned 3 messages and the
first event that tcp logs is unbind, we crash because elog
track is not initialized.

Let's check the elog track is initialized yet or not
prior to logging an unbind event. If not, we initialize
it.

Type: fix

Change-Id: Ib8fde694dc48f30a87aa3ecd378c1960857e8c38
Signed-off-by: Steven Luong <[email protected]>
src/vnet/tcp/tcp_debug.h