Searched refs:ifname (Results 1 – 2 of 2) sorted by relevance
50 char ifname[IFNAMSIZ]; member61 char ifname[IFNAMSIZ]; member
47 char* if_indextoname(unsigned ifindex, char* ifname) { in if_indextoname() argument58 return (rc == -1) ? nullptr : strncpy(ifname, ifr.ifr_name, IFNAMSIZ); in if_indextoname()61 unsigned if_nametoindex(const char* ifname) { in if_nametoindex() argument67 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in if_nametoindex()