Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java134 public static final short DHCP_SERVER = (short) 67; field in DhcpPacket
868 return (udpSrcPort == DHCP_SERVER) && (udpDstPort == DHCP_SERVER); in isPacketServerToServer()
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.java21 import static android.net.dhcp.DhcpPacket.DHCP_SERVER;
855 Os.bind(mSocket, IPV4_ADDR_ANY, DHCP_SERVER); in createFd()
DDhcpClient.java600 Os.connect(mUdpSock, to, DhcpPacket.DHCP_SERVER); in connectUdpSock()
696 Os.sendto(mUdpSock, buf, 0, to, DhcpPacket.DHCP_SERVER); in transmitPacket()
/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.java23 import static android.net.dhcp.DhcpPacket.DHCP_SERVER;
528 if (udpSrcPort != DHCP_CLIENT || udpDstPort != DHCP_SERVER) return false;