mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
lwip: use l2util_ipv6_iid_from_addr() instead of NETOPT_IPV6_IID
This commit is contained in:
parent
61d7b205b8
commit
301b6555aa
@ -434,6 +434,7 @@ endif
|
||||
|
||||
ifneq (,$(filter lwip_sixlowpan,$(USEMODULE)))
|
||||
USEMODULE += lwip_ipv6_autoconfig
|
||||
USEMODULE += l2util
|
||||
endif
|
||||
|
||||
ifneq (,$(filter lwip_ipv6_autoconfig lwip_ipv6_mld,$(USEMODULE)))
|
||||
|
@ -156,7 +156,9 @@ err_t lwip_netdev_init(struct netif *netif)
|
||||
* with full IIDs, so let's do it ourselves */
|
||||
addr = &(netif->ip6_addr[0]);
|
||||
/* addr->addr is a uint32_t array */
|
||||
if (netdev->driver->get(netdev, NETOPT_IPV6_IID, &addr->addr[2], sizeof(eui64_t)) < 0) {
|
||||
if (l2util_ipv6_iid_from_addr(dev_type,
|
||||
netif->hwaddr, netif->hwaddr_len,
|
||||
(eui64_t *)&addr->addr[2]) < 0) {
|
||||
return ERR_IF;
|
||||
}
|
||||
ipv6_addr_set_link_local_prefix((ipv6_addr_t *)&addr->addr[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user