Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?

Bob Hinden <bob.hinden@gmail.com> Thu, 06 June 2019 17:45 UTC

Return-Path: <bob.hinden@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 D8E1A1200B2 for <ipv6@ietfa.amsl.com>; Thu, 6 Jun 2019 10:45:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 m6BWHsVBbEOl for <ipv6@ietfa.amsl.com>; Thu, 6 Jun 2019 10:45:05 -0700 (PDT)
Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 F1925120099 for <ipv6@ietf.org>; Thu, 6 Jun 2019 10:45:04 -0700 (PDT)
Received: by mail-wr1-x432.google.com with SMTP id b17so2232212wrq.11 for <ipv6@ietf.org>; Thu, 06 Jun 2019 10:45:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=iy1P7Wh8TOKRaXyaLrKFzMim86GMWbBPhQQkld3COMY=; b=tsZbsJY5agJvgSZO1hwnud+OwKrM/XlrmFdtO+5pGXIGGYaIDYsxcHlJnyolfW0zdv xqmc2eBUUDgG3CCzU2k06KryJqzktqgVAN8zyMraDlG4Vq3gb71L8w+v3skw9JMEJkrF gpNcLMyF/veIKtBBw3FBHnL1jS91CFv2wUTsqtqZLXWlsup1MeWgdj2OWII2r9T7eDOZ pI++Vyq9tS9uuI1BNWN2O/Nuy1lXzXXeLP6k2ykpiWAoItC95Bwf1j8jPwv338PalA3g q7ZlTcByfD8a/3nmv/BqYs8BeKNa42Dhzpa//CYvnc2pPgs0pTx+nV9ejbiRaVnBE4ad N+Tw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=iy1P7Wh8TOKRaXyaLrKFzMim86GMWbBPhQQkld3COMY=; b=QWsI9hjjVAbV1y4jTUJ4VAmOIfKLdaxWc5Zip40kSIE2O6Y0bxuW6+N31ihTB01CVo ViFuAJDqJkuBRtjAkwX4gmDxtP5py5sTAOrpuInPFhO6dm0GHD64lG4/uK91BHPmbg0Q 67cyrQNZrzInefZfOemXd9YUsLpMxH9+d/nURpIstHaQY1mphQ+83uxS4xrq9bu2XEYe gUtsYrnL5xC5KqJ/q34/3qCpkm7hsfDuYbVz/vUC78RvLPPkBfFKSC+ygBnRVN5aTCqw M9T/+xU+ePbgTCe8wSAEUUB1EG/c1XDZUylY/AlR00lXNGdVEaKO4UVdALSNFy40EK9q JlUw==
X-Gm-Message-State: APjAAAU3AdVC9p8qWfKtgafWXHdTnfaMXyr8I16phSGDWDWOnHxYeS0l 6taIENGMgoXhLQO4Jsu5otU=
X-Google-Smtp-Source: APXvYqy6V6BHP0Q9nopNHZ97bexjT273TpHISk7GIQPhyJ1Er18gqyWJtohaFFxew9eC56Gi0kgTsA==
X-Received: by 2002:a5d:4a82:: with SMTP id o2mr13973867wrq.154.1559843103555; Thu, 06 Jun 2019 10:45:03 -0700 (PDT)
Received: from [10.0.0.199] (c-24-5-53-184.hsd1.ca.comcast.net. [24.5.53.184]) by smtp.gmail.com with ESMTPSA id o1sm2954022wre.76.2019.06.06.10.45.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 10:45:02 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?
From: Bob Hinden <bob.hinden@gmail.com>
In-Reply-To: <a71b00b7-0e0c-242a-b3f7-147f4c6b2eb0@gmail.com>
Date: Thu, 06 Jun 2019 10:44:58 -0700
Cc: Bob Hinden <bob.hinden@gmail.com>, IPv6 List <ipv6@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <70AD0976-9D7F-4242-84B0-0F01799216B1@gmail.com>
References: <a71b00b7-0e0c-242a-b3f7-147f4c6b2eb0@gmail.com>
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/lXCg-VM8bulnXC3qQ4XFINErjjc>
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, 06 Jun 2019 17:45:08 -0000


> On Jun 6, 2019, at 10:18 AM, Alexandre Petrescu <alexandre.petrescu@gmail.com> wrote:
> 
> Hi 6MANners,
> 
> In private discussion we disagree about this point:
> 
> I maintain that 1111 1110 10 equals 0x3fa, because that's what my Windows Calculator says: I type 1111 1110 10 and it converts to 0x3fa.

The binary string 1111111010 is indeed 0x3FA.  A binary to hex calculator right justifies it, so it is converting 001111111010.

When used as a prefix it is 0xFE8.  In that case it is left justified.

Bob


> 
> On another hand, I am rhetorically asked how can 1111 1110 10 be 0x3fa?
> 
> (the 1111 1110 10 are the 10 leading bits of the IPv6 link local addresses, which is familiarly known to start with an fe80).
> 
> On my side, this is a difficulty to understand this 0xfe80, especially since 1111 1110 10 is so printed in Figure in RFC4291.
> 
> Alex
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------