From nobody Fri Jun 19 13:47:06 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 4ghf68206vz6jLg6 for ; Fri, 19 Jun 2026 13:47:12 +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 4ghf680DDzz3wkB for ; Fri, 19 Jun 2026 13:47:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781876832; 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=q8CCQMRssIrwujR/tKx46GmDtKV90UWelrP8wGbsR+eJPtMQpiJFFdZ42WiLFmOtuPY1k6 r2KdMUMLEiyevlYLfVNDBwFhWfYDSsA1yzKYpDWV+JiCZY51LOMrhJg4mz1jZdxz89rmQK eJ5Q7ReVA3ggVlSzLGFO2wr4m0J0c3G0K3Am++4wfNmqKyhK8i7E4y53hubmOA5TLR8Aex ZcS8HPoIP80MEXMNnazd7+S1xjrAppJzDCq5J0d3No+PlaCfI2p5dqBREFojrApF2tFN7r DWFDbYe856Oux5KuMHOhA4SUmbzq/FoRxo5jDwoT3jUd1q0EukOF5XLfT0Qvlw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781876832; a=rsa-sha256; cv=none; b=haIVc0fEZfYaTe4GLzPrSYd9gkp6im789KCcMZL3CNVflNToB5//X9TEF2537KDzXylqdn PnzE1QSOEJp5tyQ2s1g/u4C9mHAPKJl1eBl/4pJwzd713XXs7yeWABC17jMgYlH59K/uCE CB9AT+lrIzAJSqVjFsgefHquMYlW+xRWXkGiHwmC/hETlBQg+1sY2fvSeUTgXkePiwF5Hr LpTNg20tZHHDoaoZ56teKMRMUncbcOxeWkRoOY2CFWmiLhgNknuIN4NPTRwXyyRIlDf18i Po2YB4m7CFHqsNAlQxEvxwmcSzGn1JK5WXC8xo34ZqHSqu3nn9ef8AQbUN7Bpw== 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=1781876832; 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=sc120/fvA9ylwRtHssFKnqsRexrnDhCaO633Ll9l33lZtDzxoRWvya+bzYdyyloAG/B4FU dbE6qBtxXHLkW6eTWYorELN8Xn+j/FehcRJT9wFPJVedxfAdU2oLKd6mZ4l3lNEylgROD5 RnLAIFlQ/WZEkN6MD5Nbr1IGwC8U7WWnw9y3eMgxHRePQ7LWMj/kmfYXI2L2O4vB4ikEq6 sUm1P01WNbVTLA30KR4trvKVbK2mxGfHtp+iwiye5GsehrA23R6WbtV5/Qw7f/aEDfLMnb bIXkAdJQoPIVGEDatc2UjUh9U3sv5fdZvtuFDhVdZB6Cw5QNLTUJDTA8S4LxDA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4ghf6761N5znk3 for ; Fri, 19 Jun 2026 13:47:11 +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: 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 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 */ };