Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2023 00:27:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275146] odd error handling from net.inet.tcp.functions_default sysctl
Message-ID:  <bug-275146-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275146

            Bug ID: 275146
           Summary: odd error handling from net.inet.tcp.functions_default
                    sysctl
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

Setting functions_default to a nonexistent entry (because it is not loaded,=
 or
for any other reason) has odd user-facing error behaviour:

# sysctl net.inet.tcp.functions_default=3Drack
net.inet.tcp.functions_default: freebsd
sysctl: net.inet.tcp.functions_default=3Drack: No such file or directory

Some other sysctls use EINVAL which at least gives the user an understandab=
le
error:

# sysctl kern.timecounter.hardware=3Dtesting
kern.timecounter.hardware: TSC
sysctl: kern.timecounter.hardware=3Dtesting: Invalid argument

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275146-227>