HomeFreeBSD

tcpsso: fix when used without -i option

Description

tcpsso: fix when used without -i option

Since fdb987bebddf it is not possible anymore to use inp_next
iterator for bound, but unconnected sockets. This applies
to TCP listening sockets. Therefore the metioned commit broke
tcpsso on listening sockets if the -i option was not used.
Fix this by iterating through all endpoints instead of only
through the bound, but unconnected ones.

Reviewed by: markj
Fixes: fdb987bebddf ("inpcb: Split PCB hash tables")
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D43353

(cherry picked from commit 13720136fbf951a7b472ce086c9cf2de702799ab)

Details

Provenance
tuexenAuthored on Jan 10 2024, 7:33 AM
Reviewer
rGfdb987bebddf: inpcb: Split PCB hash tables
Differential Revision
D43353: tcpsso: fix when used without -i option
Parents
rG3f57a09489e5: tcpsso: support TIME_WAIT state
Branches
Unknown
Tags
Unknown