From patchwork Tue Aug 1 16:25:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 73437 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6ED53858438 for ; Tue, 1 Aug 2023 16:25:29 +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 545FB3858D28 for ; Tue, 1 Aug 2023 16:25:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 545FB3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="6.01,247,1684828800"; d="scan'208";a="14872776" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 01 Aug 2023 08:25:15 -0800 IronPort-SDR: PJgy9q2BMEv21AFG9SjUbnRGzEmnQUzfF87QLUPKhRtbHTZ2JIuGzf21CUPC8rj7bd/JFW26h6 CQ4zO1xEQGM49Hfam3yuSr7DmtG65+G5b5bwKNBfDtUOpW6SOMr4AhIU5SvCxPjDlaWdIeuKyR n6hCDViWhF4QJksndiz9cdedi1kVq3klHnTxXZY4uNGDbq7UFDIYwsoU7t6vw5mTPjyR+ml0IF Rd65u3P160v/EqYf3l7h3eRDNTKFLcT1SqKl/sKRxHuHCDi1Pc0fR6cDONVsm6Tw59RLFReYlk E88= Date: Tue, 1 Aug 2023 16:25:11 +0000 From: Joseph Myers To: Subject: Add PACKET_VNET_HDR_SZ from Linux 6.4 to netpacket/packet.h Message-ID: <33897e6b-efbe-f3e-7442-ab135cde785@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3111.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Linux 6.4 adds a new constant PACKET_VNET_HDR_SZ; add it to glibc's netpacket/packet.h. Tested for x86_64. Reviewed-by: Adhemerval Zanella diff --git a/sysdeps/unix/sysv/linux/netpacket/packet.h b/sysdeps/unix/sysv/linux/netpacket/packet.h index 279f68fd34..c0fb06df53 100644 --- a/sysdeps/unix/sysv/linux/netpacket/packet.h +++ b/sysdeps/unix/sysv/linux/netpacket/packet.h @@ -64,6 +64,7 @@ struct sockaddr_ll #define PACKET_ROLLOVER_STATS 21 #define PACKET_FANOUT_DATA 22 #define PACKET_IGNORE_OUTGOING 23 +#define PACKET_VNET_HDR_SZ 24 struct packet_mreq {