Home
last modified time | relevance | path

Searched refs:ifr (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/recovery_ui/
Dethernet_device.cpp73 struct ifreq ifr; in SetInterfaceFlags() local
79 memset(&ifr, 0, sizeof(struct ifreq)); in SetInterfaceFlags()
80 strncpy(ifr.ifr_name, interface.c_str(), IFNAMSIZ); in SetInterfaceFlags()
81 ifr.ifr_name[IFNAMSIZ - 1] = 0; in SetInterfaceFlags()
83 if (ioctl(ctl_sock_, SIOCGIFFLAGS, &ifr) < 0) { in SetInterfaceFlags()
87 ifr.ifr_flags = (ifr.ifr_flags & (~clr)) | set; in SetInterfaceFlags()
89 if (ioctl(ctl_sock_, SIOCSIFFLAGS, &ifr) < 0) { in SetInterfaceFlags()