From nobody Thu Oct 29 14:07:55 2026 X-Original-To: dev-commits-src-main@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 4jFmK826jWz6x4lc for ; Thu, 29 Oct 2026 14:07:56 +0000 (UTC) (envelope-from git@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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jFmK76FChz4V9L for ; Thu, 29 Oct 2026 14:07:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793282875; 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; bh=cayAcPOflrm2oXKJ5US2WiT1JoqT3FAuWLaIn1azsPY=; b=m8Wk/l7iZbmegypz53/JehgSykHgTnq4u3hggHEwpNuiIcdUxTnSrsEjt7ovXCej3VLuyw Kkdnsy35wUq43qPMUOiFRYRjEy8uu6itrcTbWZp6/WKc6GEpyNKwvMkoIl8dhp0sMgAa6F V6n1X6vvkebCSQmujkYlloQ77Jee6YbaBVk7qI9wZ5b2lEbI01uGvYj77ajy01B4t15Tb0 p/fmjnajMmY25PgldqLlpphqp0078/HIkRWVpHWD/OkCK/Yhe0bTeEGsUom0sh9h9R4X1G 9NfLJzo8AnLRl2CUyVodbbcTmQcADRwQSziEz00gWm9HF1LH/gpwqyV+dAiOdg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793282875; b=I7erJ0cR+o4HsQBsvVaWwgPdi7oIU6MK1gS3oMpb89OYs+djkv5gF/KOkdibaqLdcz0mYq knDx3d3jcSkVnz4Xx++TRAhnpY3fRV2QM4yCE1k/DueeWgYJyeOh3x0BktU9WivgRsngIq ZAcDKHJ62LHJzKLK62QCk8dDJxaXJqejd4VK190xWiyt2CChcCDmFQu+5nSW7SrQFlEIVX wfqpEkSK+UkZ0J6BED5bqMK2SwY5Jyj8cbrFHatD+6WWmTCxV8l7QPVCjDCKNtUujZpIKn fc6oTJVb/PajxRnYPiOj4A+k9qdpTQ8Ey1CFCZC+COJppJgUa6pIZL9Emb9hyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793282875; 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; bh=cayAcPOflrm2oXKJ5US2WiT1JoqT3FAuWLaIn1azsPY=; b=q/infHF+AMYIgtrAXBJCjtKAfFahxzfSqzM9lDgZTx4CTgqs75CgFYMUJdKyW1BAQhK3Uj 5b95VDavUW5ynR7VnLejZsIXg7R4Wa/X47hFgHJSDZ4Yjr5bFwkakW5uiWD9oI+feGdGIh LbpgOCv29QOP5uPnuDteBTMjwuLZ3Av7XZinB9MMJFXPCYig5+H9sF4Ss/5eeGljqvg5xp VhoFfUgo3Y19zf01BuYNbKShbDEU1Y+Dwm8RIgA0WN47Ewwfj0oxuQS2bpBaa9QeVmSVCC FNejGSDaLwaM6EvABuhAbokHcTuymuAdwwS51fjHJ+FgcwS7IA2GfOrsAYXtyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jFmK75wJTzjnr for ; Thu, 29 Oct 2026 14:07:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f18c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Oct 2026 14:07:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: 714433a6772b - main - bind_all_fibs: Disable bind_all_fibs by default List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 714433a6772b346723341735ef9547f672d9d2a3 Auto-Submitted: auto-generated Date: Thu, 29 Oct 2026 14:07:55 +0000 Message-Id: <6ae3533b.1f18c.633be3af@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=714433a6772b346723341735ef9547f672d9d2a3 commit 714433a6772b346723341735ef9547f672d9d2a3 Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-10-24 18:01:06 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-10-29 14:07:17 +0000 bind_all_fibs: Disable bind_all_fibs by default net.inet.{tcp,udp,raw}.bind_all_fibs was set to 1 for backward compatibility. Set to 0 by default to drop them all unless an inpcb bound to the same FIB exists. While here, Add an UPDATING entry for behaviour change. Relnotes: yes Reviewed by: markj Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/73 --- UPDATING | 10 ++++++++++ sys/netinet/raw_ip.c | 2 +- sys/netinet/tcp_input.c | 2 +- sys/netinet/udp_usrreq.c | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/UPDATING b/UPDATING index 44b77a813e48..abcbbfbf5ee5 100644 --- a/UPDATING +++ b/UPDATING @@ -27,6 +27,16 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 16.x IS SLOW: world, or to merely disable the most expensive debugging functionality at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20261029: + The net.inet.{tcp,udp,raw}.bind_all_fibs sysctls now default to 0. + This allows applications to bind to the same port in different + FIBs. As a result, a socket bound to a specific address only + receives traffic from the FIB it was created in (see setfib(1)). + Sockets bound to the wildcard address are not affected. If you + use multiple FIBs and rely on such a service accepting traffic + from all of them, set these sysctls to 1 to restore the previous + behavior. + 20260919: less(1) has been updated to version 710, which removes the obsolete lesskey(1) utility. It is no longer built or installed, and the diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 1360dedbb2ef..e2fea834ee79 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -128,7 +128,7 @@ void (*ip_rsvp_force_done)(struct socket *); #endif /* INET */ #define V_rip_bind_all_fibs VNET(rip_bind_all_fibs) -VNET_DEFINE(int, rip_bind_all_fibs) = 1; +VNET_DEFINE(int, rip_bind_all_fibs) = 0; SYSCTL_INT(_net_inet_raw, OID_AUTO, bind_all_fibs, CTLFLAG_VNET | CTLFLAG_RDTUN, &VNET_NAME(rip_bind_all_fibs), 0, "Bound sockets receive traffic from all FIBs"); diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 5ebcad5eae43..e7554b6c6e07 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -131,7 +131,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, log_in_vain, CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(tcp_log_in_vain), 0, "Log all incoming TCP segments to closed ports"); -VNET_DEFINE(int, tcp_bind_all_fibs) = 1; +VNET_DEFINE(int, tcp_bind_all_fibs) = 0; SYSCTL_INT(_net_inet_tcp, OID_AUTO, bind_all_fibs, CTLFLAG_VNET | CTLFLAG_RDTUN, &VNET_NAME(tcp_bind_all_fibs), 0, "Bound sockets receive traffic from all FIBs"); diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 79d292983c24..2eac13d167d8 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -103,7 +103,7 @@ * Per RFC 3828, July, 2004. */ -VNET_DEFINE(int, udp_bind_all_fibs) = 1; +VNET_DEFINE(int, udp_bind_all_fibs) = 0; SYSCTL_INT(_net_inet_udp, OID_AUTO, bind_all_fibs, CTLFLAG_VNET | CTLFLAG_RDTUN, &VNET_NAME(udp_bind_all_fibs), 0, "Bound sockets receive traffic from all FIBs");