Searched refs:pifreq (Results 1 – 1 of 1) sorted by relevance
387 struct ifreq *pifreq; in get_first_ethernet() local429 pifreq = ifc.ifc_req; in get_first_ethernet()431 for (i = ifc.ifc_len / sizeof(struct ifreq); i > 0; i--, pifreq++) { in get_first_ethernet()433 if (strchr(pifreq->ifr_name, ':') != NULL) in get_first_ethernet()437 strncpy(ifr.ifr_name, pifreq->ifr_name, sizeof(ifr.ifr_name)); in get_first_ethernet()