Re: [netmod] 6021 ipv4-prefix

Mikael Abrahamsson <swmike@swm.pp.se> Thu, 18 April 2019 10:53 UTC

Return-Path: <swmike@swm.pp.se>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5520D12009C for <netmod@ietfa.amsl.com>; Thu, 18 Apr 2019 03:53:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.301
X-Spam-Level:
X-Spam-Status: No, score=-4.301 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=swm.pp.se
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 3dNZjBY22NZN for <netmod@ietfa.amsl.com>; Thu, 18 Apr 2019 03:53:25 -0700 (PDT)
Received: from uplift.swm.pp.se (swm.pp.se [212.247.200.143]) (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 E6B3C1200EA for <netmod@ietf.org>; Thu, 18 Apr 2019 03:53:24 -0700 (PDT)
Received: by uplift.swm.pp.se (Postfix, from userid 501) id 6EB5CAF; Thu, 18 Apr 2019 12:53:22 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=swm.pp.se; s=mail; t=1555584802; bh=XoEGTwJQs12gDXTzvfPKh/G0FCwbZrUxHdvwSFsYPbA=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=OHVAZbizlY9+y+/HVcSwMcewPrY71uqav02GE1cbGKk0rp2W27Q0GsEEa+fFUCN+y skk/ZQzMXsr0Nz49cIsddj+M+AgWvZMuAGEDliUGKhqvyeV6wlWCteli7WdyE+8rLi IjOjLL4olzlNz+hbdRCrN3WRreZzOhp8OONbP5Fc=
Received: from localhost (localhost [127.0.0.1]) by uplift.swm.pp.se (Postfix) with ESMTP id 6C70A9F; Thu, 18 Apr 2019 12:53:22 +0200 (CEST)
Date: Thu, 18 Apr 2019 12:53:22 +0200
From: Mikael Abrahamsson <swmike@swm.pp.se>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
cc: netmod@ietf.org
In-Reply-To: <20190418102604.y5wyqflcudiywj2i@anna.jacobs.jacobs-university.de>
Message-ID: <alpine.DEB.2.20.1904181251000.3490@uplift.swm.pp.se>
References: <003301d4f498$4f593640$ee0ba2c0$@gmail.com> <alpine.DEB.2.20.1904180906360.3490@uplift.swm.pp.se> <20190418080643.gcdi5x4dtn64adwc@anna.jacobs.jacobs-university.de> <alpine.DEB.2.20.1904181128480.3490@uplift.swm.pp.se> <20190418102604.y5wyqflcudiywj2i@anna.jacobs.jacobs-university.de>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
Organization: People's Front Against WWW
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/S0PLd3oV-9dDO0fV29vzUe8BGnc>
Subject: Re: [netmod] 6021 ipv4-prefix
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Apr 2019 10:53:27 -0000

On Thu, 18 Apr 2019, Juergen Schoenwaelder wrote:

> On Thu, Apr 18, 2019 at 11:43:05AM +0200, Mikael Abrahamsson wrote:
>
>> 2001:db8::/64 and 2001:db8::1/64 are NOT the same if you use them.
>
> Why are they not the same if you define a prefix?

Because they're not. One of them is a valid prefix, the other one isn't.

> +17.4 is not an integer, so this is an error (not because of the + but 
> because of the . followed by additional digits). +17 is I think a valid 
> integer value but the + will be dropped in the canonical representation.

Yes, but 2001:db8::1/64 isn't valid prefix (because the host portion of 
the prefix isn't 0) so why should it be "rounded" when 17.4 shouldn't be 
rounded if an integer input is expected?

-- 
Mikael Abrahamsson    email: swmike@swm.pp.se