From nobody Thu Feb 5 18:12:19 2026 X-Original-To: dev-commits-src-all@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 4f6QKw1pzPz6QylY for ; Thu, 05 Feb 2026 18:12:20 +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" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f6QKv69yvz45nC for ; Thu, 05 Feb 2026 18:12:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770315139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I0ItzLywtB2Qk9IRdoT/ab/38EbCSLM7HElipbm+N9Q=; b=qU5gxXWRI6A01S4OdIR6rg/r79A5wzB+AM/b3uP+nWalRasXOmrIg4ObWF6fyJ4VIDhYME yuBsEnwrEP4QQf2Be2xlsqhkbxb2v0hmw1R3h7Ri33H9ip2XESeyJ0a9u/n/QVfJ82PBfq 4M/BojlHq6HIj/jxJd1y1vWnqLjcRV/krNdI1oh5RvUpgKK7eYdUPBkx2hSKvH/3d7Wtc1 +PKvRsLTaN7AN3jK7czULCmP3C9Wyx4VSXY9TT55jWMa+lnO0arzrl0DGMYQuc4DkH1CGO nTULF5XuZ5PHmcFRvV/pP/kppdiWJEqtqZLLRRAIbkEQl/KD48/Pv+bIKxpYZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770315139; a=rsa-sha256; cv=none; b=Wpjs3CSKz9yREQvflIgMVEpKYe7T5cXAe75k2qKo92Blq7Ibq0BFxVEUn2wjh7UWNdRBdh VFKusjjkjt2JXYhanQYjHiehAIj4/rH2baEN8HUdrPPXYwXbQcg9GWoM1S6ZftvL4qXw7j Kk258YwST+gBdSy2Vt6rjueHVT9nV30MQGSNlyi5M/twPDtVKvrp+Di3oedKnetL11sXjS /sI08CX8CLRi9Qfjn4z4xRqLxIDDHBS+wIinlOmtv340eeT4i2htmN3JmtWQ1txPTaaQz8 tstg/iHfXBmoFh698nFQS7Es2q0TIqTi1NhhiHZwqRWpj5wCw7pyKfbX7aJ3ow== 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=1770315139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I0ItzLywtB2Qk9IRdoT/ab/38EbCSLM7HElipbm+N9Q=; b=KBzaeEkB9e3uOutes0Iu9nWC2yJ2qztyd0NKp2qUO2mJVBJYMX5rEbDmXfLnGezhDAAobp 1xcLp/8+Akw5fNp9LyguB7RHNxFecZSkl+NV7HVdCyDBhPbFUwdLZ2pgUzghP92RXNxuBi leoE0Nmlblqa5QquAN0h9Ah9cn4ErsmjYaPXrUjy+0AI1Gu6S4VaemPJ7xzPao9TapH64t 2w63xYQoVNGO+jtCzKL5dRqpi8/9KVyngO4bnmzm/4jLONvD4ofZ/R30Wpzd8hIsBFhWFq gGWEZFOoMWz5oJ5zILMtYoKopWHlH+ibbz6slP0KZpNQVq8kHJfCR4ltg/H6HA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f6QKv5jBhzhXp for ; Thu, 05 Feb 2026 18:12:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31735 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 05 Feb 2026 18:12:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Gleb Smirnoff From: Zhenlei Huang Subject: git: 52ebb8a7d4f8 - stable/14 - ifconfig: fix 'ifconfig -l link' List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 52ebb8a7d4f8c77b9dacdeef1dff3caec1394bea Auto-Submitted: auto-generated Date: Thu, 05 Feb 2026 18:12:19 +0000 Message-Id: <6984dd83.31735.4fcf7909@gitrepo.freebsd.org> The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=52ebb8a7d4f8c77b9dacdeef1dff3caec1394bea commit 52ebb8a7d4f8c77b9dacdeef1dff3caec1394bea Author: Gleb Smirnoff AuthorDate: 2023-08-25 17:31:55 +0000 Commit: Zhenlei Huang CommitDate: 2026-02-05 18:10:36 +0000 ifconfig: fix 'ifconfig -l link' The rtnetlink(4) RTM_GETADDR does not list link level addresses, thus the correct match for interfaces that have a link level address should be based on what was returned by RTM_GETLINK. Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D41586 (cherry picked from commit 6f3947be2aff9350514b5a414104d0afaeb53cdf) --- sbin/ifconfig/ifconfig_netlink.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifconfig_netlink.c b/sbin/ifconfig/ifconfig_netlink.c index aadd7d1096c3..7145c037e54e 100644 --- a/sbin/ifconfig/ifconfig_netlink.c +++ b/sbin/ifconfig/ifconfig_netlink.c @@ -278,7 +278,13 @@ match_iface(struct ifconfig_args *args, struct iface *iface) .sdl_alen = NLA_DATA_LEN(link->ifla_address), }; return (match_ether(&sdl)); - } + } else if (args->afp->af_af == AF_LINK) + /* + * The rtnetlink(4) RTM_GETADDR does not list link level + * addresses, so latter cycle won't match anything. Short + * circuit on RTM_GETLINK has provided us an address. + */ + return (link->ifla_address != NULL); for (struct ifa *ifa = iface->ifa; ifa != NULL; ifa = ifa->next) { if (args->afp->af_af == ifa->addr.ifa_family)