Searched refs:sock6_fd (Results 1 – 1 of 1) sorted by relevance
183 static int sock6_fd = -1; variable322 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()[all …]