HomeFreeBSD

tcp: cleanup functions related to socket option handling

Description

tcp: cleanup functions related to socket option handling

Consistently only pass the inp and the sopt around. Don't pass the
so around, since in a upcoming commit tcp_ctloutput_set() will be
called from a context different from setsockopt(). Also expect
the inp to be locked when calling tcp_ctloutput_[gs]et(), this is
also required for the upcoming use by tcpsso, a command line tool
to set socket options.
Reviewed by: glebius, rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D34151

Details

Provenance
tuexenAuthored on Feb 2 2022, 8:20 AM
Reviewer
glebius
Differential Revision
D34151: Change ctloutput handling for TCP
Parents
rG8d72c409cd85: stress2: Fix "set but not used [-Wunused-but-set-variable]" warnings
Branches
Unknown
Tags
Unknown