Re: [PATCH v2 6/8] Bluetooth: 6lowpan: Fix MAC address universal/local bit handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jukka,

> The universal/local bit handling was incorrectly done in the code.
> 
> So when setting EUI address from BD address we do this:
> - If BD address type is PUBLIC, then we clear the universal bit
>  in EUI address. If the address type is RANDOM, then the universal
>  bit is set (BT 6lowpan draft chapter 3.2.2)
> - After this we invert the universal/local bit according to RFC 2464
> 
> When figuring out BD address we do the reverse:
> - Take EUI address from stateless IPv6 address, invert the
>  universal/local bit according to RFC 2464
> - If universal bit is 1 in this modified EUI address, then address
>  type is set to RANDOM, otherwise it is PUBLIC
> 
> Note that 6lowpan_iphc.[ch] does the final toggling of U/L bit
> before sending or receiving the network packet.

is this broken in the current code as well? We might want to fix it there first.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux