Re: Objection to draft-ietf-6man-rfc4291bis-07.txt

神明達哉 <jinmei@wide.ad.jp> Fri, 03 March 2017 02:24 UTC

Return-Path: <jinmei.tatuya@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6C8E312943F for <ipv6@ietfa.amsl.com>; Thu, 2 Mar 2017 18:24:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.37
X-Spam-Level:
X-Spam-Status: No, score=-2.37 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.229, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-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 0aoiRuxzIvKb for <ipv6@ietfa.amsl.com>; Thu, 2 Mar 2017 18:24:27 -0800 (PST)
Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (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 57E151293DA for <ipv6@ietf.org>; Thu, 2 Mar 2017 18:24:27 -0800 (PST)
Received: by mail-qk0-x22f.google.com with SMTP id h9so1171320qke.2 for <ipv6@ietf.org>; Thu, 02 Mar 2017 18:24:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=4AnJrdP59GOd4Aj8W94QENTFPMyt9okW/VluO2GHZXY=; b=bXGae9DwEFfehIi8zUtOGbXxIae+uwl2FHC81G3fmtqzfW6NfctKOvTrQooCzmdTWD tuISnni0ks4R5OKnYv80a/0BB1WHtG/2tkw9uBmpDuppexaeP5DO9a+YhvcBgRuc01BP dWWRZI60p/IBvSoFPzboqDjDsxQR4drjXVSZDvLiNVQHEX3GJf3skCLAxLZDSGlOPL+T G6E9wNfVgPwrIyF5wGochgtUeuO2P6SX02Ny6Z/tEBpN0fgtPnObbrWCU8pnmKpchQgk IRXD3u6yWHL8YoM3KZrcpo8kaT3htl43qEfOF5PmtiVxzgvKEd5fa4AYT2o2t8dwPjA+ hEwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=4AnJrdP59GOd4Aj8W94QENTFPMyt9okW/VluO2GHZXY=; b=KZe6lGtijuKY3lhUAmCqecd3NxcFAZwlJFMksO02n+X0TFFDVkfb8pc/LuZbB8jZ9r oo67vedbRZKxre3aAn1Rl76AFQmrAjIrOxfvItIBXNFfgc7cUq2PELSyG0BrTPUJ1JG1 VHkNysIgCzX/7xwCI2sDzJVAb3cTKsfR+hLu67UrzOJaFymPv1H8ELVc2lDydXcQaRFv U0DZiSTOyP5rSyQhzVlSHfzrcT0BYpdLnNTi5mfG/+QrRgzMQYdoFFsnpOWgzv2M9fVG lqy+QGNTvtkq/6GWVsmTtRhoG1oj1IV2TVFtahTaav3y0UINf2qRWN/YeuLmDJm/PSuG 892g==
X-Gm-Message-State: AMke39k2rGWBRf1fwYL1ahC+fgxrwrOPhJwtwEHMUkR8MsSkpyjJC0wcKbuzljSkdWi3GzRRNN3+7y34yib6IA==
X-Received: by 10.55.112.66 with SMTP id l63mr355829qkc.149.1488507866244; Thu, 02 Mar 2017 18:24:26 -0800 (PST)
MIME-Version: 1.0
Sender: jinmei.tatuya@gmail.com
Received: by 10.237.61.204 with HTTP; Thu, 2 Mar 2017 18:24:25 -0800 (PST)
In-Reply-To: <ae35b45a-0398-840f-fc0d-1f64dd2fcc58@gmail.com>
References: <20170223134026.GI5069@gir.theapt.org> <9277BC0B-04F3-4FC1-901E-F83A8F0E02D7@google.com> <58AF6429.70809@foobar.org> <902276E9-0521-4D4E-A42B-C45E64763896@google.com> <58AF726A.3040302@foobar.org> <F7C230DE-4759-4B78-ABF2-6799F85B3C62@google.com> <58B014F6.2040400@foobar.org> <6DA95097-8730-4353-A0C9-3EB4719EA891@google.com> <CAN-Dau0s04c=RV0Y8AGaxBPFui41TWPTB+5o0K2Lj-iah0An1w@mail.gmail.com> <CAL9jLaYirty22iGiEjEaYq3_KA1FZhxBTOBWuFOXQ9C-WPd5xQ@mail.gmail.com> <CAN-Dau0n6oFm538XdJOcuO1yg92BCDD3mBu5YfBVm_+g-gtcKA@mail.gmail.com> <CAL9jLaYO=uYgVfSZ0SoSe0SujJ1xgwEKE8WLzo_keJHywgXTtg@mail.gmail.com> <CAN-Dau1vJV5O_Ythp6THkAu4-YZXV82Upny1V+ybbjCVZQQX=A@mail.gmail.com> <27cce319-18ac-5c0e-3497-af92344f0062@gmail.com> <de4988be-6031-08d9-84ce-21c3fa4f9bc9@gmail.com> <98401ef7-cf41-b4a0-4d11-a7d840181bd0@gmail.com> <1047f5fc-ae40-be52-6bab-27f31fe5e045@gmail.com> <9a94feac-8d59-b153-d41c-04fc371e4db4@gmail.com> <CAO42Z2z7v4gDk91b6Of-1sczV88m3B9kzn0MeJU_VBJ416k6Ww@mail.gmail.com> <ae35b45a-0398-840f-fc0d-1f64dd2fcc58@gmail.com>
From: 神明達哉 <jinmei@wide.ad.jp>
Date: Thu, 02 Mar 2017 18:24:25 -0800
X-Google-Sender-Auth: ffztX2TMXXrcv9UMSMYJBBpT5Is
Message-ID: <CAJE_bqdZezDRti5LqCKnmU9QkwwhdejP22gXwk3wLKiS0mhx+Q@mail.gmail.com>
Subject: Re: Objection to draft-ietf-6man-rfc4291bis-07.txt
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/fgoq7u_TJtv4PsG3Tp4EP1x6AgU>
Cc: 6man WG <ipv6@ietf.org>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Mar 2017 02:24:28 -0000

On Tue, Feb 28, 2017 at 4:04 AM, Alexandre Petrescu
<alexandre.petrescu@gmail.com> wrote:

> Finally, there is no advice of what bits to put between fe80:: and a
> 64bit the Interface ID - zeros or ones?  linux says it's a fe80::/64 and
> IIRC BSD says it's a fe80::/10.  The routing entries based on that can
> make for interop problems.

I don't know exactly what you mean by "BSD says it's a fe80::/10", but
BSD variants use a 64-bit IID to configure (e.g) an ethernet interface
with a link-local address, as specified in RFC4862 and RFC2464.  They
also only recognize addresses that match fe80::/64 as on-link:

Destination                       Gateway                       Flags      Netif
fe80::%em0/64                     link#1                        U           em0

On the other hand, BSDs' implementation of the IN6_IS_ADDR_LINKLOCAL()
macro only checks the first 10 bits:

#define IN6_IS_ADDR_LINKLOCAL(a)        \
        (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80))

If you mean this by "fe80::/10", yes, BSDs hardcorde /10 for
link-local.  But it has nothing to do with the length of IIDs.

--
JINMEI, Tatuya