From nobody Fri Jun 19 15:46:50 2026 X-Original-To: dev-commits-src-branches@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 4ghhmB2C8nz6jX60 for ; Fri, 19 Jun 2026 15:46:50 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ghhmB1fQ2z3G4w for ; Fri, 19 Jun 2026 15:46:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781884010; 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=SAflCP5MAbZAzncqqeR59jEqfjH4BssTV2xappPDq6I=; b=OOvKrQQ0FQHKhljCS+j/xejVGWmIsX26+Nc1ruRtwrV1Lel/KrF2VdgJcbquA+cwNbdiaO iK7e1kbRbhN3iRQSuFz/4PXJFblCOcyfVM0qASUjhHLigi9nQOQA9KincBnSu6Dg9k7vkH XZx9NAkbbDNyutzTt/Z4VHF6HBQTpkDqnmvksJ0nJHjs1E2i1sVfBMXRNmBtcy/8u9AkIy igOV+SAOB84gDlJ4dRm/4EFfk7E7MPpLfwy3h0k0I+5+VOLrsBMMKJbwKiBp3d0ZRRzTnM OpqQAnQcXxb7Fq4sYalCkias53WxAYox1UMuAAPLF6QuDWkTAhIrcz3RgcK+ZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781884010; a=rsa-sha256; cv=none; b=M9akX6PbouBY2CpcHJnUqifq9GxIgsNC0EUz+3ZhpTuPoWPA1K/zE/oiQ3IVkK5A3Ciz4O HQmQKkJVWzLfJ6ld406KdG1gCDQ+AXF7VbMYml5q/mm/q1Zsu4+KREbB9sIUNIDeNwRouq y1Hzf3lYnx1oHAJ4oWJziX22GWrpk0qbhKQdAS5rKnkJyjLJLas2e1Dr07vKEbcEp7Y7GV J6iLGTpYDHxPquAYRiJSwdri1+CLwydAgNhZO5egf66imoMOovIufp1X6PhMVktd4lU0Lm 2kCyQgu+kXRIg2XQ7ZiV4X2nUVxRllBXaZ98T8652m6yZ0ixJBa2WpRuBV92ZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781884010; 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=SAflCP5MAbZAzncqqeR59jEqfjH4BssTV2xappPDq6I=; b=YOaHYxvg74l9WhDGg+tlZv7yvSNIYfTZ+mWn51ZQMZPtv/lpUWTwcRxDCcsBQ1IFSObxFl lmI8vRdUJzXi6rm/Nm7fuc26AbR/58IvFiA5+q2e/bfseU7JUvbFhnSsHJFiCpKBbEG74s 9vEZeSrC1Gt0HeB6i/LtM0KICRnYge+YvOWHKnNQhXUKnWnF7WlB6eWQZTPR3JEKzkmSoV PEaBd+/nVWczx3x43RfVb2AHyIVu/m/Dw8pttWcg+9UJ/1ZlQz0TRVagdlK7Ayym2b13kv dQyGKunSWV+eYCXXJYHvyuaIptqVFm/P0sNW5hVmWDDLYWNTbywKAujZ4yq9VQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4ghhmB0WF8zrnv for ; Fri, 19 Jun 2026 15:46:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 44e8b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 19 Jun 2026 15:46:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: 5ca5b570cfa3 - stable/15 - rc.d/routing: Silence errors for loopback routes List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: 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/stable/15 X-Git-Reftype: branch X-Git-Commit: 5ca5b570cfa33fef597feee9333643cccb278de2 Auto-Submitted: auto-generated Date: Fri, 19 Jun 2026 15:46:50 +0000 Message-Id: <6a35646a.44e8b.441f8446@gitrepo.freebsd.org> The branch stable/15 has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=5ca5b570cfa33fef597feee9333643cccb278de2 commit 5ca5b570cfa33fef597feee9333643cccb278de2 Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-06-10 11:26:07 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-06-19 15:45:26 +0000 rc.d/routing: Silence errors for loopback routes _loopback entry in `static_routes` ensures a loopback route exists in all routing tables. However, loopback routes may already be added by the kernel. Therefore, re-adding them triggers an `EEXIST` error on every boot. This change suppresses those harmless errors. PR: 259553 MFC after: 1 week Reviewed by: glebius, jlduran, markj Differential Revision: https://reviews.freebsd.org/D57470 (cherry picked from commit 9f80c8b90bdaa8ffac887a8c478a16c84d74a87b) --- libexec/rc/rc.d/routing | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/libexec/rc/rc.d/routing b/libexec/rc/rc.d/routing index dd75604125a3..93e41c41a52b 100755 --- a/libexec/rc/rc.d/routing +++ b/libexec/rc/rc.d/routing @@ -190,7 +190,13 @@ static_inet() if [ $_skip = 0 ]; then route_args=`get_if_var ${i%:*} route_IF` if [ -n "$route_args" ]; then - ${ROUTE_CMD} ${_action} ${route_args} + # Loopback routes may already be added by the kernel; ignore EEXIST. + if [ "${i%:*}" = "_loopback" ]; then + ${ROUTE_CMD} ${_action} ${route_args} 2>&1 >/dev/null | + sed -e '/route: message indicates error: File exists/d' >&2 + else + ${ROUTE_CMD} ${_action} ${route_args} + fi else warn "route_${i%:*} not found." fi @@ -267,8 +273,15 @@ static_inet6() if [ $_skip = 0 ]; then ipv6_route_args=`get_if_var ${i%:*} ipv6_route_IF` if [ -n "$ipv6_route_args" ]; then - ${ROUTE_CMD} ${_action} \ - -inet6 ${ipv6_route_args} + # Loopback routes may already be added by the kernel; ignore EEXIST. + if [ "${i%:*}" = "_loopback" ]; then + ${ROUTE_CMD} ${_action} -inet6 \ + ${ipv6_route_args} 2>&1 >/dev/null | + sed -e '/route: message indicates error: File exists/d' >&2 + else + ${ROUTE_CMD} ${_action} \ + -inet6 ${ipv6_route_args} + fi else warn "route_${i%:*} not found" fi