Searched refs:mUdpSock (Results 1 – 1 of 1) sorted by relevance
/frameworks/base/services/net/java/android/net/dhcp/ |
D | DhcpClient.java | 173 private FileDescriptor mUdpSock; field in DhcpClient 300 mUdpSock = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in initUdpSocket() 301 Os.setsockoptInt(mUdpSock, SOL_SOCKET, SO_REUSEADDR, 1); in initUdpSocket() 302 Os.setsockoptIfreq(mUdpSock, SOL_SOCKET, SO_BINDTODEVICE, mIfaceName); in initUdpSocket() 303 Os.setsockoptInt(mUdpSock, SOL_SOCKET, SO_BROADCAST, 1); in initUdpSocket() 304 Os.setsockoptInt(mUdpSock, SOL_SOCKET, SO_RCVBUF, 0); in initUdpSocket() 305 Os.bind(mUdpSock, Inet4Address.ANY, DhcpPacket.DHCP_CLIENT); in initUdpSocket() 306 NetworkUtils.protectFromVpn(mUdpSock); in initUdpSocket() 316 Os.connect(mUdpSock, to, DhcpPacket.DHCP_SERVER); in connectUdpSock() 331 closeQuietly(mUdpSock); in closeSockets() [all …]
|