From nobody Fri Oct 17 08:23:29 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 4cnyWj1Ht1z6Ctgr for ; Fri, 17 Oct 2025 08:23:29 +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 4cnyWj0lzrz3s1v for ; Fri, 17 Oct 2025 08:23:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760689409; 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=XYBIj+c0AdR1iYvdrc7VPPCIxUZaNt/EkIDLYV3Y5jg=; b=uqo3oH5s1pcqWPPd+XKm5AJyHRTJAOyJUlXi3JV8xDfz9xihwcYVc18/uTDKQMEKDhVwlZ A7C/xzdcwQj8gcbsvZQ5kHVWdSC20AFOIq734a0wabFF/7WqcDS3qmjzTp2H93Vel1VELC csnnEPhRVzAw2HugMiqKhbUZUiu+IACSCFG/NF8GnqNLKwt7vwjp3LK/HJDCx2wuRGAGG4 wLkhCDgk9RRgYDe7RaRVFidSh8iQTuGBXKVM9ixOGKfUmi4X76eMY312ZhU1L9ZhpM+GZ2 ObkLU7czxHoq3tP3SdPYIjFiGPOJHucTcHR9t7nUnoWSYtYj0wIhTEqvgfc+uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760689409; 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=XYBIj+c0AdR1iYvdrc7VPPCIxUZaNt/EkIDLYV3Y5jg=; b=HTy1u5Cvo5V50RK0P7oCpHnMH4FGSqkotq3XUpMDjr3RLwWOudShiiHH1HtTcKOtJulP3E tqc9+9/zZOOmOnkacLHgMVGniTkbRIHVqwdapS16t58o6h63Ja1hA4sAWDvs9hl+aU/OSe Ina2AzRnHpTNU4T6NHGkku6VSMbOBSy6AsU2GssNUFE0DDV31gAWbO2/N90Kf6dNCpuRZU EEmEyK8x46dXoLOshmBVPow9wmUjh0mYMYkZeWAHYKhlpRt4NJ0QagFhcNjAqFsG8s9x2B q8BrbkBXlsYxO9y1PzWEb6XHaI+az0ftEtilz2Ty4sBpXvdEqgZsGBAS28xUPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760689409; a=rsa-sha256; cv=none; b=nBe20N/38NsOuES5z2Ie6mvSI+KfHxHvM1PWX3VrvxELaLa6C71yvdd6FLhwNxfx+N2sCm PBei2kMkrkI+fWxbdNvGk2epyUtGleHj9Bu4BuJKLbUezG+yGaioOJrlQeRq4WQMbzZmVa u2UkIQYkae+vyXEdD1htwQpahCU17eQmMv32Alcek+xV20vW8Pmd3y5w09v8VQ++9M53e9 1anqyPcB+1Z9DDVq7vGU6VABJKE3knW8tlQNj+b4G6Zkk2diyPxj+1F9Tra0nTMZO86Jog f8D7HgURBmkhz7JpoPDw9cUh7psK+5YVUIZ41JLxDnqfgiIvm0waAxjGQxf8ug== 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 4cnyWj09CfznHr for ; Fri, 17 Oct 2025 08:23:29 +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 59H8NScU013355 for ; Fri, 17 Oct 2025 08:23:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59H8NSwQ013354 for net@FreeBSD.org; Fri, 17 Oct 2025 08:23:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 290221] [netlink] default build of /usr/sbin/arp is broken for proxyarp Date: Fri, 17 Oct 2025 08:23:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.3-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? 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=3D290221 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dc26d6bf9da013e839d9a696746ea17415= 69e619e commit c26d6bf9da013e839d9a696746ea1741569e619e Author: Andrey V. Elsukov AuthorDate: 2025-10-17 07:53:35 +0000 Commit: Andrey V. Elsukov CommitDate: 2025-10-17 08:22:36 +0000 arp: fix adding proxy entries for P2P interfaces The old rtsock implementation used in-kernel workaround to do so. When route to specified destination address used P2P interface, the kernel did the search with ifa_ifwithnet() for most suitable network and then add proxy entry to this interface. Use similar approach with netlink implementation. We already have get_ether_addr() function that does almost the same thing as ifa_ifwithnet(). Use it when we find that destination route uses P2P interface and then try to guess suitable interface. This should fix the use of netlink-based arp(8) in mpd5. Rename get_ether_addr() to get_ifinfo(), since now it is used to find only ifindex in case when hwaddr is specified by user. Also make set_nl() and delete_nl() prototype similar to rtsock. And allow '-i' to be used with '-S', since we already allow the same for '-s'. PR: 290221 Reported by: eugen Reviewed by: eugen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53113 usr.sbin/arp/arp.c | 32 ++++++++++++++++++++------------ usr.sbin/arp/arp.h | 9 ++++----- usr.sbin/arp/arp_netlink.c | 20 ++++++++++++++++---- 3 files changed, 40 insertions(+), 21 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=