Lines Matching defs:socket
50 int socket;
82 #include <sys/socket.h>
122 if (ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc)
316 * Create an unbound datagram socket to do the SIOCGLIFCONF
317 * ioctl on. HP/UX requires an AF_INET6 socket for
320 if ((iter->socket6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
327 "scan socket: %s"),
337 if ((iter->socket = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
344 "scan socket: %s"),
374 (void) close(iter->socket);
497 if (ioctl(iter->socket, SIOCGIFFLAGS, (char *) &ifreq) < 0) {
525 if (ioctl(iter->socket, SIOCGLIFADDR, &lifreq) < 0) {
575 if (ioctl(iter->socket, SIOCGIFDSTADDR, (char *)&ifreq)
602 if (ioctl(iter->socket, SIOCGIFNETMASK, (char *)&ifreq) < 0) {
678 fd = iter->socket;
890 (void) close(iter->socket);