Re: Globally Unique Link Local Addresses (Re: about violation of standards)

Mark Smith <markzzzsmith@gmail.com> Thu, 25 April 2019 23:56 UTC

Return-Path: <markzzzsmith@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 38B5F120350 for <ipv6@ietfa.amsl.com>; Thu, 25 Apr 2019 16:56:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.499
X-Spam-Level:
X-Spam-Status: No, score=-1.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no 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 AhCKuh9o4tGi for <ipv6@ietfa.amsl.com>; Thu, 25 Apr 2019 16:56:45 -0700 (PDT)
Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (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 AF46612009C for <ipv6@ietf.org>; Thu, 25 Apr 2019 16:56:45 -0700 (PDT)
Received: by mail-ot1-x329.google.com with SMTP id j10so1162524otq.0 for <ipv6@ietf.org>; Thu, 25 Apr 2019 16:56:45 -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:content-transfer-encoding; bh=Isk6G/L07YAdanbTvXY2ckuCnOTvBG/lr9wVgMAmwU8=; b=QJpihPQJl3UYaICmYozcJYDfY4bFWEBOMVaOhY5ykywq7DjpJstqk0wKuVm7no+2Ef wOkCk+rzSocBWeXoHRMprQGdr2CNjZSZJeijrhOxGHhrqjsPvlMIaSCJdTST4tuWDrG0 1dzbKt3CVRBuBr6atTPNjuOxVuyxz5BE6DhpM1oR5J476EoWDpwKFVGQyrlIIQuvWAPn k9jAHvO+aGIdpYVShthrBjXT0It+KY4uFIksnh3TQIzuZXhKrYyF/FCFOpjqc6rGRIet 4J1UvZ+8qf66jnjMBK1Jg6qzuz7jokmWjBua/MB/UcPtYLNpXyJlOWZjHb/PyNjTftJJ /Waw==
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:content-transfer-encoding; bh=Isk6G/L07YAdanbTvXY2ckuCnOTvBG/lr9wVgMAmwU8=; b=IKtsgaj3S/HLi/gcXXVGSthtisr5vjcBDcEVKPrIt76OB1nWsglxGUJWVaeBlLfQdo lGvIDp/b9+qeX0GnkldQJdi/hpO4cmJHCsBahwCmEwlw3uz/FnKqOeQ2s0Sk5RjIAQLH nM/yq13FRfq+SVIF96bSBTqLG8kpXsARx9hOZVv3FJjyJ5GgDE1y+vFdVN58WoWBwtYy edOM6QMkXinoMzX73oEo6Ws92qVfIRptxIONxYMRGVSJwJzC+vyTA/aga6u5yT3HxV0m RZsKw1Gx4mqzNz8tk5t01PRg63zdazMFojM0R5gyS77QCijtEA1SGO+hvB0aQWjUDLGb qVWQ==
X-Gm-Message-State: APjAAAWksoUEeZ6ziClGGJlwA18WUIo760Mizygkp2o8UAC18DF846Z6 4Wr0tZcJb17nHAyY1sydqvggNH9MJBb+K3qOUzo=
X-Google-Smtp-Source: APXvYqzvqy/jhwTrH+dfJyI2GYMizbZ59JAv/zxXV3E64o163nngQXydWqCVXuE7Ab9lDrslk37MrFe0pGl/J1FS6Pw=
X-Received: by 2002:a9d:51ca:: with SMTP id d10mr24227501oth.83.1556236604914; Thu, 25 Apr 2019 16:56:44 -0700 (PDT)
MIME-Version: 1.0
References: <bb7f7606-2adf-e669-8bcd-e41f17800782@gmail.com> <CAJE_bqd9frqX5-yeVPj8MYXpZ4737HqK1gmfD9cQV3A-Ea5HrQ@mail.gmail.com> <6bd5db47-408a-727e-5c13-f34a3465f986@si6networks.com> <CAJE_bqfTLqRbLp4fLu2ASZuZ+4G5c2G+RXkO92kXfLgPTqBnng@mail.gmail.com> <EEF00EA7-2AAF-403F-99AD-1D53ED18E8B3@cisco.com> <47631828-121F-402D-8165-969684C1101B@employees.org> <CAO42Z2wbq=8f6FfR7DoOOFrY7B5puxS26Dk+SsM71Pk7y03ipQ@mail.gmail.com> <afa6e0e2-0a31-53f0-0f41-5e24c81405da@gmail.com> <CAO42Z2zoQtAqzT+v2XYequuWysrLo+WOG8Ou=asRMakQHuS-Pg@mail.gmail.com> <CAJE_bqcJZxWd1ZH8u0rqK5PfwNK9qqmw9O-7=u6Tpu_UTF7-Aw@mail.gmail.com> <CAO42Z2wimfJexfUfs+mfo6Cs8simv9XyTqCaU49VDaSqBG-BxQ@mail.gmail.com> <887AC8E6-2955-4AB0-9F9E-A20BC93E098C@isc.org> <CAO42Z2ywLQawBsW9pT-=SX98QyVWsU3pdCHWzgmWwGVTSwNdcw@mail.gmail.com> <CAJE_bqcczW_eZHp=_c47kh2zfCgoCrj_3bCYpZBaYDtDuDP3jQ@mail.gmail.com>
In-Reply-To: <CAJE_bqcczW_eZHp=_c47kh2zfCgoCrj_3bCYpZBaYDtDuDP3jQ@mail.gmail.com>
From: Mark Smith <markzzzsmith@gmail.com>
Date: Fri, 26 Apr 2019 09:56:17 +1000
Message-ID: <CAO42Z2zn231D--LEnk1=ZOLSs4A1034F3vbKsALAZfdkUcDM2Q@mail.gmail.com>
Subject: Re: Globally Unique Link Local Addresses (Re: about violation of standards)
To: 神明達哉 <jinmei@wide.ad.jp>
Cc: Mark Andrews <marka@isc.org>, Fernando Gont <fgont@si6networks.com>, "Pascal Thubert (pthubert)" <pthubert@cisco.com>, 6man WG <ipv6@ietf.org>, Alexandre Petrescu <alexandre.petrescu@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/0I5N1K-JSoBEM-CTvKSqWLOMgwM>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 25 Apr 2019 23:56:47 -0000

On Thu, 25 Apr 2019 at 06:08, 神明達哉 <jinmei@wide.ad.jp> wrote:
>
> At Wed, 24 Apr 2019 20:29:57 +1000,
> Mark Smith <markzzzsmith@gmail.com> wrote:
>
> > > getaddrinfo() does in most implementations as it returns a pointer to a
> > > struct sockaddr_in6 which have a sin6_scope_id field.  inet_pton() deals
> > > with the part to the left of the % symbol.
> >
> > I was more thinking about scenarios where only an address is expected to be
> > supplied, so there would not be a need for a DNS look up.
> >
> > So it wouldn't and didn't occur to me to use getaddrinfo() just for the
> > purpose of converting an LL address % string into a sockaddr_in6 structure.
>
> Today's applications use getaddrinfo() primarily to be protocol
> independent (and to support both IPv6 and IPv4 as a result), not
> necessarily for scenarios involving name-to-address resolution, let
> alone specifically for converting LL addresses with the % notation:
> apps don't have to use protocol-dependent code logic whether it's
> invoked as "ssh 192.0.2.1" or "ssh 2001:db8::1".  And for this primary
> reason the use of getaddrinfo() is very common.
>
> The better support for scoped addresses is just a bonus effect of it,
> but thanks to the common adoption most modern applications can
> understand the % notation without doing anything special for
> link-local addresses within their application code.
>

So perhaps there could be an update to RFC 3493.

It seems that inet_pton() and inet_ntop() should be now considered
more internal, "under the hood/bonnet" functions, rather than things
you might use to convert user input, and getaddrinfo() is now more
general purpose rather than something you use only when you need name
resolution/DNS lookup to be performed.

Regards,
Mark.

<snip>