Lines Matching defs:sockfd
622 int sockfd, err;
624 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
625 if (sockfd < 0)
633 if (ioctl(sockfd, SIOCETHTOOL, &ifr) < 0) {
635 close(sockfd);
639 close(sockfd);
646 int sockfd, err;
648 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
649 if (sockfd < 0)
657 if (ioctl(sockfd, SIOCETHTOOL, &ifr) < 0) {
659 close(sockfd);
663 close(sockfd);