Hi Johan, >> mhhh, I am not a bluetooth expert. What really means "periodically >> change is RPA" and how is this done in the Linux bluetooth? >> >> When "changing the RPA" happens, does that mean the all connections will >> be lost (unregister interface). Then the previous connections will be >> recreated (register interface) with a complete different MAC address? > > Connections aren't lost when the random address is changed. That's why > we track the hci_conn->init_addr and hci_conn->resp_addr. The way this > is dealt with e.g. the Security Manager protocol is that the connection > creation address *is* the address for the remote device throughout the > entire connection, no matter what happens to the local and remote random > address during the connection. I would expect 6LoWPAN do do something > similar. > > What was still unclear to me (maybe I missed it in the thread): does the > 6LoWPAN for LE spec require using the connection creation address or the > identity address? If it would be the latter then that's something that > will never change and the whole interface recreation issue goes away. of course we do not want to leak the identity address if we don't have to. That is why I am thinking that the IPv6 link should always use something close to the link layer address. The basic assumption should be that when hci0 is powered on, then you get a 6lo network interface. If you power the controller down, then the 6lo interface gets removed. By default, the 6lo interface should not have a single address assigned to it if there are no connections. When a connection is created, then a new address should be assigned to it. If the connection drops, then it should be removed. And of course there needs to be usage counter attached to each address. If two connections use the same address, then it only gets removed once there is no connection with that source address active anymore (meaning it needs some sort of reference counting). With usage of public address or static random address, then most likely only one address on 6lo interface is used. This is not strictly mandated by the spec since you can in theory have one connection with a public address and the other with the static random address. However ignore that fact for a bit since it will just work out when dealing with RPAs anyway. The importance is the link layer address that is used when establishing the connection. In case you use RPAs, then every connection will have a new link layer address (we rotate the RPA when disabling advertising). As long as the connection is active, that source address should be represented on 6lo interface. However this is no difference either since per spec each new connection can have a different address from all the existing connections. That is always valid with the link layer. 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