Searched refs:mUdpSock (Results 1 – 1 of 1) sorted by relevance
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 203 private FileDescriptor mUdpSock; field in DhcpClient 338 mUdpSock = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in initUdpSocket() 339 SocketUtils.bindSocketToInterface(mUdpSock, mIfaceName); in initUdpSocket() 340 Os.setsockoptInt(mUdpSock, SOL_SOCKET, SO_REUSEADDR, 1); in initUdpSocket() 341 Os.setsockoptInt(mUdpSock, SOL_SOCKET, SO_BROADCAST, 1); in initUdpSocket() 342 Os.setsockoptInt(mUdpSock, SOL_SOCKET, SO_RCVBUF, 0); in initUdpSocket() 343 Os.bind(mUdpSock, IPV4_ADDR_ANY, DhcpPacket.DHCP_CLIENT); in initUdpSocket() 355 Os.connect(mUdpSock, to, DhcpPacket.DHCP_SERVER); in connectUdpSock() 364 closeSocketQuietly(mUdpSock); in closeSockets() 430 Os.sendto(mUdpSock, buf, 0, to, DhcpPacket.DHCP_SERVER); in transmitPacket() [all …]
|