• Home
  • Raw
  • Download

Lines Matching refs:ipfd

184 static int	ipfd;  variable
588 ipfd = open(mux_dev_name, O_RDWR, 0); in sys_init()
589 if (ipfd < 0) in sys_init()
692 ipmuxid = ioctl(ipfd, I_PLINK, ifd); in sys_init()
712 if (ioctl(ipfd, SIOCSIFMUXID, &ifr) < 0) { in sys_init()
713 ioctl(ipfd, I_PUNLINK, ipmuxid); in sys_init()
728 ipmuxid = ioctl(ipfd, I_LINK, ifd); in sys_init()
738 ioctl(ipfd, I_PUNLINK, ipmuxid); in sys_init()
750 ioctl(ipfd, I_PUNLINK, ipmuxid); in sys_init()
760 if (strioctl(ipfd, SIOCSIFNAME, (char *)&ifr, sizeof ifr, 0) < 0) in sys_init()
799 if (ioctl(ipfd, SIOCGIFFLAGS, &ifr) < 0) { in sys_cleanup()
804 if (ioctl(ipfd, SIOCGIFMUXID, &ifr) < 0) { in sys_cleanup()
811 if (ioctl(ipfd, I_PUNLINK, ipmuxid) < 0) { in sys_cleanup()
847 close(ipfd); in sys_close()
1514 if (ioctl(ipfd, SIOCSIFMTU, &ifr) < 0) {
1769 if (ioctl(ipfd, SIOCGIFFLAGS, &ifr) < 0) {
1774 if (ioctl(ipfd, SIOCSIFFLAGS, &ifr) < 0) {
1794 if (ioctl(ipfd, SIOCGIFFLAGS, &ifr) < 0) {
1799 if (ioctl(ipfd, SIOCSIFFLAGS, &ifr) < 0) {
1977 if (ioctl(ipfd, SIOCSIFNETMASK, &ifr) < 0) {
1983 if (ioctl(ipfd, SIOCSIFADDR, &ifr) < 0) {
1992 if (ioctl(ipfd, SIOCGIFFLAGS, &ifr) >= 0
1995 if (ioctl(ipfd, SIOCSIFFLAGS, &ifr) < 0) {
2002 if (ioctl(ipfd, SIOCSIFDSTADDR, &ifr) < 0) {
2024 if (ioctl(ipfd, I_UNLINK, ipmuxid) < 0) {
2055 if (ioctl(ipfd, SIOCADDRT, &rt) < 0) {
2084 if (ioctl(ipfd, SIOCDELRT, &rt) < 0) {
2110 if (ioctl(ipfd, SIOCSARP, (caddr_t) &arpreq) < 0) {
2132 if (ioctl(ipfd, SIOCDARP, (caddr_t)&arpreq) < 0) {
2161 if (ioctl(ipfd, SIOCGIFNUM, &nif) < 0)
2168 if (ioctl(ipfd, SIOCGIFCONF, &ifc) < 0) {
2181 if (ioctl(ipfd, SIOCGIFFLAGS, &ifreq) < 0)
2190 if (ioctl(ipfd, SIOCGIFNETMASK, &ifreq) < 0)
2413 if (ioctl(ipfd, SIOCGIFNUM, &nif) < 0)
2420 if (ioctl(ipfd, SIOCGIFCONF, &ifc) < 0) {
2439 if (ioctl(ipfd, SIOCGIFFLAGS, &ifreq) < 0)
2447 if (ioctl(ipfd, SIOCGIFNETMASK, &ifreq) < 0)
2610 if (ioctl(ipfd, SIOCDELRT, &rt) < 0) {