• 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()
1517 if (ioctl(ipfd, SIOCSIFMTU, &ifr) < 0) {
1772 if (ioctl(ipfd, SIOCGIFFLAGS, &ifr) < 0) {
1777 if (ioctl(ipfd, SIOCSIFFLAGS, &ifr) < 0) {
1797 if (ioctl(ipfd, SIOCGIFFLAGS, &ifr) < 0) {
1802 if (ioctl(ipfd, SIOCSIFFLAGS, &ifr) < 0) {
1980 if (ioctl(ipfd, SIOCSIFNETMASK, &ifr) < 0) {
1986 if (ioctl(ipfd, SIOCSIFADDR, &ifr) < 0) {
1995 if (ioctl(ipfd, SIOCGIFFLAGS, &ifr) >= 0
1998 if (ioctl(ipfd, SIOCSIFFLAGS, &ifr) < 0) {
2005 if (ioctl(ipfd, SIOCSIFDSTADDR, &ifr) < 0) {
2027 if (ioctl(ipfd, I_UNLINK, ipmuxid) < 0) {
2058 if (ioctl(ipfd, SIOCADDRT, &rt) < 0) {
2087 if (ioctl(ipfd, SIOCDELRT, &rt) < 0) {
2113 if (ioctl(ipfd, SIOCSARP, (caddr_t) &arpreq) < 0) {
2135 if (ioctl(ipfd, SIOCDARP, (caddr_t)&arpreq) < 0) {
2164 if (ioctl(ipfd, SIOCGIFNUM, &nif) < 0)
2171 if (ioctl(ipfd, SIOCGIFCONF, &ifc) < 0) {
2184 if (ioctl(ipfd, SIOCGIFFLAGS, &ifreq) < 0)
2193 if (ioctl(ipfd, SIOCGIFNETMASK, &ifreq) < 0)
2416 if (ioctl(ipfd, SIOCGIFNUM, &nif) < 0)
2423 if (ioctl(ipfd, SIOCGIFCONF, &ifc) < 0) {
2442 if (ioctl(ipfd, SIOCGIFFLAGS, &ifreq) < 0)
2450 if (ioctl(ipfd, SIOCGIFNETMASK, &ifreq) < 0)
2618 if (ioctl(ipfd, SIOCDELRT, &rt) < 0) {