Home
last modified time | relevance | path

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

/openbmc/qemu/net/
H A Dtap-solaris.c64 int tap_fd, if_fd, ppa = -1; in tap_alloc() local
107 if_fd = RETRY_ON_EINTR(open("/dev/tap", O_RDWR, 0)); in tap_alloc()
108 if (if_fd < 0) { in tap_alloc()
112 if(ioctl(if_fd, I_PUSH, "ip") < 0){ in tap_alloc()
117 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0) in tap_alloc()
126 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0) in tap_alloc()
128 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0) in tap_alloc()
131 if (ioctl (if_fd, I_PUSH, "arp") < 0) in tap_alloc()
153 if((ip_muxid = ioctl(ip_fd, I_LINK, if_fd)) < 0){ in tap_alloc()
161 close (if_fd); in tap_alloc()