Hi, On 11/22/2016 01:26 PM, Luiz Augusto von Dentz wrote: > Hi, > > On Mon, Jun 20, 2016 at 10:49 AM, Patrik Flykt > <patrik.flykt@xxxxxxxxxxxxxxx> wrote: >> Create EUI48 IPv6 addresses for 6LoWPAN over Bluetooth Low Energy. >> Both IEEE802.15.4 and Bluetooth Low Energy use a netdevice type of >> ARPHRD_6LOWPAN, therefore generate the IPv6 address based on the >> MAC address length. >> >> Signed-off-by: Patrik Flykt <patrik.flykt@xxxxxxxxxxxxxxx> >> --- >> net/ipv6/addrconf.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c >> index 6c8fc3f..6697fe6 100644 >> --- a/net/ipv6/addrconf.c >> +++ b/net/ipv6/addrconf.c >> @@ -2055,6 +2055,10 @@ static int ipv6_generate_eui64(u8 *eui, struct net_device *dev) >> case ARPHRD_IPGRE: >> return addrconf_ifid_gre(eui, dev); >> case ARPHRD_6LOWPAN: >> + /* 6LoWPAN over BTLE */ >> + if (dev->addr_len == ETH_ALEN) >> + return addrconf_ifid_eui48(eui, dev); >> + >> return addrconf_ifid_eui64(eui, dev); >> case ARPHRD_IEEE1394: >> return addrconf_ifid_ieee1394(eui, dev); >> -- >> 2.8.1 > > This still seems to be broken. > I know. RFC-Series [0] fix that and more... I think I need to rework the patch series but I think I didn't get much review from bluetooth side yet. E.g. what address type to use, etc. I currently write my thesis so I have time for that maybe beginning of april. Sorry, but Jukka can take the patches and send them I can review/test it. So far I know Jukka is very busy with zephyr... so it will be broken until april. Or will somebody else catch the patches? - Alex [0] http://www.spinics.net/lists/linux-wpan/msg04124.html -- 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