Lines Matching refs:netif
46 err_t dhcp_is_bound(struct netif *netif) in dhcp_is_bound() argument
50 LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG); in dhcp_is_bound()
52 dhcp = netif_dhcp_data(netif); in dhcp_is_bound()
63 static struct netif *netif_find_by_name(const char *name) in netif_find_by_name()
65 struct netif *netif = NULL; in netif_find_by_name() local
70 NETIF_FOREACH(netif) { in netif_find_by_name()
71 if (strcmp("lo", name) == 0 && (netif->name[0] == 'l' && netif->name[1] == 'o')) { in netif_find_by_name()
73 return netif; in netif_find_by_name()
76 if (strcmp(netif->full_name, name) == 0) { in netif_find_by_name()
78 return netif; in netif_find_by_name()
91 msg->netif = netif_find_by_name(msg->msg.ifs.name); in netifapi_do_find_by_name()
95 struct netif *netifapi_netif_find_by_name(const char *name) in netifapi_netif_find_by_name()
97 struct netif *netif = NULL; in netifapi_netif_find_by_name() local
100 NETIFAPI_VAR_REF(msg).netif = NULL; in netifapi_netif_find_by_name()
104 return netif; in netifapi_netif_find_by_name()
112 netif = msg.netif; in netifapi_netif_find_by_name()
114 return netif; in netifapi_netif_find_by_name()