Lines Matching defs:socket
57 int socket;
89 #include <sys/socket.h>
129 if (ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc)
323 * Create an unbound datagram socket to do the SIOCGLIFCONF
324 * ioctl on. HP/UX requires an AF_INET6 socket for
327 if ((iter->socket6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
334 "scan socket: %s"),
344 if ((iter->socket = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
351 "scan socket: %s"),
381 (void) close(iter->socket);
503 if (ioctl(iter->socket, SIOCGIFFLAGS, (char *) &ifreq) < 0) {
531 if (ioctl(iter->socket, SIOCGLIFADDR, &lifreq) < 0) {
581 if (ioctl(iter->socket, SIOCGIFDSTADDR, (char *)&ifreq)
608 if (ioctl(iter->socket, SIOCGIFNETMASK, (char *)&ifreq) < 0) {
684 fd = iter->socket;
896 (void) close(iter->socket);