Re: [quicwg/base-drafts] don't allow 0 as a packet number (#832)
MikkelFJ <notifications@github.com> Fri, 13 October 2017 14:40 UTC
Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 15C88132CE7 for <quic-issues@ietfa.amsl.com>; Fri, 13 Oct 2017 07:40:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.799
X-Spam-Level:
X-Spam-Status: No, score=-4.799 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.com
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 CUUU1Z2_Xl9G for <quic-issues@ietfa.amsl.com>; Fri, 13 Oct 2017 07:40:18 -0700 (PDT)
Received: from o5.sgmail.github.com (o5.sgmail.github.com [192.254.113.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 69BA5120720 for <quic-issues@ietf.org>; Fri, 13 Oct 2017 07:40:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=NSMWXH0RJtt3HiBwZ7vXq9Qc8sY=; b=tzeqrfT2G/pxFYwM c7iR/SCfV6DFnknsoLDFPaBYYcjoe32ln9Tnn39Bx01rf7j+gEmZHaY7Mu6twVml 08CCJrql1CtYcKLjNGB6TEVoi1tPVshcqH9TElu0Lc4hC/R0C6mtla5xi6AJrbLJ vYes95SOq6YTvCGjrvJVQ/NgqE8=
Received: by filter0011p1iad2.sendgrid.net with SMTP id filter0011p1iad2-9377-59E0D050-63 2017-10-13 14:40:16.887845102 +0000 UTC
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0023p1iad2.sendgrid.net (SG) with ESMTP id ZVpcaf3_RQm9G6mHo-yAIQ for <quic-issues@ietf.org>; Fri, 13 Oct 2017 14:40:16.862 +0000 (UTC)
Date: Fri, 13 Oct 2017 14:40:17 +0000
From: MikkelFJ <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab0b6d3e17c2da42d96fe54ae9bb9aec6a04d7b47892cf0000000115f8925092a169ce0fa74d75@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/832/336472424@github.com>
In-Reply-To: <quicwg/base-drafts/issues/832@github.com>
References: <quicwg/base-drafts/issues/832@github.com>
Subject: Re: [quicwg/base-drafts] don't allow 0 as a packet number (#832)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_59e0d050b666c_244e3f8b09aaef28282cb"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: mikkelfj
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak1Q/0KH5SrWwH09DZ5Gvh2nXpcsfFWAca497X j3GlwlXj4cU6UlRTKPLJXbS0OtmnAVRh8visNFU5SAGtXnhsvINTLYJ5/f9M5XWOj6Sws6Ebv9PCS8 FI+Y7QwOU2L1pj1zVjTWADb3c+9mX+BJE9KBmuDnO1C9dk4EcXkwLIEIpfitoURltE1jT+CLQCc5a3 c=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/J_io0iCWSgtCRjmf9SxOhyvziIE>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Oct 2017 14:40:20 -0000
I see the argument of avoiding sentinels, but at least in the C programming language, there is a massive amount of boilerplate code to initialize various structs that could just have been zeroed. There there are numerous additional checks to see if a value is uninitialized instead of just comparing with the previously received value. A much simpler check is to ensure that whatever you receive is larget than what you have: it then becomes illegal to send zero. But it is also illegal to send something smaller in many cases, for example data limits. In this context treating 0 as special makes a lot sense. From an algebraic point of view, 0 also has special signficance amongst the countable objects. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/quicwg/base-drafts/issues/832#issuecomment-336472424
- [quicwg/base-drafts] don't allow 0 as a packet nu… Marten Seemann
- Re: [quicwg/base-drafts] don't allow 0 as a packe… MikkelFJ
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Nick Banks
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Marten Seemann
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Nick Banks
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Marten Seemann
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Nick Banks
- Re: [quicwg/base-drafts] don't allow 0 as a packe… ianswett
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Nick Banks
- Re: [quicwg/base-drafts] don't allow 0 as a packe… ekr
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Ryan Hamilton
- Re: [quicwg/base-drafts] don't allow 0 as a packe… janaiyengar
- Re: [quicwg/base-drafts] don't allow 0 as a packe… pravb
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Ryan Hamilton
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Martin Thomson
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Patrick McManus
- Re: [quicwg/base-drafts] don't allow 0 as a packe… MikkelFJ
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Lars Eggert
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Martin Thomson
- Re: [quicwg/base-drafts] don't allow 0 as a packe… MikkelFJ
- Re: [quicwg/base-drafts] don't allow 0 as a packe… MikkelFJ
- Re: [quicwg/base-drafts] don't allow 0 as a packe… ekr
- Re: [quicwg/base-drafts] don't allow 0 as a packe… MikkelFJ
- Re: [quicwg/base-drafts] don't allow 0 as a packe… janaiyengar
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Lars Eggert
- Re: [quicwg/base-drafts] don't allow 0 as a packe… janaiyengar
- Re: [quicwg/base-drafts] don't allow 0 as a packe… janaiyengar
- Re: [quicwg/base-drafts] don't allow 0 as a packe… pravb
- Re: [quicwg/base-drafts] don't allow 0 as a packe… janaiyengar
- Re: [quicwg/base-drafts] don't allow 0 as a packe… MikkelFJ
- Re: [quicwg/base-drafts] don't allow 0 as a packe… Martin Thomson
- Re: [quicwg/base-drafts] don't allow 0 as a packe… janaiyengar
- Re: [quicwg/base-drafts] don't allow 0 as a packe… janaiyengar