Searched refs:num_ifs (Results 1 – 1 of 1) sorted by relevance
296 int fd, num_ifs, i, found; in get_first_ethernet() local316 num_ifs = lifn.lifn_count; in get_first_ethernet()317 req_size = num_ifs * sizeof(struct lifreq); in get_first_ethernet()389 int fd, num_ifs, i, found; in get_first_ethernet() local401 if (ioctl(fd, SIOCGIFNUM, (char *)&num_ifs) < 0) { in get_first_ethernet()402 num_ifs = MAXIFS; in get_first_ethernet()405 req_size = num_ifs * sizeof(struct ifreq); in get_first_ethernet()