Lines Matching refs:ifname
55 * @param ifname shall point to a buffer of at least {IF_NAMESIZE} bytes
57 * value supplied in ifname, which points to a buffer now containing the interface name.
61 lwip_if_indextoname(unsigned int ifindex, char *ifname)
65 err_t err = netifapi_netif_index_to_name((u8_t)ifindex, ifname);
66 if (!err && ifname[0] != '\0') {
67 return ifname;
72 LWIP_UNUSED_ARG(ifname);
80 * Returs the interface index corresponding to name ifname.
81 * @param ifname Interface name
82 * @return The corresponding index if ifname is the name of an interface;
86 lwip_if_nametoindex(const char *ifname)
92 err = netifapi_netif_name_to_index(ifname, &idx);
97 LWIP_UNUSED_ARG(ifname);