net: bt: Fix not setting lladdr type

When adding link-local address to the cache the type needs to be
properly set as net_ipv6_addr_create_iid will attempt to use it
when generating the IPv6 address.

Jira: ZEP-2077
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2017-05-02 10:01:47 +03:00 committed by Anas Nashif
commit 08eb5fc428

View file

@ -138,6 +138,7 @@ static void ipsp_connected(struct bt_l2cap_chan *chan)
ll.addr = ctxt->dst.val;
ll.len = sizeof(ctxt->dst.val);
ll.type = NET_LINK_BLUETOOTH;
/* Add remote link-local address to the nbr cache to avoid sending ns:
* https://tools.ietf.org/html/rfc7668#section-3.2.3