Re: [MIB-DOCTORS] InetAddress SIZE rules.
Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Mon, 08 May 2017 14:38 UTC
Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: mib-doctors@ietfa.amsl.com
Delivered-To: mib-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id ECA8412949B
for <mib-doctors@ietfa.amsl.com>; Mon, 8 May 2017 07:38:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.464
X-Spam-Level: *
X-Spam-Status: No, score=1.464 tagged_above=-999 required=5
tests=[BAYES_50=0.8, RP_MATCHES_RCVD=-0.001, SPF_SOFTFAIL=0.665]
autolearn=no 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 I4iIFGN3GSJV for <mib-doctors@ietfa.amsl.com>;
Mon, 8 May 2017 07:38:08 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de
[212.201.44.20])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id B07AB129492
for <mib-doctors@ietf.org>; Mon, 8 May 2017 07:38:07 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222])
by atlas5.jacobs-university.de (Postfix) with ESMTP id 2C6E6EFE;
Mon, 8 May 2017 16:38:05 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217])
by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new,
port 10032)
with ESMTP id hxPgOfvpRxLR; Mon, 8 May 2017 16:38:04 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de
[212.201.44.23])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "hermes.jacobs-university.de",
Issuer "Jacobs University CA - G01" (verified OK))
by atlas5.jacobs-university.de (Postfix) with ESMTPS;
Mon, 8 May 2017 16:38:05 +0200 (CEST)
Received: from localhost (demetrius4.jacobs-university.de [212.201.44.49])
by hermes.jacobs-university.de (Postfix) with ESMTP id 0917E2005E;
Mon, 8 May 2017 16:38:05 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23])
by localhost (demetrius4.jacobs-university.de [212.201.44.32]) (amavisd-new,
port 10024)
with ESMTP id 9Yp_b7nj7COG; Mon, 8 May 2017 16:38:04 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de
[10.50.231.133])
by hermes.jacobs-university.de (Postfix) with ESMTP id 1C3E62005F;
Mon, 8 May 2017 16:38:02 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501)
id 0A1B13F3D970; Mon, 8 May 2017 16:38:02 +0200 (CEST)
Date: Mon, 8 May 2017 16:38:01 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Bert Wijnen (IETF)" <bertietf@bwijnen.net>
Cc: MIB Doctors <mib-doctors@ietf.org>
Message-ID: <20170508143801.GB12134@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: "Bert Wijnen (IETF)" <bertietf@bwijnen.net>,
MIB Doctors <mib-doctors@ietf.org>
References: <6ca4ae08-fa9b-60d8-436b-61515a739f57@bwijnen.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6ca4ae08-fa9b-60d8-436b-61515a739f57@bwijnen.net>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/mib-doctors/WuJIQvBIHYvtup-YzP_ddTs7W5A>
Subject: Re: [MIB-DOCTORS] InetAddress SIZE rules.
X-BeenThere: mib-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: MIB Doctors list <mib-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mib-doctors>,
<mailto:mib-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mib-doctors/>
List-Post: <mailto:mib-doctors@ietf.org>
List-Help: <mailto:mib-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mib-doctors>,
<mailto:mib-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 May 2017 14:38:10 -0000
On Mon, May 08, 2017 at 04:02:12PM +0200, Bert Wijnen (IETF) wrote: > In https://tools.ietf.org/html/draft-ietf-softwire-map-mib-07 > I see: > > mapRuleIPv6Prefix OBJECT-TYPE > SYNTAX InetAddress(SIZE (0..16)) > MAX-ACCESS read-only > STATUS current > DESCRIPTION > "The IPv6 prefix defined in mapping rule which will be > assigned to CE. The address type is given by > mapRuleIPv6PrefixType." > ::= { mapRuleEntry 3 } > > > mmmmm, when the InetAddressType is ipv6(2), then my understanding of RFC4001 > is that the SIZE for the InetAddress MUST be 16. Maybe Juergen can chime in here? > > Juergen (or anyone else) can you confirm if my understanding is correct? > It seems the objects in question are always representing IPv6 prefixes, that is, mapRuleIPv6PrefixType is essentially a constant as if it were subtyped to only include the value ipv6(2). The question is whether using the triple (InetAddressType, InetAddress, InetAddressPrefixLength) is really useful and the suggested way of doing things. This must have come up before but I think I garbage collected this part of my memory. Using the triple is good for generic tools, exchanging constants on the other hand is also not very efficient. Right now, I would say that InetAddress(SIZE (0..16)) is consistent with InetAddressType, i.e., the machine readable information says this is a generic Internet address. The other alternative would be to use InetAddressType { ipv6(2) } and InetAddress(SIZE (16)) and then both together indicate to tools that this is by no means a generic Internet address. Doing a mixture of both seems inconsistent - but on the wire you will anyway get InetAddressType { ipv6(2) } and InetAddress(SIZE (16)). Sorry for not providing a clear answer. /js -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
- [MIB-DOCTORS] InetAddress SIZE rules. Bert Wijnen (IETF)
- Re: [MIB-DOCTORS] InetAddress SIZE rules. Juergen Schoenwaelder
- Re: [MIB-DOCTORS] InetAddress SIZE rules. Bert Wijnen (IETF)