Lines Matching refs:request
82 struct ifreq request; in createBridge() local
83 memset(&request, 0, sizeof(request)); in createBridge()
85 request.ifr_ifindex = if_nametoindex(mBridgeName.c_str()); in createBridge()
86 if (request.ifr_ifindex == 0) { in createBridge()
91 strlcpy(request.ifr_name, mBridgeName.c_str(), sizeof(request.ifr_name)); in createBridge()
92 res = ::ioctl(mSocketFd, SIOCGIFFLAGS, &request); in createBridge()
98 if ((request.ifr_flags & IFF_UP) != 0) { in createBridge()
104 request.ifr_flags |= IFF_UP; in createBridge()
105 res = ::ioctl(mSocketFd, SIOCSIFFLAGS, &request); in createBridge()
117 struct ifreq request; in doInterfaceOperation() local
118 memset(&request, 0, sizeof(request)); in doInterfaceOperation()
120 request.ifr_ifindex = if_nametoindex(interfaceName.c_str()); in doInterfaceOperation()
121 if (request.ifr_ifindex == 0) { in doInterfaceOperation()
125 strlcpy(request.ifr_name, mBridgeName.c_str(), sizeof(request.ifr_name)); in doInterfaceOperation()
126 int res = ::ioctl(mSocketFd, operation, &request); in doInterfaceOperation()