Lines Matching refs:mSocketFd
39 Interface::Interface() : mSocketFd(-1) { in Interface()
43 if (mSocketFd != -1) { in ~Interface()
44 close(mSocketFd); in ~Interface()
45 mSocketFd = -1; in ~Interface()
52 if (mSocketFd != -1) { in init()
56 mSocketFd = ::socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in init()
57 if (mSocketFd == -1) { in init()
98 int status = ::ioctl(mSocketFd, SIOCSIFMTU, &request); in setMtu()
139 int status = ::sendto(mSocketFd, &request, request.hdr.nlmsg_len, 0, in setAddress()
147 status = ::recv(mSocketFd, buffer, sizeof(buffer), 0); in setAddress()
183 int status = ::ioctl(mSocketFd, SIOCGIFINDEX, &request); in populateIndex()
195 int status = ::ioctl(mSocketFd, SIOCGIFHWADDR, &request); in populateMacAddress()
207 int status = ::ioctl(mSocketFd, SIOCGIFFLAGS, &request); in setInterfaceUp()
222 status = ::ioctl(mSocketFd, SIOCSIFFLAGS, &request); in setInterfaceUp()