Lines Matching refs:request
125 struct ifreq request; in configureBridge() local
126 memset(&request, 0, sizeof(request)); in configureBridge()
127 request.ifr_ifindex = if_nametoindex(ifName); in configureBridge()
128 if (request.ifr_ifindex == 0) { in configureBridge()
134 strlcpy(request.ifr_name, kBridgeName, sizeof(request.ifr_name)); in configureBridge()
135 res = ::ioctl(fd, SIOCBRADDIF, &request); in configureBridge()
144 struct ifreq request; in configureBridge() local
145 memset(&request, 0, sizeof(request)); in configureBridge()
146 request.ifr_ifindex = if_nametoindex(kBridgeName); in configureBridge()
147 if (request.ifr_ifindex == 0) { in configureBridge()
153 strlcpy(request.ifr_name, kBridgeName, sizeof(request.ifr_name)); in configureBridge()
154 res = ::ioctl(fd, SIOCGIFFLAGS, &request); in configureBridge()
161 if ((request.ifr_flags & IFF_UP) == 0) { in configureBridge()
163 request.ifr_flags |= IFF_UP; in configureBridge()
164 res = ::ioctl(fd, SIOCSIFFLAGS, &request); in configureBridge()