Home
last modified time | relevance | path

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

/busybox-1.35.0/networking/
Droute.c168 int skfd, isnet, xflag; in INET_setroute() local
337 skfd = xsocket(AF_INET, SOCK_DGRAM, 0); in INET_setroute()
340 xioctl(skfd, SIOCADDRT, rt); in INET_setroute()
342 xioctl(skfd, SIOCDELRT, rt); in INET_setroute()
344 if (ENABLE_FEATURE_CLEAN_UP) close(skfd); in INET_setroute()
353 int prefix_len, skfd; in INET6_setroute() local
429 skfd = xsocket(AF_INET6, SOCK_DGRAM, 0); in INET6_setroute()
437 xioctl(skfd, SIOCGIFINDEX, &ifr); in INET6_setroute()
443 xioctl(skfd, SIOCADDRT, &rt); in INET6_setroute()
445 xioctl(skfd, SIOCDELRT, &rt); in INET6_setroute()
[all …]
Dinterface.c511 int skfd; in if_readconf() local
517 skfd = xsocket(AF_INET, SOCK_DGRAM, 0); in if_readconf()
523 xioctl(skfd, SIOCGIFCONF, &ifc); in if_readconf()
538 close(skfd); in if_readconf()
589 int skfd; in if_fetch() local
591 skfd = xsocket(AF_INET, SOCK_DGRAM, 0); in if_fetch()
594 if (ioctl(skfd, SIOCGIFFLAGS, &ifr) < 0) { in if_fetch()
595 close(skfd); in if_fetch()
609 if (ioctl(skfd, SIOCGIFHWADDR, &ifr) >= 0) in if_fetch()
616 if (ioctl(skfd, SIOCGIFMETRIC, &ifr) >= 0) in if_fetch()
[all …]
Difenslave.c159 enum { skfd = 3 }; /* AF_INET socket for ioctl() calls. */ enumerator
180 return ioctl(skfd, request, ifr); in ioctl_on_skfd()
517 xmove_fd(xsocket(AF_INET, SOCK_DGRAM, 0), skfd); in ifenslave_main()
619 close(skfd); in ifenslave_main()