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

Alexandre Petrescu <alexandre.petrescu@gmail.com> Thu, 06 June 2019 17:18 UTC

Return-Path: <alexandre.petrescu@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 6F32212012B for <ipv6@ietfa.amsl.com>; Thu, 6 Jun 2019 10:18:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.631
X-Spam-Level:
X-Spam-Status: No, score=-2.631 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665] autolearn=ham autolearn_force=no
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 t38TYUNlq28J for <ipv6@ietfa.amsl.com>; Thu, 6 Jun 2019 10:18:04 -0700 (PDT)
Received: from oxalide-smtp-out.extra.cea.fr (oxalide-smtp-out.extra.cea.fr [132.168.224.13]) (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 6B18C120128 for <ipv6@ietf.org>; Thu, 6 Jun 2019 10:18:03 -0700 (PDT)
Received: from pisaure.intra.cea.fr (pisaure.intra.cea.fr [132.166.88.21]) by oxalide-sys.extra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id x56HI1XE063345 for <ipv6@ietf.org>; Thu, 6 Jun 2019 19:18:01 +0200
Received: from pisaure.intra.cea.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 93CAD2063FE for <ipv6@ietf.org>; Thu, 6 Jun 2019 19:18:01 +0200 (CEST)
Received: from muguet1-smtp-out.intra.cea.fr (muguet1-smtp-out.intra.cea.fr [132.166.192.12]) by pisaure.intra.cea.fr (Postfix) with ESMTP id 88D0C20604E for <ipv6@ietf.org>; Thu, 6 Jun 2019 19:18:01 +0200 (CEST)
Received: from [10.8.68.52] ([10.8.68.52]) by muguet1-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id x56HI0uI012443 for <ipv6@ietf.org>; Thu, 6 Jun 2019 19:18:01 +0200
To: IPv6 <ipv6@ietf.org>
From: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Subject: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?
Message-ID: <a71b00b7-0e0c-242a-b3f7-147f4c6b2eb0@gmail.com>
Date: Thu, 06 Jun 2019 19:18:00 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------E52930E85DA62256FD5BFD4E"
Content-Language: fr
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/S6lCjBTuct1l3fiBUa1-mkYUfUQ>
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:18:06 -0000

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.

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