From nobody Fri Jun 12 16:28:48 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 4gcQ1s331gz6j59k for ; Fri, 12 Jun 2026 16:28:49 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gcQ1r5zvXz3nkR for ; Fri, 12 Jun 2026 16:28:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781281728; 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=HVSYN1UprO0wzh9fiRv9Al/f5hujresVWIPNlKJKxNM=; b=ighwawdLXZ9ONmPkRia3ppfABWDnGDa2cWSIZsIWEhLUUyj0su7vno8vCjnt7n6yljhTaR VDIJgsTxRdNtbmHLmOn9F1UdJIIaXa+w8sK7kYzJz3vOjWcSccL99+7atHpr6mosb0M6Ee mafLRP31fZmX6KPgZu/0yh6nCtSdt/sNUWNUgEmfbzhVM07WMEo+NEkcSjNiX4gg1SilcD LhVeBn7j+SOuVaNnEw3/0aRMSJZK0Ai11Z0pbkJVl9cnhwpnbgJT97Z8nkRTYWzGO/Tdxu 9VK1Gr1pxB6zlaWmA09/vUykAjroHwMSPFPXCCkmGmaDxLBaXGQ6WlacxRyIuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781281728; a=rsa-sha256; cv=none; b=INY+JIH2SkyYqcwAT3Kq742CTRBtdADV3qErZrzsxya/2tgiGJyB40FzrfU0vG2y7qu1XV YCdgVGk2tV9NJMTIGvcu3lqEUjNqSdTEevyOUeg+JWFPuK53K9q+fouUNJ/7wB/AZy9Uy4 MwsO2ivUDh+rhOb30Aut0RjlDnVh9q+WN3pINJoBhQiNUb+vmhJ6fvPeWyltnMKiY0KXKz ClSpl4/wJcwgmoFw8Y7AkALjXcI+EjHTz+8iwyYYYIqfYSPkRhhTYwZSAf/2lFN6dDJBFv hQ4Y4JC+RxEf1puVD2PjpPdHgc/GInFiEBF0tiMqkGnTl8bcYswSnPTURkpqDg== 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=1781281728; 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=HVSYN1UprO0wzh9fiRv9Al/f5hujresVWIPNlKJKxNM=; b=DlrykzFwIEu9QyU3WF30ZtXtAfJDvidPlKcd4j6233Cl9n3l3KatWTij6P6AtAhlkFOxry 4In4to+kZB9IKwIriArAmGeGYMS/zgPCBabnTS7O22zFBsIWnAh87Dw2/vET+0NVdsMiu8 HXyUR7iYfIjHvETnAW7lJxH7PuzHDcdpr2hUthzZP2YVQi/t2Fo2QdDzRl8T4dlBd+yHtn uEebVPQ+AcWa1BOVaZz0wbnIMZqkthGkz7zZ0UMz271QdRsgoX26kAEmHXaLY7fRu8Bmip 8nLQuBwPRz0/ypoY3cCymjPInfSGCdVSuGIlHO10ZuYGsDR/EaRBI9Rfe1S1ag== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gcQ1r5ZHzzldj for ; Fri, 12 Jun 2026 16:28:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39eaa by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 12 Jun 2026 16:28:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: 9f80c8b90bda - main - rc.d/routing: Silence errors for loopback routes List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 9f80c8b90bdaa8ffac887a8c478a16c84d74a87b Auto-Submitted: auto-generated Date: Fri, 12 Jun 2026 16:28:48 +0000 Message-Id: <6a2c33c0.39eaa.7da55c48@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=9f80c8b90bdaa8ffac887a8c478a16c84d74a87b commit 9f80c8b90bdaa8ffac887a8c478a16c84d74a87b Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-06-10 11:26:07 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-06-12 16:18:28 +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 --- 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