Home
last modified time | relevance | path

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

/external/syzkaller/executor/
Dcommon_linux.h129 static int tunfd = -1; variable
160 tunfd = open("/dev/net/tun", O_RDWR | O_NONBLOCK); in initialize_tun()
161 if (tunfd == -1) { in initialize_tun()
173 if (dup2(tunfd, kTunFd) < 0) in initialize_tun()
175 close(tunfd); in initialize_tun()
176 tunfd = kTunFd; in initialize_tun()
182 if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) { in initialize_tun()
185 if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) in initialize_tun()
190 if (ioctl(tunfd, TUNGETIFF, (void*)&ifr) < 0) in initialize_tun()
309 if (tunfd < 0) in read_tun()
[all …]
/external/syzkaller/pkg/csource/
Dgenerated.go770 static int tunfd = -1;
798 tunfd = open("/dev/net/tun", O_RDWR | O_NONBLOCK);
799 if (tunfd == -1) {
809 if (dup2(tunfd, kTunFd) < 0)
811 close(tunfd);
812 tunfd = kTunFd;
818 if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) {
820 if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0)
823 if (ioctl(tunfd, TUNGETIFF, (void*)&ifr) < 0)
917 if (tunfd < 0)
[all …]