From patchwork Thu Dec 9 21:42:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1566105 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J96vt030Hz9s5P for ; Fri, 10 Dec 2021 08:42:49 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A5BB33858018 for ; Thu, 9 Dec 2021 21:42:46 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 57C5A3858C27 for ; Thu, 9 Dec 2021 21:42:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 57C5A3858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: FF4Rbved0KchMm00pUaO9J6T9pG818Y8Ea6f/weU518giTdbmDxXmCLFsCVwtjLKHS5Te2Y1Mt u44fKj2lG8s+zUfXxrP5Oz0qXjc1mJKBrHL6tqVH9Y1nUYjWrdVS/rFaveMlXLJJQ9/PEWHYqh YY92mNTI8MHrLJ5efD1ZAeUKNTkiSev49j4tA4R78MjRdkYwjrN1sbDdO5krch3H9D0612fBlj zOGufW+rN582nKArxlRVZAFsnOECvYbIGpdnfddKA9wmMcYw7UVcCy1KvyBci6MD0aAsdPEhsP RLBLzI8JHiyuW7M7UBbwxlAM X-IronPort-AV: E=Sophos;i="5.88,193,1635235200"; d="scan'208";a="69505856" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 09 Dec 2021 13:42:36 -0800 IronPort-SDR: KJvnCNCH9xO9BC9mSo8onexuZAMI9IQSMGRdwXqRJl+5Pd/tUuH2sXgi6tBvRS4kzufa3c/lYZ lwM3k+Ve4ENKw7xbn90cABlQKLNcQClYzQ5MuXN5UkpBUcWPlCuEGt8hrb1uX3ZqZkjBcQ7B85 +hCmDFNMU/2je77U5apM7Yii6LYH4MT6hi4PzNtEeOZ2QNe4ByumucMIDRrVGDpOHJB3xgvnc0 N4PQj0do/c2ZkUiiwwCLrF/kqv7aAilhb+9fISSnZkopYDfn0KniS+GxT+BlKeYqw7Gldzra4e slM= Date: Thu, 9 Dec 2021 21:42:18 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Add ARPHRD_CAN, ARPHRD_MCTP to net/if_arp.h Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3122.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Add the constant ARPHRD_MCTP, from Linux 5.15, to net/if_arp.h, along with ARPHRD_CAN which was added to Linux in version 2.6.25 (commit cd05acfe65ed2cf2db683fa9a6adb8d35635263b, "[CAN]: Allocate protocol numbers for PF_CAN") but apparently missed for glibc at the time. Tested for x86_64. Reviewed-by: Florian Weimer diff --git a/sysdeps/unix/sysv/linux/net/if_arp.h b/sysdeps/unix/sysv/linux/net/if_arp.h index 0f925da4f4..9ad10c37fa 100644 --- a/sysdeps/unix/sysv/linux/net/if_arp.h +++ b/sysdeps/unix/sysv/linux/net/if_arp.h @@ -94,6 +94,8 @@ struct arphdr #define ARPHRD_ROSE 270 #define ARPHRD_X25 271 /* CCITT X.25. */ #define ARPHRD_HWX25 272 /* Boards with X.25 in firmware. */ +#define ARPHRD_CAN 280 /* Controller Area Network. */ +#define ARPHRD_MCTP 290 #define ARPHRD_PPP 512 #define ARPHRD_CISCO 513 /* Cisco HDLC. */ #define ARPHRD_HDLC ARPHRD_CISCO