From nobody Thu Jun 22 11:24:08 2023 X-Original-To: bugs@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 4QmygY1V35z4h49F for ; Thu, 22 Jun 2023 11:24:09 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QmygY09X8z3GwG for ; Thu, 22 Jun 2023 11:24:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687433049; 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=gIHVqXRwU1fiwMemLoDxJB07ejjjynEK9EXSKWP0PIk=; b=t21kjbb4ZrT1gG1y7cFSoNXip1lYs8RFD35p5NFA988DCxDLx3k6u++LoRut1GJCnljvdJ M5iWonRpzegL+Qzvyuv0Zj4JbxmvicQo9yqxJOBZZkDL9XaNATcyIIIZBTuHuTZQNa57DF nBiy/9z031wZh3e4B83RkdHVR5GM96o+dU4oU53f6ifZkUUPDegcdCFa4ButAA5s2hNPA2 YDMP5ZJ2I94+Zd6gOkBUSRtNJFk+BvmlIXs61d5O0foIBw584df0O0UHYiDz7eqQ7XMFMA vKCXUCLBNJk5p4DziQ8L6x9c6qU/1R4GYHwD6r2BbRV1wPraU4IPyBJQ4FZPpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687433049; a=rsa-sha256; cv=none; b=x9QtVP7yFK6QzkYPQCoW7g6OyxmDHE1SrXOl2DbaB9529Wy0B9SHN8FJGfhyERtEsOzYXn VGgJpUsfInk1uIeZH2cujOMO4ZCceZ2ekC5wwgUzF8RPoAs1YAwmS7aFjIDS8jcdVS7NlZ lVZxbrpXtOm6Y4YIDV4FS1eq+Et1N9j8UUh8NKT2OCOd/VIk0IzZmbsCeQhbm2GxBdmoFL 7p9YfqnwztbNHo9qD5HCtyoswqsF8SqlxD3sCqpx/ZRKRkLhritUR4vjzY69F71UY/nO06 h0DpblW+YKP64PCbpyaaARgVAubo7tltFryQNwrjF7z/cUIAsxKhzCPHOtkv3w== 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 4QmygX6MpvzM1W for ; Thu, 22 Jun 2023 11:24:08 +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 35MBO882053815 for ; Thu, 22 Jun 2023 11:24:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35MBO8No053814 for bugs@FreeBSD.org; Thu, 22 Jun 2023 11:24:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272144] netlink sets ifi_type to FreeBSD if_type instead of ARPHRD_* Date: Thu, 22 Jun 2023 11:24:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: misha@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272144 Bug ID: 272144 Summary: netlink sets ifi_type to FreeBSD if_type instead of ARPHRD_* Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: misha@freebsd.org Netlink software which uses ifi_type from ifinfomsg structure expects it to= be set to ARPHRD_* values, but currently it's getting set to if_type (from net/if_types.h). sys/netlink/route/iface.c:259 ifinfo->ifi_type =3D ifp->if_type ifinfomsg defenition is in sys/netlink/route/interface.h struct ifinfomsg { ... unsigned short ifi_type /* ARPHRD_* */ ... } Because of this software receives 0x6 (IFT_ETHER) instead of 0x1 (ARPHRD_ET= HER) for wireless interfaces and 0x18 (IFT_LOOP) instead of 772 (ARPHRD_LOOPBACK= ). Same assignment happens in 14-current. Is this difference from Linux intentional? --=20 You are receiving this mail because: You are the assignee for the bug.=