[PATCH v5 6/6] 6lowpan: Fix IID format for Bluetooth

Hi,

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Accourding to RFC 7668 U/L bit shall not be used:

Home | Internet-Draft Author Resources [Page 10]:

   In the figure, letter 'b' represents a bit from the    Bluetooth device address, copied as is without any changes on any    bit. This means that no bit in the IID indicates whether the    underlying Bluetooth device address is public or random.

   >0 1|1 3|3 4|4 6|    >0 5|6 1|2 7|8 3|    +----------------+----------------+----------------+----------------+    >bbbbbbbbbbbbbbbb>bbbbbbbb11111111|11111110bbbbbbbb|bbbbbbbbbbbbbbbb|    +----------------+----------------+----------------+----------------+

Because of this the code cannot figure out the address type from the IP address anymore thus it makes no sense to use peer_lookup_ba as it needs the peer address type.

I am still not quite 100% of this and want to leave my opinion about this handling which can be interpreted in a different way.

The RFC says here:

Following the guidance of [RFC7136], a 64-bit Interface Identifier (IID) is formed from the 48-bit Bluetooth device address by inserting two octets, with hexadecimal values of 0xFF and 0xFE in the middle of the 48-bit Bluetooth device address as shown in Figure 6. In the figure, letter 'b' represents a bit from the Bluetooth device address, copied as is without any changes on any bit.

You cut the important part "Following the guidance of [RFC7136]".

Hi,