Searched refs:tun_ifr (Results 1 – 1 of 1) sorted by relevance
134 struct ifreq tun_ifr = { in TEST() local144 rv = ioctl(tun, TUNSETIFF, &tun_ifr); in TEST()166 int tunif = if_nametoindex(tun_ifr.ifr_name); in TEST()172 tun_ifr.ifr_mtu = mtu; in TEST()173 rv = ioctl(unixfd, SIOCSIFMTU, &tun_ifr); in TEST()182 rv = ioctl(unixfd, SIOCGIFFLAGS, &tun_ifr); in TEST()190 tun_ifr.ifr_flags |= IFF_UP | IFF_RUNNING; in TEST()194 rv = ioctl(unixfd, SIOCSIFFLAGS, &tun_ifr); in TEST()