From patchwork Fri Oct 23 17:24:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 40840 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 45017398B42B; Fri, 23 Oct 2020 17:25:06 +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 04FCC398B155 for ; Fri, 23 Oct 2020 17:25:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 04FCC398B155 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: PgK09N6xJTTOBPmCpM6fvy0090oVa8bs0eOnicHHChqFhyQbjTHuSshULvfwRSrhnXBR1Yk3bv Rk/ZaVNFSSHBRtPC2ewG3GLwdD34kuyaX6XYOsrkBch1YeWVsJQcAKHNk7J/InQJPG+K20Jrt3 +689WAiGPvcJs/jZMOr6kEamvPehfeomZQjg/4VjuUFiiI8k28FvtPKR24OIfFUsaHynll8IG6 Uz06wJSCuaveEIuTQfgdr1idzEfBaV/znQfSovIzZwrcjToiFrJCyUCrCMQFX6I73TXcns/rGU 7Jo= X-IronPort-AV: E=Sophos;i="5.77,409,1596528000"; d="scan'208";a="54346069" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 23 Oct 2020 09:25:02 -0800 IronPort-SDR: JOMxy3GWRN2mBngppCEcwy8sUxrYCRbE0NdYlR0JJ32RnxtII1/KccV+Z69XWzfB5QCM5uo+Eu eekuZsvazaVUIdQprXpwcJjz2v8LyNkuiIFaXcmBijLSN3LjVVcSeThiGfu4QIhZocq17lmj9u FDrwgqx23JZBoDj9xtGbWcmCPDkcpqYMyqXsBHazgwi0VTXp8x0cSCQ9S0luHOAvdv44s0C6NE Nd9fY5P5r6caMSfhF/UiST2SSE3L3xjz+qh4nva7KmmS9AQoUFqiqBgBjFL49OGAvgyV7z2Hr5 OwQ= Date: Fri, 23 Oct 2020 17:24:57 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Add IP_RECVERR_RFC4884 and IPV6_RECVERR_RFC4884 from Linux 5.9 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3131.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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@sourceware.org Sender: "Libc-alpha" Add the new constants IP_RECVERR_RFC4884 and IPV6_RECVERR_RFC4884 from Linux 5.9 to bits/in.h. Tested for x86_64. diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h index 77cf4af449..2a0fbb0288 100644 --- a/sysdeps/unix/sysv/linux/bits/in.h +++ b/sysdeps/unix/sysv/linux/bits/in.h @@ -102,6 +102,7 @@ #define IP_CHECKSUM 23 #define IP_BIND_ADDRESS_NO_PORT 24 #define IP_RECVFRAGSIZE 25 +#define IP_RECVERR_RFC4884 26 /* IP_MTU_DISCOVER arguments. */ #define IP_PMTUDISC_DONT 0 /* Never send DF frames. */ @@ -193,6 +194,7 @@ struct in_pktinfo #define IPV6_LEAVE_ANYCAST 28 #define IPV6_MULTICAST_ALL 29 #define IPV6_ROUTER_ALERT_ISOLATE 30 +#define IPV6_RECVERR_RFC4884 31 #define IPV6_IPSEC_POLICY 34 #define IPV6_XFRM_POLICY 35 #define IPV6_HDRINCL 36