Lines Matching refs:ifaddr
329 struct net_if_addr *ifaddr; in iface_setup() local
396 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in iface_setup()
398 if (!ifaddr) { in iface_setup()
401 zassert_not_null(ifaddr, "addr1"); in iface_setup()
404 ifaddr = net_if_ipv4_addr_add(iface1, &my_ipv4_addr1, in iface_setup()
406 if (!ifaddr) { in iface_setup()
409 zassert_not_null(ifaddr, "ipv4 addr1"); in iface_setup()
413 ifaddr->addr_state = NET_ADDR_PREFERRED; in iface_setup()
415 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in iface_setup()
417 if (!ifaddr) { in iface_setup()
420 zassert_not_null(ifaddr, "ll_addr"); in iface_setup()
423 ifaddr->addr_state = NET_ADDR_PREFERRED; in iface_setup()
425 ifaddr = net_if_ipv6_addr_add(iface2, &my_addr2, in iface_setup()
427 if (!ifaddr) { in iface_setup()
430 zassert_not_null(ifaddr, "addr2"); in iface_setup()
433 ifaddr->addr_state = NET_ADDR_PREFERRED; in iface_setup()
435 ifaddr = net_if_ipv6_addr_add(iface2, &my_addr3, in iface_setup()
437 if (!ifaddr) { in iface_setup()
440 zassert_not_null(ifaddr, "addr3"); in iface_setup()
443 ifaddr->addr_state = NET_ADDR_PREFERRED; in iface_setup()
684 struct net_if_addr *ifaddr; in ZTEST() local
707 ifaddr = net_if_ipv6_addr_lookup(&ll_addr, NULL); in ZTEST()
708 zassert_not_null(ifaddr, "No such ll_addr found"); in ZTEST()
710 ifaddr->addr_state = NET_ADDR_TENTATIVE; in ZTEST()
957 struct net_if_addr *ifaddr; in ZTEST() local
963 ifaddr = net_if_ipv6_addr_add(iface4, &iid_addr, in ZTEST()
965 zassert_not_null(ifaddr, "Cannot add IPv6 link-local address"); in ZTEST()
975 ifaddr = net_if_ipv6_addr_add(iface4, &unicast_addr, in ZTEST()
977 zassert_not_null(ifaddr, "Cannot add IPv6 global unicast address"); in ZTEST()