Home | History | Annotate | Download | only in pppd

Lines Matching defs:sock_fd

179 static int sock_fd = -1;	/* socket for doing interface ioctls */
317 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
318 if (sock_fd < 0)
369 if (sock_fd >= 0)
370 close(sock_fd);
1200 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1215 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) {
1383 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1649 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
1682 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) {
1720 if (ioctl(sock_fd, SIOCSARP, (caddr_t)&arpreq) < 0) {
1761 if (ioctl(sock_fd, SIOCDARP, (caddr_t)&arpreq) < 0) {
1792 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
1811 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
1819 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0)
1851 if (ioctl (sock_fd, SIOCGIFHWADDR, &bestifreq) < 0) {
1871 int ret, sock_fd;
1873 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
1874 if (sock_fd < 0)
1878 ret = ioctl(sock_fd, SIOCGIFHWADDR, &ifreq);
1879 close(sock_fd);
1928 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
1948 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
1956 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0)
2341 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
2352 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {
2383 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) {
2398 if (ioctl(sock_fd, SIOCSIFDSTADDR, (caddr_t) &ifr) < 0) {
2412 if (ioctl(sock_fd, SIOCSIFNETMASK, (caddr_t) &ifr) < 0) {
2435 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
2492 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) {
2504 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) {