Re: [Cbor] I-D Action: draft-ietf-cbor-network-addresses-02.txt

Brian Carpenter <brian.e.carpenter@gmail.com> Wed, 09 June 2021 10:21 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8EA943A05F0 for <cbor@ietfa.amsl.com>; Wed, 9 Jun 2021 03:21:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, 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=gmail.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 Wk-emqjWUrEQ for <cbor@ietfa.amsl.com>; Wed, 9 Jun 2021 03:21:25 -0700 (PDT)
Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 8930D3A05C7 for <cbor@ietf.org>; Wed, 9 Jun 2021 03:21:25 -0700 (PDT)
Received: by mail-lj1-x236.google.com with SMTP id r16so804020ljc.0 for <cbor@ietf.org>; Wed, 09 Jun 2021 03:21:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9shK2Ve3Vz72D6vDzlhS5u8LxqONOtmOChw+EEsekF8=; b=Z9aFhu0IylEXTZhUt90kB+x3BEcVTNsheFOpsemLBgFMLk2bmVRcnILghjFp7+yvB0 kYx54EZ2ENJ0y7KWJwpbPmZt14Xyn2QP6N6yX3r4Jsfi9j3HMsWOWvGuuBkagoKl3Y/N e1UYPmayRfdOFlDM2mDpFM2LHNh4IN2z608QGDVJSUqxvd03PRGsHr627LPTlgSuIsdZ nU5dihElKQ4FY47LjwcoK/+YlN4qjuSIj2r0Gng36fZ/gpEsznaBEYPGamffHCmS+88K eaNaRiQgWElvzxH8Hi4YRW/b0SIX+9oEbHKnx3aQgaCKKyMaV8ZEQVyjLSdGweUMJPIL fkTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9shK2Ve3Vz72D6vDzlhS5u8LxqONOtmOChw+EEsekF8=; b=JjEQYtC5OZSY9vwdIhz4AwF4CClH1x3xnCxdc0Pg7Etkg0Gh7xs1tjLZu8hRog2ALB uXxaXGKIqi04lqRwS5EL9VJSoA6lNbD+E8LSlGelKkizqA3rKs6fYrrePWhSnA3TEi0S q5XjGyyhByUa+x6LgfjnJN0MnlvjUaZ28iyUrHD8EOWMqLaG5Lg4vJPt2sLjKwzctjIE NNeVysLsIX7XCmorgjp0PxcyT2/Y1lOARrmQcKLDEUv2iyPxjHEOA3j+r2YzrBL+eimj f+gbpvb+eUvANBWloO/LP+1wOm3Ejjb94N8VZiQ3O29EHBX4Cl1XtJB8Saqlx52+6tQ3 +icA==
X-Gm-Message-State: AOAM531CISrq0pmU7/9uQnYBO+h6LjK5KafWSPKR1beU8/F4KOdoYwn0 D4391GxQpG4GR0Yray/WYO9BNgsAy/hGdXzuZNw=
X-Google-Smtp-Source: ABdhPJweh/LfOVRxKn6OLbt0UqlSQkUvwYJYre4JK9LI2jBPGTJRYKQPms9JnZUz0e3GmcFvr3ZSPauwA8l3jSPW+Ss=
X-Received: by 2002:a2e:7f09:: with SMTP id a9mr2886682ljd.45.1623234081790; Wed, 09 Jun 2021 03:21:21 -0700 (PDT)
MIME-Version: 1.0
References: <161530094514.13640.13557132723821236873@ietfa.amsl.com> <DE9E58FC-13DE-4AD5-B0EC-EBF0DC13153A@tzi.org>
In-Reply-To: <DE9E58FC-13DE-4AD5-B0EC-EBF0DC13153A@tzi.org>
From: Brian Carpenter <brian.e.carpenter@gmail.com>
Date: Wed, 9 Jun 2021 22:21:09 +1200
Message-ID: <CANMZLAaDizUSi8mcLbjAE15DFwid53VfDG1JbyK5tV6rki4+gw@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
Content-Type: multipart/alternative; boundary="000000000000d51ecb05c452a2e6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/83it5g7yU2uuYaSRZv8GPE6uqe8>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-network-addresses-02.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jun 2021 10:21:31 -0000

You'll note that 8992 is Informational. If it proves useful, I'd be glad to
see it updated, not necessarily compatibly. And yes, +1 to your suggestion.

Regards,
    Brian Carpenter
    (via tiny screen & keyboard)

On Wed, 9 Jun 2021, 21:30 Carsten Bormann, <cabo@tzi.org> wrote:

> I just had occasion to check RFC 8992 (should have done that earlier,
> ouch).
>
> Apart from this nice piece of CDDL, repeated all over the place (yes, the
> rest is missing each time):
>
>      objective-flags /=          ; as in the GRASP specification
>
> … I find:
>
>      prefval /= pref6val
>      pref6val = [version6, length, ?prefix]
>      version6 = 6
>      length = 0..128             ; requested or offered prefix length
>      prefix = bytes .size 16     ; offered prefix in binary format
>
>      prefval /= pref4val
>      pref4val = [version4, length4, ?prefix4]
>      version4 = 4
>      length4 = 0..32             ; requested or offered prefix length
>      prefix4 = bytes .size 4     ; offered prefix in binary format
>
> Maybe we should supply some CDDL in draft-ietf-cbor-network-addresses so
> people don’t start to copy the above whenever they need a prefix.
>
> Grüße, Carsten
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>