Lines Matching defs:sockfd
111 int sockfd;
124 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
129 if (ioctl(sockfd, SIOCGIWRATE, &req) == -1) {
131 close(sockfd);
136 close(sockfd);
142 int sockfd;
158 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
164 if (ioctl(sockfd, SIOCGIWSTATS, &req) == -1) {
166 close(sockfd);
171 close(sockfd);