From nobody Tue Aug 05 16:37:09 2025 X-Original-To: bugs@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 4bxJx32mbqz63RX5 for ; Tue, 05 Aug 2025 16:37:11 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bxJx324Vvz3Yl8 for ; Tue, 05 Aug 2025 16:37:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754411831; 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=jGbXA/oBIi5OPbA4dE7PiPhGPzCxzb4b58eR35qGPVw=; b=b3D+gjYtkfyMMDHL88luMhXpNOiqAcney6oX9WvLH2BlEOUVSf9vjrUHJxGA+nDVedp/iB IYMdWKGRMkW2pmKsyC4yLx88CCnKNM2VAQg4EaRq+byRJXdL50gI+/hnBZGRZKNc3yJnfo RBSzJ9V2St/XIQb5XgtMloLE5Ji+w9PSzei0XgYzIatbmuDjgjvp9ic7tBfdO2411wJyyc A+ZdGy5zLy8g9Q/YwIgQe0DS8hoKvcrOmhzAl7ck+GdJ1HV7r09BHw30M+61/NwcJHesSW N8qVUB5l8rP4ooPJfiCOmLnTHkKyvR102vKR0kRFo8l9LArqendpSZdfin1iwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754411831; 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=jGbXA/oBIi5OPbA4dE7PiPhGPzCxzb4b58eR35qGPVw=; b=YLAJvfZ3olEJCpRDatsSxGS//elxZGuHEKoJN6oVpDDfS/MXi59Za4Fv23/QkOn8o9AYox ayJbNDKYQmF1vJiZE0vUSSPjVDhYvFvfLx8DW+bEgXvQIAx2oaF5pRtexz81C/obKXm9qL HSaUXiCYVEkDM8gptwB1zwXcPsomJkBdo/xL3g8D9uy1WlmHrBcAH6vvcahbdAkSXWpqy0 rqnMGgWlyZmCl/BXthFnEi5JQ2Tu/eED6DpltSw5RVugIfDEe+eQhxVaEtpyewSPGHTABV xNdUZZl7rMWipFt7XOstJeVnfV092KIIyZOCCCK6wyDTX91bkISrIZE4l9jXmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754411831; a=rsa-sha256; cv=none; b=CcNJE66FuHo81q4E53MWWdrHTzP8B3m1WolMdIgAyNCKdJw+ctFrjZb0WxtCHwi5p+IfTk D0ymVoq1wCbIRTR/pkjHfgwGsw7UuPDK+yddsDYY5eK3XCb+sn4hoxS7MOpD/mRFp7qEMs gBkaKUTocWo9P7uoJrionl23tYl2O7Fsf5vl8oGZ/d6oMmzWheWiG2VNYlLeHwbFA7WZLs tWJHQ5eunkDLSoDE0QMRkFhWmLmvV7oNU18CMZXFGsOyKZ4cAPIZ1kiOYNbB1uPE8Lb6do OO5VdwXdpmXawcOx85L1DluEynuY6RyVkq7eGmFjxjTMAm/Fp/HKgP7QRM6aAQ== 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 4bxJx31cPwzjfp for ; Tue, 05 Aug 2025 16:37:11 +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 575GbB4o079358 for ; Tue, 5 Aug 2025 16:37:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 575GbBdv079357 for bugs@FreeBSD.org; Tue, 5 Aug 2025 16:37:11 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: bugs@FreeBSD.org Subject: [Bug 278654] The -ifa modifier to route(8) is ineffective Date: Tue, 05 Aug 2025 16:37:09 +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 Some People X-Bugzilla-Who: snar@snar.spb.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278654 --- Comment #5 from Alexandre Snarskii --- Created attachment 262723 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D262723&action= =3Dedit patch Looks like it was not that hard to fix. Proposed patch attached, based on 15-current, cleanly applies and shall work on 14 (not tested).=20 Notes: - when address provided with -ifa is not present in system, behavior is the same as without netlink: this parameter is ignored. - no attempts have been made to fix multipath routes: as far as I understand route(8) sources it can't emit these anyway. - used not NL_RTA_SRC but rather NL_RTA_PREFSRC netlink attribute. --=20 You are receiving this mail because: You are the assignee for the bug.=