From nobody Sun Oct 26 11:22:42 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 4cvZ4M46DTz6CwLy for ; Sun, 26 Oct 2025 11:22:43 +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 4cvZ4L53BBz4K8N for ; Sun, 26 Oct 2025 11:22:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761477762; 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=gqFqOU2Kz2iya5XFWEU7Q81e+U5d/hbEEhYigilybSM=; b=BzwVoAto/GRzpNIBF1OBlGR5c43oLjTMSnmYnVoiEZl4f1pTLEp6/w+JFgTCRhpXFZlO5M WJPxwmpR1sDnKUQLxpPcblcDgUBsgp5Pe3FmrGmcCktkvhqE39Hsgp+LYJA/ZsS5f4bY95 5Sg/+0a3AhYGk/abXIPTGnOBQ1h7orjf+CoUFliwCYUlHZECwPwtcTvCE+FpzhbUHdLDUf 3vJprogVJyNTlYDGQThocjHzhcbh6860LvaSp8vqqM3Z4MfavpIgu50/BFOdyp97zX/kH2 TJn/e9HnWYzv7PvdWyh8/ANsbMei5ZGDlJ+XmBgPwePwILeX2Oca3IRAiiCdVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761477762; 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=gqFqOU2Kz2iya5XFWEU7Q81e+U5d/hbEEhYigilybSM=; b=v8rXF6uexOUFB5Ql1Nd2xB2K25N/CLyCjkBB833ykj5emo3/e+c7bNZezqsZ14Dx8VzRjj OvYwB5g7pCKgaJnq+DGlExhmnBN0cfsEbqYV8kZdfVKW60KRat6JKKhoxB1jo/o1OYz7cM wIBKqdPi3xo6+RBY1FV2/dgrGkXAHQLlxrLgAOZT9AovWPR1IDm7X+HH6Y3FSeI7vPMq5w d4IEoCcsHzMSgBywFIH2hSFUPQozLcpmAKl+Ujs1BBUY3vv2dLuomu+UKyBk7oQ5zuznhp g6pon1SPMJxYEQsnJ2hwRAS43BVYwIQo56q9DnTOeR2nR6mKyXuDUg6RZwghwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761477762; a=rsa-sha256; cv=none; b=fD551GrRoscoUfE8SaUmJd0Sxy+u+ase+DeJ88UZ8ftwPEaArdeulm8KgKeyX/EJzkQAsF a3d01eHJUFgXq6lQbiw7FxNX0jLdN9S8u9VsgXVgAW9NlALzpYCjUi0inFX0Y5TOq6U9UL V0xcCftmnmeA7dPlPhbDGxDmHUgsrt3g0HY1UChssl9EVoxYbOtf0Ou/fyhdi6Jhimsjh+ 0bG9AgvGq+WHc0l3i2HjDgqtUwg9sJjb5Xpeq4PNOYaS1WYF+l2eIlHZjhKlwL9GyHdvOK frRQ0FEbq65kRZxU00wU9AvhtEZzo+8bU6nf3+bs481GMnxzQpF50y/LSzDBXw== 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 4cvZ4L4ZXRzWdv for ; Sun, 26 Oct 2025 11:22:42 +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 59QBMgls081724 for ; Sun, 26 Oct 2025 11:22:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59QBMgqZ081721 for net@FreeBSD.org; Sun, 26 Oct 2025 11:22:42 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:22:42 +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 #4 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df7937053fd0899e7b808bab3a0576ff16= f3e943d commit f7937053fd0899e7b808bab3a0576ff16f3e943d Author: Andrey V. Elsukov AuthorDate: 2025-10-17 07:53:35 +0000 Commit: Andrey V. Elsukov CommitDate: 2025-10-26 11:21:14 +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.=