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

神明達哉 <jinmei@wide.ad.jp> Mon, 27 March 2017 21: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 94603120727 for <ipv6@ietfa.amsl.com>; Mon, 27 Mar 2017 14:24:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.402
X-Spam-Level:
X-Spam-Status: No, score=-2.402 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.197, 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 fCXpBBvqPNVV for <ipv6@ietfa.amsl.com>; Mon, 27 Mar 2017 14:24:28 -0700 (PDT)
Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (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 C8D8D124234 for <ipv6@ietf.org>; Mon, 27 Mar 2017 14:24:25 -0700 (PDT)
Received: by mail-qk0-x234.google.com with SMTP id p22so50609239qka.3 for <ipv6@ietf.org>; Mon, 27 Mar 2017 14:24:25 -0700 (PDT)
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=q8FVxNSYPtlO5AsMe9DW7Obk840oTSsECxusm+1dE/w=; b=fGGODl6kNTN2zm8o52ohEu2kldVpju9PGvUOopbn7UCxILjoE2/cJHrxfD6jPizv96 RRDh+SmJquSQ5Nlla94VwMFH6XFSyOJ8JfAFDpXhAlQYMx6PAjEvRGihhtjUon4E04pA 85Hb5QUTCTfa45rcdew3PcuIvHmfhvE3/QDu4w8JDS5HmMRWvmBjy68Tw8XfLSHisa2G BPCgCTLTq+zdWGnCvFd2BYnTnUMia5z5pXUmAtn+BFortwEW4hvFUdjZeH7m8qJmmQmR SG3npXADG1HM6OPUxY3+G64wt6YHQdiBmWw+jwSwCbBIBuJcg7YkcrwGNMRCvrEXXFbl MPRA==
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=q8FVxNSYPtlO5AsMe9DW7Obk840oTSsECxusm+1dE/w=; b=BSmNU3zIlmRiDxPyHXIysqoIyhioxvI4zP4wY/SkusMJB6A0d2rNMXUhYlPJ1dgHOb 9utIZo/ZXz8DdbcIu9l6eysPw2r900wJZSF6KYnkGowcK8xqy1g/I9+A+RrAUVxdMAWK jzQ/8kS/rRGXNMFuCNKGHY5X9cGbJVt/+oZ9PfNlqTD6qrimM5Yu4EhnPpJ493w8wos3 BNhMNB3812e+ATtYjtEgE5HD+d4kmC1oZKjIMW9YYW0WR/g4wUJ6ZgAWJi4tzaQzEyNj F6voHgMsyAjbnrNbjXKdyrz79iD+oF1H43mzEXL8PWwFqy/1UPTooG40eqpdI9gjE+op w3ag==
X-Gm-Message-State: AFeK/H0xVmK+ihmg0xzKVpZ9bBqh+uFzJK0en/fHGF6yJqywR74X6eG16U+LGwj3cLPwF9jKGqGsFxIyv7jaTw==
X-Received: by 10.55.192.79 with SMTP id o76mr11420151qki.19.1490649864886; Mon, 27 Mar 2017 14:24:24 -0700 (PDT)
MIME-Version: 1.0
Sender: jinmei.tatuya@gmail.com
Received: by 10.237.61.204 with HTTP; Mon, 27 Mar 2017 14:24:24 -0700 (PDT)
In-Reply-To: <dfc8570d-fff0-39fe-a53f-db2c81c0ec8f@gmail.com>
References: <20170223134026.GI5069@gir.theapt.org> <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> <CAJE_bqdZezDRti5LqCKnmU9QkwwhdejP22gXwk3wLKiS0mhx+Q@mail.gmail.com> <dfc8570d-fff0-39fe-a53f-db2c81c0ec8f@gmail.com>
From: 神明達哉 <jinmei@wide.ad.jp>
Date: Mon, 27 Mar 2017 14:24:24 -0700
X-Google-Sender-Auth: oRDbe9E72aSm9ssOoxUYEaUQ8Nw
Message-ID: <CAJE_bqdHv0vw_kFFBZ2NE98t0nhkCR5rz8f=UOpwmvqtVjNqhg@mail.gmail.com>
Subject: Re: Objection to draft-ietf-6man-rfc4291bis-07.txt
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Cc: 6man WG <ipv6@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/PKekILPf0szpX6FgRHB3zlZVOJc>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 27 Mar 2017 21:24:30 -0000

At Mon, 27 Mar 2017 16:00:58 -0500,
Alexandre Petrescu <alexandre.petrescu@gmail.com> wrote:

> > 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))
>
> Tatuya, masking it that way it means that fe81::/10 is also recognized
> as an LL address prefix, right?  I think it is good, but just checking.

fe81::/10 is just an "abnormal" form of fe80::/10, but I guess you
actually meant fe81::/16.  Assuming so, your understanding is correct:
an address that matches fe81::/16 is recognized as unicast link-local
wherever the IN6_IS_ADDR_LINKLOCAL macro is used for the test.  For
example, BSD kernels consider this kind of address to be unicast
link-local in the validation of received RA:

    if (!IN6_IS_ADDR_LINKLOCAL(&saddr6)) {
        nd6log((LOG_ERR,
            "nd6_ra_input: src %s is not link-local\n",
            ip6_sprintf(ip6bufs, &saddr6)));
        goto bad;
    }
(this code only checks the first 10 bits).

--
JINMEI, Tatuya