Lines Matching refs:best_lifr
240 struct lifreq **best_lifr)
251 *best_lifr = NULL;
303 if (*best_lifr != NULL) {
331 *best_lifr = lifr;
335 if (*best_lifr == NULL)
344 ifi->ifi_index = if_nametoindex((*best_lifr)->lifr_name);
345 if (strlcpy(ifi->ifi_name, (*best_lifr)->lifr_name, sizeof(ifi->ifi_name)) >= sizeof(ifi->ifi_name)) {
369 struct lifreq *lifrp, *best_lifr;
449 lifc.lifc_req, ifname, &best_lifr)) == NULL)
452 assert(best_lifr != NULL);
453 assert((best_lifr->lifr_addr.ss_family == AF_INET6) ||
454 (best_lifr->lifr_addr.ss_family == AF_INET));
456 switch (best_lifr->lifr_addr.ss_family) {
460 sinptr6 = (struct sockaddr_in6 *) &best_lifr->lifr_addr;
471 plen_to_netmask(best_lifr->lifr_addrlen,
477 sinptr = (struct sockaddr_in *) &best_lifr->lifr_addr;
484 lifrcopy = *best_lifr;