Re: [DNSOP] Clarification question: compression pointers always to names earlier in the packet?

Tony Finch <dot@dotat.at> Wed, 24 October 2018 15:46 UTC

Return-Path: <dot@dotat.at>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7896E130E6F for <dnsop@ietfa.amsl.com>; Wed, 24 Oct 2018 08:46:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
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 Ig98BbmqPR6y for <dnsop@ietfa.amsl.com>; Wed, 24 Oct 2018 08:46:41 -0700 (PDT)
Received: from ppsw-31.csi.cam.ac.uk (ppsw-31.csi.cam.ac.uk [131.111.8.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B2DD130F24 for <dnsop@ietf.org>; Wed, 24 Oct 2018 08:46:39 -0700 (PDT)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:57528) by ppsw-31.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1gFLMj-000Ddb-LF (Exim 4.91) (return-path <dot@dotat.at>); Wed, 24 Oct 2018 16:46:37 +0100
Date: Wed, 24 Oct 2018 16:46:37 +0100
From: Tony Finch <dot@dotat.at>
To: Ray Bellis <ray@bellis.me.uk>
cc: dnsop@ietf.org
In-Reply-To: <e29c2cf3-c447-f221-c62c-283ed048343f@bellis.me.uk>
Message-ID: <alpine.DEB.2.20.1810241646060.24450@grey.csi.cam.ac.uk>
References: <BC2CDF40-4FF0-4111-88B7-04969491D2E0@dukhovni.org> <alpine.DEB.2.20.1810241135130.24450@grey.csi.cam.ac.uk> <e29c2cf3-c447-f221-c62c-283ed048343f@bellis.me.uk>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/_vicypYG8Zewf4scr9RUnpcoqIo>
Subject: Re: [DNSOP] Clarification question: compression pointers always to names earlier in the packet?
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Oct 2018 15:46:43 -0000

Ray Bellis <ray@bellis.me.uk> wrote:
> On 24/10/2018 11:45, Tony Finch wrote:
> >
> > * Keep a high-water-mark separate from the current location, and require
> >   pointers to be strictly less than the HWM. (I prefer this way.)
>
> Right, but to be safe the HWM should be initialised with the position of
> the _start_ of the label sequence that's being parsed.
>
> Any time you follow a pointer you reset the HWM to the target of that
> pointer (which per the rule above must be lower than the current value).

Exactly, yes :-)

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Southeast Iceland: Westerly 7 to severe gale 9, veering northerly 4 or 5,
occasionally 6 later. Very rough or high. Showers, perhaps wintry later.
Moderate or poor.