Re: Need your help: different connection IDs in the same datagram

Martin Thomson <mt@lowentropy.net> Wed, 15 July 2020 22:41 UTC

Return-Path: <mt@lowentropy.net>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4596C3A0A2C for <quic@ietfa.amsl.com>; Wed, 15 Jul 2020 15:41:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.12
X-Spam-Level:
X-Spam-Status: No, score=-2.12 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=N6XwsJ8T; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=RKeow2ES
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uCLk-OtvwhWu for <quic@ietfa.amsl.com>; Wed, 15 Jul 2020 15:41:48 -0700 (PDT)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 384C83A0A2B for <quic@ietf.org>; Wed, 15 Jul 2020 15:41:48 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 67B5ACC3 for <quic@ietf.org>; Wed, 15 Jul 2020 18:41:47 -0400 (EDT)
Received: from imap2 ([10.202.2.52]) by compute2.internal (MEProxy); Wed, 15 Jul 2020 18:41:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=wM6wGFxvT/Bf6zktvADzmXEoK+9c9Hc J/reP6lGDW7s=; b=N6XwsJ8TmelQ9e0tJ6VQNKoVcQaI1fSfuEY3HM29tUJyRpe kgo40PjJk7FcqWm6hbaRSG1btSz3EcVHntAfWSXHFxpk6n6IcIuUMh0wO7ctPuQf NGDmsmihG23TZ6GGYBYRboEM3SfbBpIFnJ3fWAfgrFB6k37y7u9hl/axcK0nH/gK w/C8FZkhfWIpW8BIr/TIvIe3Jl4b7acfZeXf7m7AUAMVGfaJL58+cXI1BC3gaVPM oTw3XvYsuByzTmEf9v1TT6gvS1UF9Ae6W73UUyew1KyDeKaEzumyN2GOnpt8eB+2 1g3xoEcgNwcmMLmstWl0F9F21I0xnkVbOCswoPA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=wM6wGF xvT/Bf6zktvADzmXEoK+9c9HcJ/reP6lGDW7s=; b=RKeow2EShnJod3WTsDO01R natynux/Qass1Z/YPoJS11vA/yvyuGUvInVU1YUEI8HMtBBwX/DhRFTTezwcuEP8 ZeLLncf3zNzWGZ8Dozf0ZK/AA7o00BGY7QNbyjt8VGS1yyCxq5X9Inxu0+LJ4VBz Zs97UdiTr/wr0ETMFOrIQp4s7vBCQmD256RDoCdzd9EtO6LFeK/z3FFi/jsRM8hf tyk11lqA1VfFbWH0s0cZSOGDE9zPPVdixCq60bZHEWWuf6keA5uQP3qaol6KSRNS wdFvyDXAVUBQ7LvUGqz0n9S5Mkiiqiet115KandOgtEHwzS8xBsHhxMxAVkXpcJQ ==
X-ME-Sender: <xms:KoYPXy4Tp-8wNeLRZBiwwX7ojrjrdY4oCnwskfd4TQTL0vjbdi3IcQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrfeefgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreertdenucfhrhhomhepfdforghrthhinhcuvfhhohhmshhonhdfuceomhhtsehlohif vghnthhrohhphidrnhgvtheqnecuggftrfgrthhtvghrnhepkeetueeikedtkeelfeekve fhkeffvedvvefgkefgleeugfdvjeejgeffieegtdejnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepmhhtsehlohifvghnthhrohhphidrnhgvth
X-ME-Proxy: <xmx:KoYPX76avP9HZk8ZLI13k0d9XqH8GYpFPVMAyyZEjpQAApujVoEvhQ> <xmx:KoYPXxfv3LhqIaBQKfyebiA7ekaDZaczRY5FGZUoPRDeBgn3jKEWEg> <xmx:KoYPX_Li99SjYCx4vJXuyS6JnIVcjVQWJb_2x6X_Mr6JoehBF-5Yjw> <xmx:KoYPX9aKcqwJmvtnCAO-NClIwztHaO6s7ri1lglsPaTXW5lzxTu6PQ>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9EBC8E00DF; Wed, 15 Jul 2020 18:41:46 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-dev0-613-g8a73ad6-fm-20200709.001-g8a73ad6e
Mime-Version: 1.0
Message-Id: <7ee5a352-fef6-44ed-9e82-09194aae366e@www.fastmail.com>
In-Reply-To: <20200715180231.GB9808@lubuntu>
References: <ae21cc02-3357-40c8-a1e9-3966fdf575a5@www.fastmail.com> <20200715180231.GB9808@lubuntu>
Date: Thu, 16 Jul 2020 08:41:27 +1000
From: Martin Thomson <mt@lowentropy.net>
To: quic@ietf.org
Subject: Re: Need your help: different connection IDs in the same datagram
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/Nq--2qjVtHLkC_I0W4XaJzpT-QU>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Jul 2020 22:41:49 -0000

On Thu, Jul 16, 2020, at 04:02, Dmitri Tikhonov wrote:
>   #if VARIANT_A
>             if (!conn_owns_scid(conn, dcid))
>   #else
>             if (conn != lookup_by_dcid(dcid))
# else
             if (false)
#endif

This would also work, would it not?