Searched refs:ifrequest (Results 1 – 1 of 1) sorted by relevance
353 struct ifreq ifrequest; in up_iface() local358 set_ifreq_to_ifname(&ifrequest); in up_iface()359 if (network_ioctl(SIOCGIFFLAGS, &ifrequest, "getting interface flags") < 0) { in up_iface()364 if (!(ifrequest.ifr_flags & IFF_UP)) { in up_iface()365 ifrequest.ifr_flags |= IFF_UP; in up_iface()368 if (network_ioctl(SIOCSIFFLAGS, &ifrequest, "setting interface flags") < 0) { in up_iface()377 if (network_ioctl(SIOCGIFADDR, &ifrequest, "can't get interface address") < 0) { in up_iface()378 } else if (ifrequest.ifr_addr.sa_family != AF_INET) { in up_iface()381 ((struct sockaddr_in*)(&ifrequest.ifr_addr))->sin_addr.s_addr = INADDR_ANY; in up_iface()382 network_ioctl(SIOCSIFADDR, &ifrequest, "can't set interface address"); in up_iface()[all …]