Home
last modified time | relevance | path

Searched refs:tap_ifr (Results 1 – 1 of 1) sorted by relevance

/system/netd/tests/
Dnetd_test.cpp139 struct ifreq tap_ifr = { in TEST() local
148 rv = ioctl(tap, TUNSETIFF, &tap_ifr); in TEST()
169 int tapif = if_nametoindex(tap_ifr.ifr_name); in TEST()
177 tap_ifr.ifr_mtu = mtu; in TEST()
178 rv = ioctl(unixfd, SIOCSIFMTU, &tap_ifr); in TEST()
186 rv = ioctl(unixfd, SIOCGIFFLAGS, &tap_ifr); in TEST()
192 tap_ifr.ifr_flags |= IFF_UP | IFF_RUNNING; in TEST()
198 rv = ioctl(unixfd, SIOCSIFFLAGS, &tap_ifr); in TEST()