Lines Matching refs:sock6_fd
183 static int sock6_fd = -1; variable
322 sock6_fd = socket(AF_INET6, SOCK_DGRAM, 0); in sys_init()
323 if (sock6_fd < 0) in sys_init()
324 sock6_fd = -errno; /* save errno for later */ in sys_init()
372 if (sock6_fd >= 0) in sys_close()
373 close(sock6_fd); in sys_close()
2527 if (sock6_fd < 0) { in sif6addr()
2528 errno = -sock6_fd; in sif6addr()
2534 if (ioctl(sock6_fd, SIOCGIFINDEX, (caddr_t) &ifr) < 0) { in sif6addr()
2545 if (ioctl(sock6_fd, SIOCSIFADDR, &ifr6) < 0) { in sif6addr()
2558 if (ioctl(sock6_fd, SIOCADDRT, &rt6) < 0) { in sif6addr()
2576 if (sock6_fd < 0) { in cif6addr()
2577 errno = -sock6_fd; in cif6addr()
2583 if (ioctl(sock6_fd, SIOCGIFINDEX, (caddr_t) &ifr) < 0) { in cif6addr()
2593 if (ioctl(sock6_fd, SIOCDIFADDR, &ifr6) < 0) { in cif6addr()