Lines Matching refs:ifaddr
384 struct net_if_addr *ifaddr; in test_address_setup() local
398 ifaddr = net_if_ipv6_addr_add(eth, &my_addr1, NET_ADDR_MANUAL, 0); in test_address_setup()
399 if (!ifaddr) { in test_address_setup()
402 zassert_not_null(ifaddr, "eth addr"); in test_address_setup()
406 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
408 ifaddr = net_if_ipv4_addr_add(eth, &my_addr, NET_ADDR_MANUAL, 0); in test_address_setup()
409 if (!ifaddr) { in test_address_setup()
412 zassert_not_null(ifaddr, "eth addr"); in test_address_setup()
415 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
419 ifaddr = net_if_ipv6_addr_add(eth, &ll_addr, NET_ADDR_MANUAL, 0); in test_address_setup()
420 if (!ifaddr) { in test_address_setup()
423 zassert_not_null(ifaddr, "ll_addr"); in test_address_setup()
426 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
428 ifaddr = net_if_ipv6_addr_add(virt, &my_addr2, NET_ADDR_MANUAL, 0); in test_address_setup()
429 if (!ifaddr) { in test_address_setup()
432 zassert_not_null(ifaddr, "virt addr"); in test_address_setup()
435 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
437 ifaddr = net_if_ipv6_addr_add(dummy1, &my_addr3, NET_ADDR_MANUAL, 0); in test_address_setup()
438 if (!ifaddr) { in test_address_setup()
441 zassert_not_null(ifaddr, "dummy1 addr"); in test_address_setup()
456 ifaddr = net_if_ipv4_addr_add(virt, in test_address_setup()
459 if (!ifaddr) { in test_address_setup()
463 zassert_not_null(ifaddr, "virt addr"); in test_address_setup()
473 ifaddr = net_if_ipv6_addr_add(virt, in test_address_setup()
476 if (!ifaddr) { in test_address_setup()
480 zassert_not_null(ifaddr, "virt addr"); in test_address_setup()
489 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()