1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

tests/lwip_sock_*: adapt for address zoning

This commit is contained in:
Martine Lenders 2018-09-04 15:56:01 +02:00 committed by Martine Lenders
parent 6822f90004
commit 7fd55803ee
2 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,8 @@ void _prepare_send_checks(void)
if (nc->state == ND6_NO_ENTRY) {
nc->state = ND6_REACHABLE;
memcpy(&nc->next_hop_address, remote6, sizeof(ip6_addr_t));
ip6_addr_assign_zone(&nc->next_hop_address,
IP6_UNICAST, &netif);
memcpy(&nc->lladdr, mac, 6);
nc->netif = &netif;
nc->counter.reachable_time = UINT32_MAX;

View File

@ -237,6 +237,8 @@ void _prepare_send_checks(void)
if (nc->state == ND6_NO_ENTRY) {
nc->state = ND6_REACHABLE;
memcpy(&nc->next_hop_address, remote6, sizeof(ip6_addr_t));
ip6_addr_assign_zone(&nc->next_hop_address,
IP6_UNICAST, &netif);
memcpy(&nc->lladdr, mac, 6);
nc->netif = &netif;
nc->counter.reachable_time = UINT32_MAX;