[{"id":1764614,"web_url":"http://patchwork.ozlabs.org/comment/1764614/","msgid":"<20170907093930.GC27490@altlinux.org>","list_archive_url":null,"date":"2017-09-07T09:39:31","subject":"Re: Update netinet/tcp.h from Linux 4.13","submitter":{"id":16038,"url":"http://patchwork.ozlabs.org/api/people/16038/","name":"Dmitry V. Levin","email":"ldv@altlinux.org"},"content":"On Wed, Sep 06, 2017 at 09:01:34PM +0000, Joseph Myers wrote:\n> This patch updates sysdeps/gnu/netinet/tcp.h to include new\n> definitions from include/uapi/linux/tcp.h in Linux 4.13.\n> \n> Tested for x86_64.\n> \n> 2017-09-06  Joseph Myers  <joseph@codesourcery.com>\n> \n> \t* sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.\n> \t(TCP_MD5SIG_EXT): Likewise.\n> \t(TCP_MD5SIG_FLAG_PREFIX): Likewise.\n> \t(struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and\n> \ttcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.\n> \n> diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h\n> index af94b8e..75973f0 100644\n> --- a/sysdeps/gnu/netinet/tcp.h\n> +++ b/sysdeps/gnu/netinet/tcp.h\n> @@ -71,6 +71,8 @@\n>  \t\t\t\t       connection.  */\n>  #define TCP_REPAIR_WINDOW\t 29 /* Get/set window parameters.  */\n>  #define TCP_FASTOPEN_CONNECT\t 30 /* Attempt FastOpen with connect.  */\n> +#define TCP_ULP\t\t\t 31 /* Attach a ULP to a TCP connection.  */\n> +#define TCP_MD5SIG_EXT\t\t 32 /* TCP MD5 Signature with extensions.  */\n>  \n>  #ifdef __USE_MISC\n>  # include <sys/types.h>\n> @@ -257,12 +259,16 @@ struct tcp_info\n>  /* For TCP_MD5SIG socket option.  */\n>  #define TCP_MD5SIG_MAXKEYLEN\t80\n>  \n> +/* tcp_md5sig extension flags for TCP_MD5SIG_EXT.  */\n> +#define TCP_MD5SIG_FLAG_PREFIX\t1 /* Address prefix length.  */\n> +\n>  struct tcp_md5sig\n>  {\n>    struct sockaddr_storage tcpm_addr;\t\t/* Address associated.  */\n> -  uint16_t\t__tcpm_pad1;\t\t\t/* Zero.  */\n> +  uint8_t\ttcpm_flags;\t\t\t/* Extension flags.  */\n> +  uint8_t\ttcpm_prefixlen;\t\t\t/* Address prefix.  */\n>    uint16_t\ttcpm_keylen;\t\t\t/* Key length.  */\n> -  uint32_t\t__tcpm_pad2;\t\t\t/* Zero.  */\n> +  uint32_t\t__tcpm_pad;\t\t\t/* Zero.  */\n>    uint8_t\ttcpm_key[TCP_MD5SIG_MAXKEYLEN];\t/* Key (binary).  */\n>  };\n\nLooks OK","headers":{"Return-Path":"<libc-alpha-return-84288-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84288-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"W2GAx4bU\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xnwQm5jGCz9t2c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 19:39:44 +1000 (AEST)","(qmail 13560 invoked by alias); 7 Sep 2017 09:39:35 -0000","(qmail 12750 invoked by uid 89); 7 Sep 2017 09:39:34 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:subject:message-id:references\n\t:mime-version:content-type:in-reply-to; q=dns; s=default; b=Zgi/\n\tmXV31n/PSwUoyf5EGdscpBOuxeWxt0f9vdbQhYvkiVa3E+MntCeCpTRgjIItme/c\n\tEuLI6XfBWQUwBvgodba0XVm9Dw1BX12/xXEctqGThK5ld0VbfVSuKTltz/RkYXT9\n\tqgDvRxFaZNcbxMAghStBN7F/DMpvZaXxhq6f5U8=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:subject:message-id:references\n\t:mime-version:content-type:in-reply-to; s=default; bh=CV+Km7JAlt\n\tF6Cg9kYJkZat7NDUA=; b=W2GAx4bU6qmXnRKeyFvbb6aItaboJ2Cb/JttKl5p/J\n\tqgJiMd6IIkAC1TL0fKyRWDbXWQIT9uvldnm6opzOy2WHcZuWCs2Ax8EtIStOHxUa\n\tH/7HlCXzsmH735+RZTe00ez6Ug7/uwc26KWIGiX8drMQqAh36m8+gMZaWosq6Veg\n\tw=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-24.8 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tRP_MATCHES_RCVD, SPF_PASS,\n\tURIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:1723,\n\tSignature, H*c:application","X-HELO":"vmicros1.altlinux.org","Date":"Thu, 7 Sep 2017 12:39:31 +0300","From":"\"Dmitry V. Levin\" <ldv@altlinux.org>","To":"libc-alpha@sourceware.org","Subject":"Re: Update netinet/tcp.h from Linux 4.13","Message-ID":"<20170907093930.GC27490@altlinux.org>","Mail-Followup-To":"libc-alpha@sourceware.org","References":"<alpine.DEB.2.20.1709062101150.29155@digraph.polyomino.org.uk>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha256;\n\tprotocol=\"application/pgp-signature\"; boundary=\"Bu8it7iiRSEf40bY\"","Content-Disposition":"inline","In-Reply-To":"<alpine.DEB.2.20.1709062101150.29155@digraph.polyomino.org.uk>"}}]