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

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
rGdafd0d685531: History for arc4random_*()
Branches
Unknown
Tags
Unknown