Lines Matching defs:sock
117 int sock;
123 if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
131 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) {
143 (void) close(sock);
150 (void) close(sock);
160 if (ioctl(sock, SIOCGLIFCONF, (char *)lifc) < 0) {
162 (void) close(sock);
168 (void) close(sock);
176 int sock;
179 sock = socket(AF_INET6, SOCK_DGRAM, 0);
180 if (sock < 0)
185 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) {
186 close(sock);
189 close(sock);