Searched refs:sock_fd (Results 1 - 1 of 1) sorted by relevance
/osnet-11/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 790 int n_ifs, i, sock_fd; local 794 sock_fd = socket(AF_INET, SOCK_DGRAM, 0); 795 if (sock_fd == -1) 798 if ((ioctl(sock_fd, SIOCGIFNUM, &n_ifs) == -1) || (n_ifs <= 0)) { 799 (void) close(sock_fd); 808 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) == -1) { 809 (void) close(sock_fd); 817 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifc.ifc_req[i]) == 0) 830 (void) close(sock_fd);
|
Completed in 17 milliseconds