Skip to content

Commit

Permalink
net: bt: Fix not setting lladdr type
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Vudentz authored and Anas Nashif committed May 3, 2017
1 parent 6a52a30 commit 08eb5fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/net/ip/l2/bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08eb5fc

Please sign in to comment.