Lines Matching full:iface
20 static int setup_iface(struct net_if *iface, const char *ipv6_addr, in setup_iface() argument
27 LOG_INF("Configuring iface %d (%p)", net_if_get_by_iface(iface), iface); in setup_iface()
29 if (IS_ENABLED(CONFIG_NET_IPV6) && net_if_flag_is_set(iface, NET_IF_IPV6)) { in setup_iface()
35 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface()
37 LOG_ERR("Cannot add %s to interface %p", ipv6_addr, iface); in setup_iface()
43 if (IS_ENABLED(CONFIG_NET_IPV4) && net_if_flag_is_set(iface, NET_IF_IPV4)) { in setup_iface()
49 ifaddr = net_if_ipv4_addr_add(iface, &addr4, NET_ADDR_MANUAL, 0); in setup_iface()
51 LOG_ERR("Cannot add %s to interface %p", ipv4_addr, iface); in setup_iface()
64 net_if_ipv4_set_netmask_by_addr(iface, &addr4, &nm); in setup_iface()
72 uint32_t mgmt_event, struct net_if *iface) in iface_up_handler() argument
79 static void wait_for_iface(struct net_if *iface) in wait_for_iface() argument
83 if (net_if_is_up(iface)) { in wait_for_iface()
90 LOG_INF("Waiting for iface %d to come up", net_if_get_by_iface(iface)); in wait_for_iface()
98 struct net_if *iface; in main() local
102 iface = net_if_lookup_by_dev(DEVICE_DT_GET(PSI_NODE)); in main()
103 if (iface) { in main()
104 /* Wait for PSI iface to come up before attempting configuration */ in main()
105 wait_for_iface(iface); in main()
106 setup_iface(iface, in main()
113 iface = net_if_lookup_by_dev(DEVICE_DT_GET(VSI_NODE)); in main()
114 if (iface) { in main()
115 setup_iface(iface, in main()