{"id":810799,"url":"http://patchwork.ozlabs.org/api/1.2/patches/810799/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/patch/alpine.DEB.2.20.1709062101150.29155@digraph.polyomino.org.uk/","project":{"id":41,"url":"http://patchwork.ozlabs.org/api/1.2/projects/41/?format=json","name":"GNU C Library","link_name":"glibc","list_id":"libc-alpha.sourceware.org","list_email":"libc-alpha@sourceware.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<alpine.DEB.2.20.1709062101150.29155@digraph.polyomino.org.uk>","list_archive_url":null,"date":"2017-09-06T21:01:34","name":"Update netinet/tcp.h from Linux 4.13","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"909daea1c71a3605091c290db889c7b5ded50643","submitter":{"id":4349,"url":"http://patchwork.ozlabs.org/api/1.2/people/4349/?format=json","name":"Joseph Myers","email":"joseph@codesourcery.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/alpine.DEB.2.20.1709062101150.29155@digraph.polyomino.org.uk/mbox/","series":[{"id":1881,"url":"http://patchwork.ozlabs.org/api/1.2/series/1881/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/list/?series=1881","date":"2017-09-06T21:01:34","name":"Update netinet/tcp.h from Linux 4.13","version":1,"mbox":"http://patchwork.ozlabs.org/series/1881/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/810799/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/810799/checks/","tags":{},"related":[],"headers":{"Return-Path":"<libc-alpha-return-84279-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-84279-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=\"vz8VTLAe\"; 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 3xnbcM1csdz9t2r\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 07:01:55 +1000 (AEST)","(qmail 62595 invoked by alias); 6 Sep 2017 21:01:45 -0000","(qmail 62353 invoked by uid 89); 6 Sep 2017 21:01:45 -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:mime-version\n\t:content-type; q=dns; s=default; b=mEBmENCb0wkwVXf/wtoLBma3ClUkv\n\tA2ZbbzBLc+SAVzE6yRR4ed17fOfz4+ohypgG7/g+SwhmX+QH48RZnXi4bZxvCuKl\n\tmQZIL9tD+jKI2COnNKUM36q4Z1SjCALn31H+vi7Jcaw8Z7uhNK1EmuX1bTONOwlW\n\t5BE4WyiANUdWhE=","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:mime-version\n\t:content-type; s=default; bh=UOID7Zy779zMim6+gREEZEs1v6s=; b=vz8\n\tVTLAe//LsYlMOmnFX2VflK0DT+JYYc18kjAmEQj16nKjgLlFrWgiAprXpc01nD7k\n\tNEelpZ0cr2A6Y5VhcQ0evjjldCExdM3P0zBSiirGrHgl5BOr2Az+K6t1XJ4jV3a5\n\tMVfXdexGlayQvCkzTn7xwFNrFG2sraviVp/omGgs=","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.5 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tRCVD_IN_DNSWL_NONE, SPF_PASS,\n\tURIBL_RED autolearn=ham version=3.3.2 spammy=Signature","X-HELO":"relay1.mentorg.com","Date":"Wed, 6 Sep 2017 21:01:34 +0000","From":"Joseph Myers <joseph@codesourcery.com>","To":"<libc-alpha@sourceware.org>","Subject":"Update netinet/tcp.h from Linux 4.13","Message-ID":"<alpine.DEB.2.20.1709062101150.29155@digraph.polyomino.org.uk>","User-Agent":"Alpine 2.20 (DEB 67 2015-01-07)","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"US-ASCII\"","X-ClientProxiedBy":"svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To\n\tsvr-ies-mbx-01.mgc.mentorg.com (139.181.222.1)"},"content":"This patch updates sysdeps/gnu/netinet/tcp.h to include new\ndefinitions from include/uapi/linux/tcp.h in Linux 4.13.\n\nTested for x86_64.\n\n2017-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.","diff":"diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h\nindex 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 \n","prefixes":[]}