/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpPacket.java | 363 public abstract ByteBuffer buildPacket(int encap, short destUdp, in buildPacket() argument 461 protected void fillInPacket(int encap, Inet4Address destIp, in fillInPacket() argument 477 if (encap == ENCAP_L2) { in fillInPacket() 486 if (encap <= ENCAP_L3) { in fillInPacket() 546 if (encap <= ENCAP_L3) { in fillInPacket() 1391 public static ByteBuffer buildDiscoverPacket(int encap, int transactionId, in buildDiscoverPacket() argument 1398 return pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildDiscoverPacket() 1405 public static ByteBuffer buildOfferPacket(int encap, int transactionId, in buildOfferPacket() argument 1427 return pkt.buildPacket(encap, DHCP_CLIENT, DHCP_SERVER); in buildOfferPacket() 1433 public static ByteBuffer buildAckPacket(int encap, int transactionId, in buildAckPacket() argument [all …]
|
D | DhcpReleasePacket.java | 42 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 44 fillInPacket(encap, mServerIdentifier /* destIp */, mClientIp /* srcIp */, destUdp, srcUdp, in buildPacket()
|
D | DhcpInformPacket.java | 43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 46 fillInPacket(encap, mClientIp, mYourIp, destUdp, srcUdp, result, in buildPacket()
|
D | DhcpNakPacket.java | 43 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 49 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, DHCP_BOOTREPLY, mBroadcast); in buildPacket()
|
D | DhcpDeclinePacket.java | 45 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 48 fillInPacket(encap, mClientIp, mYourIp, destUdp, srcUdp, result, in buildPacket()
|
D | DhcpDiscoverPacket.java | 50 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 52 fillInPacket(encap, INADDR_BROADCAST, mSrcIp, destUdp, srcUdp, result, DHCP_BOOTREQUEST, in buildPacket()
|
D | DhcpRequestPacket.java | 44 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 47 fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp, srcUdp, in buildPacket()
|
D | DhcpOfferPacket.java | 58 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 63 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
|
D | DhcpAckPacket.java | 58 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 63 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
|
D | DhcpClient.java | 683 private boolean transmitPacket(ByteBuffer buf, String description, int encap, Inet4Address to) { in transmitPacket() argument 685 if (encap == DhcpPacket.ENCAP_L2) { in transmitPacket() 688 } else if (encap == DhcpPacket.ENCAP_BOOTP && to.equals(INADDR_BROADCAST)) { in transmitPacket() 723 final int encap = INADDR_ANY.equals(clientAddress) in sendRequestPacket() local 727 encap, mTransactionId, getSecs(), clientAddress, in sendRequestPacket() 735 return transmitPacket(packet, description, encap, to); in sendRequestPacket()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 135 public ByteBuffer buildPacket(int encap, short unusedDestUdp, short unusedSrcUdp) { in buildPacket() argument 137 fillInPacket(encap, CLIENT_ADDR, SERVER_ADDR, in buildPacket()
|