Lines Matching refs:ifaddr
416 struct net_if_addr *ifaddr; in test_address_setup() local
427 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in test_address_setup()
429 if (!ifaddr) { in test_address_setup()
432 zassert_not_null(ifaddr, "addr1"); in test_address_setup()
436 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
438 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in test_address_setup()
440 if (!ifaddr) { in test_address_setup()
443 zassert_not_null(ifaddr, "ll_addr"); in test_address_setup()
446 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
448 ifaddr = net_if_ipv6_addr_add(iface2, &my_addr2, in test_address_setup()
450 if (!ifaddr) { in test_address_setup()
453 zassert_not_null(ifaddr, "addr2"); in test_address_setup()
456 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
458 ifaddr = net_if_ipv6_addr_add(iface3, &my_addr3, in test_address_setup()
460 if (!ifaddr) { in test_address_setup()
463 zassert_not_null(ifaddr, "addr3"); in test_address_setup()
466 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup()
897 struct net_if_addr *ifaddr; in ZTEST() local
916 ifaddr = net_if_ipv6_addr_add(iface, in ZTEST()
919 if (!ifaddr) { in ZTEST()
922 zassert_not_null(ifaddr, "vlan addr"); in ZTEST()