Make TCP debug code MP safe.
authorbluhm <bluhm@openbsd.org>
Wed, 10 Apr 2024 22:24:07 +0000 (22:24 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 10 Apr 2024 22:24:07 +0000 (22:24 +0000)
commitfc5d5711bc78cfe0ce537a33ead9bc78b031b263
tree1cdfb95f938828b7c4110b868087a8d174959259
parent782ed1dafd5632258146a4c94925bfa2be012c28
Make TCP debug code MP safe.

Protect the global variables in TCP debug code with global mutex.
Add a missing include and also fix the -Wunused-but-set-variable
warning.

OK mvs@
sys/netinet/tcp_debug.c