Searched refs:ifr (Results 1 – 1 of 1) sorted by relevance
65 ifreq ifr; in get_interface() local66 memset(&ifr, 0, sizeof(ifr)); in get_interface()67 ifr.ifr_flags = IFF_TUN | IFF_NO_PI; in get_interface()68 strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); in get_interface()70 if (ioctl(interface, TUNSETIFF, &ifr)) { in get_interface()