From nobody Wed Sep 10 19:52:00 2025 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cMWYD2VFRz66myD for ; Wed, 10 Sep 2025 19:52:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cMWYD1mmCz3tPN for ; Wed, 10 Sep 2025 19:52:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757533920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Aa5vGqIBu0YJfafj3QUE1kmRACAr8pfS74IHQ4+Hf38=; b=MUbFXMl2lWm1CqG4Z0Qc7KG3+YJ4+f80hmZ0T2RkHbtUhZgZqg/MlXN9U4zujsZXfbb4tg p/MHvExKWCUzcXNdI6nE3oe2hOxvRovkxquWKdMmVS7dKV52W6Ypyu+7v/gHigfEmAT8R4 X2XzYLHsxb4Ob/GRc0UAFIiF0mhs8x5px8DyFd9kOuoVyqeVjDYi6LAX8HbXuaxsXZW5Tw pPJC62KDM36+6/SXtdwNf/xkm6lMuKjFaLxT/aSEBZHh/b6nKfHXzNjenp20YVcaIfZWKP zy6xqSz0Ry3ilLpFwdzXXfoGGVCtRTxrdzYxQpR6GuJuazb0fdXuauF3OMVQCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757533920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Aa5vGqIBu0YJfafj3QUE1kmRACAr8pfS74IHQ4+Hf38=; b=FE0zU+85n6LPJNN8nsZUzP/CyHbBv9H5t7PFmSlfg8HkfKDWc4+6yQRLDwJNy4xBbzb13z o5XihDs6WGaFPZYwwUZDv1jaywHG9p7EvAciszGVK8NEIfbQ3t2pXnBIl1s+yLCuDFgMXr oIyG2bCTrs5yFKo2B+1RsuQVrD8oavPcnAJSa91lkr94Xbbw151SiK7Kl9TV6f6c45G+J9 PY8pRyYD0weIb84hHsHfz1Tqou/QnaXsC/4u35ndYmijKb9gbNHtaj9/BjAa7nqZMtmwTj wT1mA6HErD4hxY0QkXoTQA3sRgfnqAl8bTX1hyBIH+FKPrxtuGiyDmkWWJHTig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757533920; a=rsa-sha256; cv=none; b=Td3fEpaOSqdecFYSuxOOw7GNWsvvbIFNC/QSBjeqFRHaRfa1hX8Eoj2Oi0VDFN4Ca20gmj f1yYsnhRihVn0l0ESBMwSaweVKN+bQWQWsXV0vSVNBXIB4J8Ff+p0EtbzuEQQvcwhmKSJc DWuc63+o4KXreHV8NEONtQLjd1Z9Fd6Tq47/9X48LcypmhBYI22NLtZuR+ZMChFSvP8Ae1 WyizAmH/Qe2i0+vVQcq+uT8sP+8SC4z+AtgfI9FM852ewhcUHRd2dvaLVpB3461hFP6fQz L2TAXfcFbYGn659BKVyYXxyV/CNwGZUgg4RHOACNL9FYecn9p8Dau1cGHdTwcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cMWYD1JB1zc62 for ; Wed, 10 Sep 2025 19:52:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 58AJq0To049445 for ; Wed, 10 Sep 2025 19:52:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58AJq01o049444 for net@FreeBSD.org; Wed, 10 Sep 2025 19:52:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 275146] [tcp] odd error handling from net.inet.tcp.functions_default sysctl Date: Wed, 10 Sep 2025 19:52:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tuexen@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275146 --- Comment #2 from Michael Tuexen --- The current code now returns `ENOENT` if the requested TCP function block d= oes not exist, `EINVAL` is returned if the requested function block cannot be t= he default function block. I think returning these different error causes mak= es sense. It would be less informative to return `EINVAL` in both cases... So I would vote for keeping the `errno` values as we have currently. --=20 You are receiving this mail because: You are the assignee for the bug.=