From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 7DF455A004F for ; Mon, 15 Jul 2024 02:43:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1721004215; bh=kvCrWIixAc888e3j++ao4N4QQFamZZxUp4+36v7j2ns=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f/3X6rijdwqtuuX/o4He3YuGcYZpNar+Gz/mX1SYCjxZgORpmooYkKYeNDvqQ8EIE JGA2wJQQRIs1fYRDA3aCIJELQcETaKbgo86lAYcISnRNH49s5syykVgB1UVvl5oEfA 6HPsgxTvTn2IcK4rY6MwFna5/JZSiKZ6nTRGPYAziJ5s2Tt56zbIuKZJ5wT/aWByY9 86hDr+SinEPLMKkeK9Xwx+lhoJMRQ12ajdPxT7M4XCtG8BuHOHh3TBYupKL+FOiZpI xTOg1U7lvV1SVA+5Xfoz67YakrrO6orgWZY9GiXYY9QtJWubfHkUy3nZWLSSxbekx/ SRduMKneASxtw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WMk2v2GYyz4x1y; Mon, 15 Jul 2024 10:43:35 +1000 (AEST) Date: Mon, 15 Jul 2024 10:43:28 +1000 From: David Gibson To: David Taylor Subject: Re: [PATCH v2 10/11] doc: Add program to document and test assumptions about SO_REUSEADDR Message-ID: References: <20240705104409.3847002-1-david@gibson.dropbear.id.au> <20240705104409.3847002-11-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1bYWZksVWA5dBXr1" Content-Disposition: inline In-Reply-To: Message-ID-Hash: UGEBYOT52FPVHYMSWWWPNLBSQ2JC2ASP X-Message-ID-Hash: UGEBYOT52FPVHYMSWWWPNLBSQ2JC2ASP X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, Stefano Brivio X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --1bYWZksVWA5dBXr1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 12, 2024 at 12:42:57PM +0100, David Taylor wrote: > On Fri, 05 Jul 2024, David Gibson wrote: >=20 > I may be missing something subtle, but is j intended to be used twice her= e, > rather than k? Indeed not, good catch, thanks. > > + > > +static void check_all_orders(void) > > +{ > > + int norders =3D sizeof(orders) / sizeof(orders[0]); > > + int i, j, k, l; > > + > > + for (i =3D 0; i < norders; i++) > > + for (j =3D 0; j < norders; j++) > > + for (k =3D 0; k < norders; k++) > > + for (l =3D 0; l < norders; l++) > > + check_one_order(orders[i], orders[j], > > + orders[j], orders[l]); > --------------------------------------------------------^^^^^^^^^ > > +} >=20 --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --1bYWZksVWA5dBXr1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmaUcK8ACgkQzQJF27ox 2GefwxAAlS2t1HNzsFv62RGKPTIEWEBIyRJZ4wFjlo8T5XNiWp6tmAf0Rw8VXf2v 5yV7aDKw4Gv5R1ubFh53FzDrddqLMOPA3qGsYnj/SBi09/+I6c7BtJv95ttWLayt TEman4KqPR2VEx9q8aGb4P8JRISntFaSLBeLZVPL48CqL/JnYhSVknLMUKK4rqRA O8JmB2pAFX2Vdg2eI6KiWymlvvhOAX9NRe2ZvMROihuk8FJUyHhfZL6CKHwfvJ9X Paet7ABYZ+9l2yeeA28D1Iz9RuR1dOAv5lFZtEMRGicmXLW8Y754ecNoaZYZODBu s4j+1+A5N48vCH0GX++9NWTZbYOe3gutp/+7RymTL7yAXWkoaKH6AHtqnEFASW/G Yel8dYufkMCRy3HiysCl52yMlRcOV7yjxL/Er0kKniJTjvqh+BjWERL1AHCcpuzf 1mRTypGFBOYw++zQ8O3gxHBA6S50tnyFE1gPvmXyyQyP1kBVjAzJVIydXiBjt6EX zOrt6cPNoIXcu027XsKdswtCMrRPAtltZIg70zSPbl9A5EjcKNTf7odjrsAhFxlR ByI9MhpK3K2Dvy3uHvejtZ6sNUYKaxqVyIBH2oVdx8VDl1sJ4KGe/EmfjPOb9wXp 2Qtmkc3GpkbuLYgbQIaJeaZNN1716CZv66OLB/xeZow+voYr7RY= =cbZ4 -----END PGP SIGNATURE----- --1bYWZksVWA5dBXr1--