From nobody Mon Jun 15 12:36:32 2026 X-Original-To: dev-commits-src-main@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 4gf8kS64glz6hHJ3 for ; Mon, 15 Jun 2026 12:36:32 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gf8kS5Q3Tz3SqH for ; Mon, 15 Jun 2026 12:36:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781526992; 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=N060wFbp0FROQ4M2NvcQLhD42mH9tFVlVSqaBtfeofE=; b=BJQ78IrK+WaUH+oSsxsAbDB0IYx2JixhIcomZ59g8u91D0+XbGTGFk09Ttf8clPxmnk2ez Ctq1T9mayNgLcVP4iJWFng8b/S/IcYJI4/YnEm8Bi62xJVOzxWIKa5l9v/2dUduYylZ54L 9KIgeDAVKeqR83VGPyZODNTdtH435Z7cq5ScJjdxwY/ZSd6FQdlGleFYgnudvYwL1J7JEm ghH6KOmtUmcSUo5D4XsrBF0f4xzhosHGSwJih2olMjGZwlyhZ7uW1HpCwEdoaxh03s4+nL PjJcgimSSpx2nUidQDC0I0b1XVvZTC4dv8FXqLNehyQCboHa7YcA5Sq80lq4Kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781526992; a=rsa-sha256; cv=none; b=P0Nl1BXIzfFXMZ++PSeR6JRlpShUQGYtpxr5ziAJdGC/aaIb2+TfcNBTeEzLJD5bNQuDtd nfYY0RVpQz289++Bks995ANOUWq8cdQLZtjWItAc/LcCSZ8QbPFHMdhIkync9Sw9MWShnP 80R8H0Cr4+Md8yxkJOEmC8K/FxNG02ri5QolprEJZgn6IYqcPmKJBvi500GcQRu1SXjrsN bsXgt1yWSlkaVq3Z0Auw5yVpcV5fqNXTSUCCKiRtWwpsWY7wp6PapEmejb2n5jlarKzWw5 QTuV1XUUBvCWidmzMjqD8m8HRrRvUYwW0FJy47cvD5uqVm6x1V8aCk4Z4aGwDQ== 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=1781526992; 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=N060wFbp0FROQ4M2NvcQLhD42mH9tFVlVSqaBtfeofE=; b=F8SkbmW4ScfqjbE8VTl+w3D7gnmcfoXP15jyIrTwI62BMCahPQB0axvSwvCOyyNvxr67oj kWeYj4/Rs8V6Cm5GRSBUwjvN2+Ako0Zy+xRYTveW3zVp/lH9KB/Av9DpM34pi73yrJPe7F t+lD/UOEh99Nbc6z+pSzJpERS1jM/4Is4ErQD4JVTdHM1RQN3eSCEeLYlgUviaDUvCpQs6 cke08xfx9hipjuu0SBBsFqmbkrv0xSnm8ZOjNdPAre5z/clvfjvfJS+4sCybhw5vc4dHxn WTxBgq8QWg6UHVXKG4IxNG1qbDRLrSnJPPaUyQLxd5k9sBnBufUeapQFv3zl7Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gf8kS4k6DzvD7 for ; Mon, 15 Jun 2026 12:36:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22ef1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 15 Jun 2026 12:36:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 21a75a85f0e0 - main - netlink: Indicate that ifinfomsg uses IFT_* types List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 21a75a85f0e0cc328b6e9b437d783ef0c25dc52e Auto-Submitted: auto-generated Date: Mon, 15 Jun 2026 12:36:32 +0000 Message-Id: <6a2ff1d0.22ef1.718b4901@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=21a75a85f0e0cc328b6e9b437d783ef0c25dc52e commit 21a75a85f0e0cc328b6e9b437d783ef0c25dc52e Author: Ed Maste AuthorDate: 2026-05-29 16:23:17 +0000 Commit: Ed Maste CommitDate: 2026-06-15 12:36:16 +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 --- 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 2161db157234..d756cd031145 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 May 15, 2026 +.Dd June 15, 2026 .Dt RTNETLINK 4 .Os .Sh NAME @@ -275,12 +275,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 0bd06ff1f6d5..e6aef3d702d8 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 */ };