Searched refs:DHCP_CLIENT (Results 1 – 5 of 5) sorted by relevance
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpPacket.java | 129 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()
|
D | DhcpServer.java | 19 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()
|
D | DhcpClient.java | 588 Os.bind(mUdpSock, IPV4_ADDR_ANY, DhcpPacket.DHCP_CLIENT); in initUdpSocket()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 138 DHCP_CLIENT, DHCP_SERVER, result, DHCP_BOOTREPLY, false); in buildPacket()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 21 import static android.net.dhcp.DhcpPacket.DHCP_CLIENT; 528 if (udpSrcPort != DHCP_CLIENT || udpDstPort != DHCP_SERVER) return false;
|