Home
last modified time | relevance | path

Searched refs:DHCP_CLIENT (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java20 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT;
196 mServer.processPacket(discover, DHCP_CLIENT); in testDiscover()
212 mServer.processPacket(discover, DHCP_CLIENT); in testDiscover_OutOfAddresses()
238 mServer.processPacket(request, DHCP_CLIENT); in testRequest_Selecting_Ack()
253 mServer.processPacket(request, DHCP_CLIENT); in testRequest_Selecting_Nak()
275 mServer.processPacket(release, DHCP_CLIENT); in testRelease()
DDhcpPacketTest.java136 DHCP_CLIENT, DHCP_SERVER, result, DHCP_BOOTREPLY, false); in buildPacket()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java111 static final short DHCP_CLIENT = (short) 68; field in DhcpPacket
818 return (udpSrcPort == DHCP_CLIENT) || (udpDstPort == DHCP_CLIENT); in isPacketToOrFromClient()
1311 return pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildDiscoverPacket()
1339 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildOfferPacket()
1366 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildAckPacket()
1378 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildNakPacket()
1394 ByteBuffer result = pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildRequestPacket()
DDhcpServer.java19 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT;
186 Os.sendto(fd, buffer, 0, dst, DhcpPacket.DHCP_CLIENT); in sendPacket()
354 if (srcPort != DHCP_CLIENT) { in processPacket()
DDhcpClient.java343 Os.bind(mUdpSock, IPV4_ADDR_ANY, DhcpPacket.DHCP_CLIENT); in initUdpSocket()