Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp987087lqs; Wed, 6 Mar 2024 03:00:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV/oa3wV7QeOTOWRyFjeu1W/PR3nHhWq6HhL7RqkGCaoSX6rE/lNiivfXzYOgU2pS8TKzuocWKx+HdQcRWL8Bi0ccZiPypPeltDKNMjuw== X-Google-Smtp-Source: AGHT+IFk3VppvgyJF9HsnI7Gr1x7wU1iLq6VgG7lRYiWv/Wgsp4IHJ6Pg8p+BhCR76oFQtru3axG X-Received: by 2002:a17:902:c944:b0:1dd:135e:2604 with SMTP id i4-20020a170902c94400b001dd135e2604mr5794210pla.40.1709722824082; Wed, 06 Mar 2024 03:00:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709722824; cv=pass; d=google.com; s=arc-20160816; b=Nz/PNM2cILj1bYIi51JxgEtiSRt+0zsy6yd6xCu5YMN299BQFlDmUiouIKoKsPKvo1 pPk7p6A/5b32lkJZfx0RSn2WRuG6HmF8omtO2ocjN89jQfnp3oy1LorKIIzO5Ba306r8 gXLuwf7TkKoON8W4nz2MwDRNrGQO+mTPUnxW7Ou2b1xqc60ccGVyXqNmE39714gsRj0i 4pm1w+/lKwF0gfabh0r4b55kZtUz6zQ2fnF0uVH8d3gGQUd84R5qQSrz6/yT3xOlP2kn eMwknt2NlBRa5eov0chFlNTZdmoXz+TJVFTLKcR5xHc6dJz9Mxnjx9RAQ45g3QPXvISm KgXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S0fDSEiO2tzEnLYzBy8gLFNWQYeimalkK4O2UaLtxzQ=; fh=9YVkRv6wc5DmxS3tMiIMpKZhSsdD1I57B8jBt2U+izI=; b=Gi7tdMCkJW/PTzsDTT5iLivYpZT0snjrc5o4DejdVbFLvkbpE87xkowpiwLKVK+kkz 7Wds6JQ3bKnazAElYkZhujML7QqKI9mXv2TjI+7RB99i3jYKxVm/2YwXD/J88xwp9gtA QDO2PIUTZfNTZ4HIPYtuRZhckyDI4MeajPGE5gwr2WUCg4ZgSBJdtp+wC2/wC8ojzFcT fMpaUdTaoARrsFTGl88lR1jgacF3aOZV6Mn0eLLyGFJITq9s1Bi/JpKuT/rEILeJihuF daf66+4P7x1nVuDotMxH3PFjRfc/SL4kg2oUhKhYHCN27djb/sX4zMNbdaGfWG260aUg 1kDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXbW1vYN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-93823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n7-20020a170902f60700b001db608107d8si11879681plg.203.2024.03.06.03.00.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 03:00:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXbW1vYN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-93823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4CCC828BB34 for ; Wed, 6 Mar 2024 10:59:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9442B60B86; Wed, 6 Mar 2024 10:58:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lXbW1vYN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B94263A262; Wed, 6 Mar 2024 10:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722716; cv=none; b=tbbDuuhJ/UhUkQLyvj9Cz0UaKfrOPbCMsASY+lR8iF0yZN84mvwcU3fFIgo0DHfv2jPp9Dki7JxiRaoPgtpNsYzDCktvtPjJmQPDJrdFOkEvGFHxy+T67SIro0lFf3+L/QZ8nvowtEnCZKT8PvDTYKooBrigyuarvCnwSigd49E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709722716; c=relaxed/simple; bh=54s2DjrDdCI7US7oHXkWWWhCfQrI4Vrohb9IHY8B5/w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l/pkYrdhzSnnSETdbv1aI3i8pxDtfB0ha0vVKXVA3g/JLoLt9+zwAcI6x6l4QjupUB6U4BkscnT9efg/vajp3VGOwPoQPj4EYZ2fvVI2O7yunmrk1TDWxoeI4IHhHhCn6sFoFzr96k8clOsR1YK/8S6w8Qws6xVK2p6//8frqXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lXbW1vYN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8820CC433C7; Wed, 6 Mar 2024 10:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709722716; bh=54s2DjrDdCI7US7oHXkWWWhCfQrI4Vrohb9IHY8B5/w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lXbW1vYNG9Z12VkEy7Xav1MM+Gp+xVRLoLqVJOK6HfmlnDcACeD3KLR/1TPKMyaKb pXmOVhOyY2GfTfpwvsYtl+8pdGCoIbO7j0d5k7ieVDtkhwQjkyUc5Blg+C2fC+PO68 zYEttzgUL/PteFCoalotN3BFLOK58A2gz+Kb61BzUKuqYGUOUCGVwAvj9JqWaH2O92 B/8eHqYRyqHqohvMIKMZpZxYSdDrNs/Wz8hIJJPwZIceJIZkha7vQsTzjdLlOQ8na5 PNx/JMf8RXeEb1gVJf1ZRyIh49KW9bNFBu67iqZDMlC2ojO+SQ7wjl93mX/PDq1tkv +k8pvTa+yJpAw== Date: Wed, 6 Mar 2024 11:58:32 +0100 From: Alejandro Colomar To: Oliver Crumrine Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ip.7: Add not supported by SOCK_STREAM to socket options Message-ID: References: <7ubz52rfdl2i76sotvd3s4thv6jvbfao6zct3sywqus2owlvkx@wpbeqqdvipo4> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2l9L6u35RRDmYlsD" Content-Disposition: inline In-Reply-To: <7ubz52rfdl2i76sotvd3s4thv6jvbfao6zct3sywqus2owlvkx@wpbeqqdvipo4> --2l9L6u35RRDmYlsD Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Wed, 6 Mar 2024 11:58:32 +0100 From: Alejandro Colomar To: Oliver Crumrine Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ip.7: Add not supported by SOCK_STREAM to socket options Hi Oliver, On Tue, Mar 05, 2024 at 02:31:48PM -0500, Oliver Crumrine wrote: > Hi Alex, > I have attached two programs in the form of C source code below. No > special compilation options required. To change between the three > different socket options outlined in my patch, there are two options on > line 16 and 18 with a comment above them explaining how to use the > fields. >=20 > Here's how to use the programs: > 0. Make sure you have netcat installed. > 1. Compile the dgram one. > 2. Run it. > 3. Run nc localhost 8888 -u (in a seperate terminal window or tab) > 4. Type whatever into netcat and press enter > 5. Observe that there is a control message recieved, and there is a byte > printed, which is the first byte of the data in the control message. Can't reproduce this. The terminal running nc(1) isn't printing anything. alx@debian:~$ which nc /usr/bin/nc alx@debian:~$ which nc | xargs realpath /usr/bin/nc.openbsd alx@debian:~$ dpkg -S /bin/nc.openbsd netcat-openbsd: /bin/nc.openbsd > 6. You may repeat this for the three different socket options. > 7. Repeat for the stream one, but use nc localhost 8888 (without the -u) > for #5. > 8. Observe that there are no control messages recieved with the stream on= e, > and byte is 00, which is the initial value of the variable, before it has > a value assigned when the control messages (of which there are none) are = read. >=20 > Thanks, > Oliver Have a lovely day! Alex --=20 Looking for a remote C programming job at the moment. --2l9L6u35RRDmYlsD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6jqH8KTroDDkXfJAnowa+77/2zIFAmXoTFgACgkQnowa+77/ 2zLA3w//Wb7uRoWE1TV+WmMQ2qhh3r9jVVsJ3OEZ3N1P6bRXT15V5Zeew7CoN08d nckxUcFwGwDXDsw/pAwwCjDWjgT91m9VWaheWRAQvT50Gv5AIZc2B9anMMuHNieD e/kBXzqIVaoUyT+cuXhn0ad0MPdKStp9MvNPSE69rLyFVKlmS5/t7opFEKqSWbnQ HZTA3RjNrl90STwT02h9GTtQtAb2Ni3KTEL4TN5fy5OSgYeqDAgzIazAn4jYhRLy 9q6GcP744iKPbqU2Rastds6epO2vlq4s6D8uSP+BBnJ3TTEd/+A973iOZVoRQis7 IX2A24AGYH4tq1mZ65/RVcd4eI1wcLU/J5fewwzQViMZFufF1y3Hc2oPyy8H4Ojj MZySW7uPIJMd0hKQT1gFj+U97V9PLkyI+zfIetbBh0bGbEb+GogGEC5nsnMyzkbG 1aE+l5C2rj1D7MrksNpZyIsSY965i/TQy04lVyB6W+t5mqyeBp9FsfiloL0vMXJu IqsmOaoVAWMO+PpxThg2m/8PiidKRojT9GlHxP8Shn3FPlUpG2CkwFLZFvPulwvG 90KUrr7fxeDa30RPdVMm8B+BNfdoXYSFHc3VLigD3arCrjUrasyhgPMHb4mHVsUd 1hpXdeGxHlQiF8bwvvDpxKLEv2v0lWVRTomWK93NEYVLtKk218w= =UkIi -----END PGP SIGNATURE----- --2l9L6u35RRDmYlsD--