Lines Matching refs:InterfaceFD
627 int InterfaceFD = open("/dev/tap", O_RDWR, 0);
628 if (!InterfaceFD)
632 if (ioctl(InterfaceFD, I_PUSH, "ip") == -1)
634 close(InterfaceFD);
641 if (ioctl(InterfaceFD, SIOCGLIFFLAGS, &ifReq) == -1)
647 if (ioctl(InterfaceFD, SIOCSLIFNAME, &ifReq) == -1)
650 if (ioctl(InterfaceFD, SIOCGLIFFLAGS, &ifReq) == -1)
655 if (ioctl(InterfaceFD, I_PUSH, "arp") == -1)
685 int IPMuxID = ioctl(IPFileDes, I_LINK, InterfaceFD);
688 close(InterfaceFD);
704 close(InterfaceFD);