From nobody Sun Oct 26 11:20:40 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 4cvZ212Pn4z6CvbB for ; Sun, 26 Oct 2025 11:20:41 +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 4cvZ2109Cbz4Hj7 for ; Sun, 26 Oct 2025 11:20:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761477641; 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=f3uXCAx1KbX3LFDYj+ocQXXZQc8ctfWDFi6JypSHALM=; b=v+/7x7ZAG+rnnhbdQ2nHDLtKoc0NyUbn6cDRVyWtMXsY7/aIaUg4vOQwKRuddYjshzyUo0 OkRhkqjgEab9nD6qbAz/PYS2AC/ebrXTS58kMsW9NMqE6wIWGXR7Myc33nbRUe9HnO8TGh Je1SrZhjCDsRpbP52ti9nJ6Sawa3+g0OOWM/dV9Xx2l86Y/4KXRIDVRaVmHpadOrPQT9kp z137kpumlhUKzfaKmvd/kEy4jAWPB05ByM8LCzQ/4/rcIt/gHivPf6mLTBzph36gyL+ibH XKeqQr5/mUN5C+i/C+s81ekPFGmeVroikM39K/nlABxKsDOAChNqJ+3XRNltxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761477641; 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=f3uXCAx1KbX3LFDYj+ocQXXZQc8ctfWDFi6JypSHALM=; b=WRIrTsSXGC2lFqTmRoq/Zv3QguhrN52mIyvQEKUaN+v3+agf6TkPSuE2bM2IwB1Nln56Re NUj6ztON3AJYzHvF+KYsSPEyKItvgW+VIU08tVRV4ZUTZ73qne40ocQiAiuPZwUukvBR2c h1YtezWce4IjAYlCn+j4aQixNJqQNsp6K0ZmkKHUNn3mpX9hNwBR8M7tP3hJA9sPiMZqmu l9NUWe9BEjYiebVi0Yrx7DDkkG4wqxZGULIuvfMnOwMKXa5I3gGw2OTvz37CF0k4tE6o9J MEtzSTYWkmR18dhZBsmJiWZZp+y9mGo5g5HRjtNAzcj54WAiv+MRFRHdKhUTeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761477641; a=rsa-sha256; cv=none; b=IWJmaWDNeDl0RyZQ9nwkc4MhRnI0Kl16NJB4Y8HfwiWgmHJEN6kguPymEYyKAPie6hiOLZ tlwWA+vgVHZ2Z+UaEn3tW5nTOWvGU9qjUe2yxNtdi4cb28y56HbV5cxDAqv7OpZCS4EEdE 0+yD9zj+PIkZgVAboUHvhY0r35Ng5f+dbe9FBY5wxYK2zTr4HBcBWYrmjk2ouEpLXit4aT Zd4oqUPUyIWvTA7l6zfe7MdREj66X5UXv1J1EdPbUn+g/j0zfsfurAcZWOtcc7y4D33TMb D1eHVLgSU51YKra88nGLuVS3BQiNBG1Iwo+UTW7u65JOY9huM6DVK3t154tz1g== 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 4cvZ2062vNzVdF for ; Sun, 26 Oct 2025 11:20:40 +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 59QBKeSm073009 for ; Sun, 26 Oct 2025 11:20:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59QBKeRm073008 for net@FreeBSD.org; Sun, 26 Oct 2025 11:20:40 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: Sun, 26 Oct 2025 11:20:40 +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 #3 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9e829d0693a7c8e2ee82a8aefa59c0a5f= 2648da3 commit 9e829d0693a7c8e2ee82a8aefa59c0a5f2648da3 Author: Andrey V. Elsukov AuthorDate: 2025-10-17 07:53:35 +0000 Commit: Andrey V. Elsukov CommitDate: 2025-10-26 11:20:01 +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 Differential Revision: https://reviews.freebsd.org/D53113 (cherry picked from commit c26d6bf9da013e839d9a696746ea1741569e619e) 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.=