From patchwork Mon Jan 9 21:50:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 62858 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 DE9083858C20 for ; Mon, 9 Jan 2023 21:50:57 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id A9A773858D37 for ; Mon, 9 Jan 2023 21:50:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A9A773858D37 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="5.96,313,1665475200"; d="scan'208";a="92798660" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 09 Jan 2023 13:50:44 -0800 IronPort-SDR: Kn3EUYl+OFZsfV0ArRECOr5BHYp3R1YQ3JaxKg1gXYWQKGGll6lYlCcHd6/qWGK/lCK72Exe1f XIS749t+aOUeFLolbwK29jcUmVB/2vW8+50ETp+fzT5FcmnVUTaZe+cpw8EGdcn2X8kJmA9AG9 KC09Gdbqwr7pXh5ubCGVyDmPevlTG2aAVBm7WaM2MexgRbYtt6mrSFcdo+roQx8PXKlNgJKNsM goex4UvjjfMx49vuXtdaCtO1Bs5GZL25WjytP/KSC35dBX0Bb8Q/aogegoAzhkMaeWQSa1INoA G54= Date: Mon, 9 Jan 2023 21:50:39 +0000 From: Joseph Myers To: Subject: Add IPPROTO_L2TP from Linux 6.1 to netinet/in.h Message-ID: <1ef32960-f07a-7021-d9a6-6396c4dbbc93@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3115.1 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.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.1 adds a define IPPROTO_L2TP to its include/uapi/linux/in.h (not strictly a new constant, since it's moved from include/uapi/linux/l2tp.h). Add this constant to glibc's netinet/in.h. Tested for x86_64. Reviewed-by: Adhemerval Zanella diff --git a/inet/netinet/in.h b/inet/netinet/in.h index 858652cc37..60deab2f99 100644 --- a/inet/netinet/in.h +++ b/inet/netinet/in.h @@ -81,6 +81,8 @@ enum #define IPPROTO_PIM IPPROTO_PIM IPPROTO_COMP = 108, /* Compression Header Protocol. */ #define IPPROTO_COMP IPPROTO_COMP + IPPROTO_L2TP = 115, /* Layer 2 Tunnelling Protocol. */ +#define IPPROTO_L2TP IPPROTO_L2TP IPPROTO_SCTP = 132, /* Stream Control Transmission Protocol. */ #define IPPROTO_SCTP IPPROTO_SCTP IPPROTO_UDPLITE = 136, /* UDP-Lite protocol. */