Lines Matching refs:ifrcopy
231 struct ifreq *ifr, ifrcopy; in get_ifi_info() local
303 ifrcopy = *ifr; in get_ifi_info()
304 if (ioctl(sockfd, SIOCGIFFLAGS, &ifrcopy) < 0) { in get_ifi_info()
308 flags = ifrcopy.ifr_flags; in get_ifi_info()
326 ifrcopy = *ifr; in get_ifi_info()
328 if ( 0 >= ioctl(sockfd, SIOCGIFINDEX, &ifrcopy)) in get_ifi_info()
329 ifi->ifi_index = ifrcopy.ifr_index; in get_ifi_info()
349 if (ioctl(sockfd, SIOCGIFNETMASK, &ifrcopy) < 0) { in get_ifi_info()
368 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info()
379 if (ioctl(sockfd, SIOCGIFBRDADDR, &ifrcopy) < 0) { in get_ifi_info()
382 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_broadaddr; in get_ifi_info()
398 if (ioctl(sockfd, SIOCGIFDSTADDR, &ifrcopy) < 0) { in get_ifi_info()
401 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_dstaddr; in get_ifi_info()