Searched refs:netfd (Results 1 – 1 of 1) sorted by relevance
2789 int netfd; in get_tun_device() local2800 netfd = open_or_die("/dev/net/tun", O_RDWR); in get_tun_device()2803 if (ioctl(netfd, TUNSETIFF, &ifr) != 0) in get_tun_device()2806 if (ioctl(netfd, TUNSETOFFLOAD, in get_tun_device()2814 ioctl(netfd, TUNSETNOCSUM, 1); in get_tun_device()2825 if (ioctl(netfd, TUNSETVNETHDRSZ, &vnet_hdr_sz) != 0) in get_tun_device()2829 return netfd; in get_tun_device()