/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpPacket.java | 404 public abstract ByteBuffer buildPacket(int encap, short destUdp, in buildPacket() argument 502 protected void fillInPacket(int encap, Inet4Address destIp, in fillInPacket() argument 518 if (encap == ENCAP_L2) { in fillInPacket() 527 if (encap <= ENCAP_L3) { in fillInPacket() 587 if (encap <= ENCAP_L3) { in fillInPacket() 1516 public static ByteBuffer buildDiscoverPacket(int encap, int transactionId, in buildDiscoverPacket() argument 1525 return pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); in buildDiscoverPacket() 1533 public static ByteBuffer buildDiscoverPacket(int encap, int transactionId, in buildDiscoverPacket() argument 1536 return buildDiscoverPacket(encap, transactionId, secs, clientMac, broadcast, in buildDiscoverPacket() 1543 public static ByteBuffer buildOfferPacket(int encap, int transactionId, in buildOfferPacket() 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 | 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 | 61 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 66 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
|
D | DhcpAckPacket.java | 60 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument 65 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
|
D | DhcpClient.java | 744 private boolean transmitPacket(ByteBuffer buf, String description, int encap, Inet4Address to) { in transmitPacket() argument 746 if (encap == DhcpPacket.ENCAP_L2) { in transmitPacket() 749 } else if (encap == DhcpPacket.ENCAP_BOOTP && to.equals(INADDR_BROADCAST)) { in transmitPacket() 790 final int encap = INADDR_ANY.equals(clientAddress) in sendRequestPacket() local 794 encap, mTransactionId, getSecs(), clientAddress, DO_UNICAST, mHwAddr, in sendRequestPacket() 802 return transmitPacket(packet, description, encap, to); in sendRequestPacket()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | TunUtils.java | 171 byte[] pkt, int spi, boolean encap, byte[] plaintext) { in isEspFailIfSpecifiedPlaintextFound() argument 176 return isEsp(pkt, spi, encap); in isEspFailIfSpecifiedPlaintextFound() 179 private static boolean isEsp(byte[] pkt, int spi, boolean encap) { in isEsp() argument 181 if (encap) { in isEsp() 190 if (encap) { in isEsp()
|
D | IpSecManagerTest.java | 305 private void doTestCreateTransform(String loopbackAddrString, boolean encap) throws Exception { in doTestCreateTransform() argument 322 UdpEncapsulationSocket encapSocket = encap in doTestCreateTransform()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | TunUtils.java | 154 public byte[] getEspPacket(int spi, boolean encap, int startIndex) { in getEspPacket() argument 157 return isEsp(pkt, spi, encap); in getEspPacket() 201 private static boolean isEsp(byte[] pkt, int spi, boolean encap) { in isEsp() argument 207 if (encap) { in isEsp()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 142 public ByteBuffer buildPacket(int encap, short unusedDestUdp, short unusedSrcUdp) { in buildPacket() argument 144 fillInPacket(encap, CLIENT_ADDR, SERVER_ADDR, in buildPacket()
|