Searched refs:DhcpPacket (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 33 import static android.net.dhcp.DhcpPacket.*; 50 class TestDhcpPacket extends DhcpPacket { 125 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP); in assertDomainAndVendorInfoParses() 167 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP); in assertLeaseTimeParses() 199 assertLeaseTimeParses(true, DhcpPacket.INFINITE_LEASE, 0, infiniteLease); in testLeaseTime() 214 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP); in checkIpAddress() 295 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L3); in testOffer1() 327 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L3); in testOffer2() 364 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L3); in testBadHwaddrLength() 372 offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L3); in testBadHwaddrLength() [all …]
|
/frameworks/base/services/net/java/android/net/dhcp/ |
D | DhcpClient.java | 64 import static android.net.dhcp.DhcpPacket.*; 273 DhcpPacket.ETHER_BROADCAST); in initInterface() 301 Os.bind(mUdpSock, Inet4Address.ANY, DhcpPacket.DHCP_CLIENT); in initSockets() 335 private final byte[] mPacket = new byte[DhcpPacket.MAX_LENGTH]; 349 DhcpPacket packet = null; in run() 350 packet = DhcpPacket.decodeFullPacket(mPacket, length, DhcpPacket.ENCAP_L2); in run() 379 Os.sendto(mUdpSock, buf, 0, to, DhcpPacket.DHCP_SERVER); in transmitPacket() 389 ByteBuffer packet = DhcpPacket.buildDiscoverPacket( in sendDiscoverPacket() 390 DhcpPacket.ENCAP_L2, mTransactionId, getSecs(), mHwAddr, in sendDiscoverPacket() 399 int encap = to.equals(INADDR_BROADCAST) ? DhcpPacket.ENCAP_L2 : DhcpPacket.ENCAP_BOOTP; in sendRequestPacket() [all …]
|
D | DhcpPacket.java | 28 abstract class DhcpPacket { class 289 protected DhcpPacket(int transId, short secs, Inet4Address clientIp, Inet4Address yourIp, in DhcpPacket() method in DhcpPacket 680 public static DhcpPacket decodeFullPacket(ByteBuffer packet, int pktType) in decodeFullPacket() 948 DhcpPacket newPacket; in decodeFullPacket() 1011 public static DhcpPacket decodeFullPacket(byte[] packet, int length, int pktType) in decodeFullPacket() 1076 DhcpPacket pkt = new DhcpDiscoverPacket( in buildDiscoverPacket() 1091 DhcpPacket pkt = new DhcpOfferPacket( in buildOfferPacket() 1111 DhcpPacket pkt = new DhcpAckPacket( in buildAckPacket() 1128 DhcpPacket pkt = new DhcpNakPacket(transactionId, (short) 0, clientIpAddr, in buildNakPacket() 1142 DhcpPacket pkt = new DhcpRequestPacket(transactionId, secs, clientIp, in buildRequestPacket()
|
D | DhcpDeclinePacket.java | 25 class DhcpDeclinePacket extends DhcpPacket {
|
D | DhcpDiscoverPacket.java | 25 class DhcpDiscoverPacket extends DhcpPacket {
|
D | DhcpInformPacket.java | 25 class DhcpInformPacket extends DhcpPacket {
|
D | DhcpNakPacket.java | 25 class DhcpNakPacket extends DhcpPacket {
|
D | DhcpRequestPacket.java | 27 class DhcpRequestPacket extends DhcpPacket {
|
D | DhcpOfferPacket.java | 25 class DhcpOfferPacket extends DhcpPacket {
|
D | DhcpAckPacket.java | 25 class DhcpAckPacket extends DhcpPacket {
|