Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java129 public static final short DHCP_CLIENT = (short) 68; field in DhcpPacket
864 return (udpSrcPort == DHCP_CLIENT) || (udpDstPort == DHCP_CLIENT); in isPacketToOrFromClient()
1398 return pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildDiscoverPacket()
1427 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildOfferPacket()
1455 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildAckPacket()
1467 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildNakPacket()
1483 ByteBuffer result = pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildRequestPacket()
1495 ByteBuffer result = pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildDeclinePacket()
DDhcpServer.java19 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT;
204 Os.sendto(fd, buffer, 0, dst, DhcpPacket.DHCP_CLIENT); in sendPacket()
826 if (srcPort != DHCP_CLIENT) { in onReceive()
DDhcpClient.java588 Os.bind(mUdpSock, IPV4_ADDR_ANY, DhcpPacket.DHCP_CLIENT); in initUdpSocket()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java138 DHCP_CLIENT, DHCP_SERVER, result, DHCP_BOOTREPLY, false); in buildPacket()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java21 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT;
528 if (udpSrcPort != DHCP_CLIENT || udpDstPort != DHCP_SERVER) return false;