From nobody Fri Jun 19 13:47:06 2026 X-Original-To: dev-commits-src-branches@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 4ghf631bXfz6jLcG for ; Fri, 19 Jun 2026 13:47:07 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ghf626bbFz3ws4 for ; Fri, 19 Jun 2026 13:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781876826; 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; bh=iL4aW8LVz0CaVZSt5BJKULR/UU0xud8BJz+oKy0nTLE=; b=qd22rl3WJ1kRIBj0XXcRM3UjfuqJHet5uC72wfsTyfqbttpezW95W6OxhamVSvibyuPWmD 8e+cefPSWA46TW/7p88nqB1lvurU7AkDWjqU9mh0YwEPsHooy+ecCBifuLC/SlRr1m7hk9 mLzbTwrX3qj0/b4YQMfCI2z5yQ+jBw17ALsCmo/aoMYVuTRUSA+AcpnOzwoz/BXo6DaHwe 2pJoJT3lUatykomypPRqXanlo0cNQetBTudBZxyB5X9w8RB1pamfUJ3tVufEZ/x/nEMlLC kkhVvDb5cfv8y2/jT238Hxm2NxwOqKnr+B8hGQySZUmMiek3DBj/qqcqq2t5ZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781876826; a=rsa-sha256; cv=none; b=JzUIP/d6tV6Ov+14sY1nDL9NqxJUhnXtu5TU0MuLZZcAAGm8YRgsU/j9RR6im3wnRBXxJF YuLXzg9ImU10tlgnk9FzJ/X6WgehkqRMNXSKnxyeFfQEZ68X69JPGDSk4wVHR4xCV2g5PB /4nNrLskt+nhfwbAnmbv4upuBRpkIRXaiV0eGrkSLBAKxMxaU2vppqU/0wMF9zjkx8LG/h BpNSaZ68T49HlSob5j5fKMo7PQie/KO5WmEbZIDAfvgC2EJosIUO00VZSr4JIXgx0fRCF8 zP0FJ/z0U1/SlBpFQMUgZPVv7UuY2rNB9AmJ9Z5M4dFOhJbBS4ILu/l/fa00jA== 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=1781876826; 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; bh=iL4aW8LVz0CaVZSt5BJKULR/UU0xud8BJz+oKy0nTLE=; b=r6HOSjDwF+BPXUsgMwUSCvrCAu2rhmwyh4O6BFW74RohFtW3BdxZyEYr+nRQXyEp1eyHaP DcfnpufjnuH6G2jgXZqpB8xfXEdOaTIrqvs+hYUgbeJAMLQ6zQ9VNNNzAU0JJ2ikp2Hvhh BWudNQYX2A9jC63WwHo6a0+pNvZedfNQyuSqFwLZuasc7Snj4pZs1DRhGZl2NUguOvN7Sl VnLumWXvJtAA52wA1XQKpwtSrSUpKTA2hGGTsAvbBpxG2NP2SDh0NcfNjMnRXJ7WPfN+Wl zYApm0mf6aIPdgvliUXey5bH2f6NqJFo0dRDU2VstOuo0xmh26zxM6HCiIZENg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4ghf625PQ5znFg for ; Fri, 19 Jun 2026 13:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39679 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 19 Jun 2026 13:47:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 76f29211f0dd - stable/15 - netlink: Indicate that ifinfomsg uses IFT_* types List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 76f29211f0dde8907250b77def3e58082e03afe1 Auto-Submitted: auto-generated Date: Fri, 19 Jun 2026 13:47:06 +0000 Message-Id: <6a35485a.39679.21828a2f@gitrepo.freebsd.org> The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=76f29211f0dde8907250b77def3e58082e03afe1 commit 76f29211f0dde8907250b77def3e58082e03afe1 Author: Ed Maste AuthorDate: 2026-05-29 16:23:17 +0000 Commit: Ed Maste CommitDate: 2026-06-19 13:46:55 +0000 netlink: Indicate that ifinfomsg uses IFT_* types On Linux struct ifinfomsg uses ARPHRD_* values, while we used IFT_* types (which derive from SNMP ifType definitions in RFC 1573). Update the header to reflect this. PR: 272144 Reviewed by: pouria Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57334 (cherry picked from commit 21a75a85f0e0cc328b6e9b437d783ef0c25dc52e) --- share/man/man4/rtnetlink.4 | 17 +++++++++++++++-- sys/netlink/route/interface.h | 4 ++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/share/man/man4/rtnetlink.4 b/share/man/man4/rtnetlink.4 index 83521b50c9b5..eed062b7657c 100644 --- a/share/man/man4/rtnetlink.4 +++ b/share/man/man4/rtnetlink.4 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 1, 2022 +.Dd June 15, 2026 .Dt RTNETLINK 4 .Os .Sh NAME @@ -272,12 +272,25 @@ All interface configuration messages share the common header: struct ifinfomsg { unsigned char ifi_family; /* not used, set to 0 */ unsigned char __ifi_pad; - unsigned short ifi_type; /* ARPHRD_* */ + unsigned short ifi_type; /* IFT_* */ int ifi_index; /* Interface index */ unsigned ifi_flags; /* IFF_* flags */ unsigned ifi_change; /* IFF_* change mask */ }; .Ed +.Pp +.Sy Note : +On +.Fx +the +.Va ifi_type +field uses +.Dv IFT_* +constants from +.In net/if_types.h +rather than +.Dv ARPHRD_* +as on Linux. .Ss RTM_NEWLINK Creates a new interface. The only mandatory TLV is diff --git a/sys/netlink/route/interface.h b/sys/netlink/route/interface.h index 667bf2c96151..6034ff1657eb 100644 --- a/sys/netlink/route/interface.h +++ b/sys/netlink/route/interface.h @@ -36,8 +36,8 @@ struct ifinfomsg { unsigned char ifi_family; /* not used */ unsigned char __ifi_pad; - unsigned short ifi_type; /* ARPHRD_* */ - int ifi_index; /* Inteface index */ + unsigned short ifi_type; /* IFT_* (net/if_types.h) */ + int ifi_index; /* Interface index */ unsigned ifi_flags; /* IFF_* flags */ unsigned ifi_change; /* IFF_* change mask */ };