Home
last modified time | relevance | path

Searched refs:encap (Results 1 – 13 of 13) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java404 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 …]
DDhcpReleasePacket.java42 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
44 fillInPacket(encap, mServerIdentifier /* destIp */, mClientIp /* srcIp */, destUdp, srcUdp, in buildPacket()
DDhcpNakPacket.java43 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()
DDhcpDeclinePacket.java45 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
48 fillInPacket(encap, mClientIp, mYourIp, destUdp, srcUdp, result, in buildPacket()
DDhcpDiscoverPacket.java50 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()
DDhcpRequestPacket.java44 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
47 fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp, srcUdp, in buildPacket()
DDhcpOfferPacket.java61 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
66 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
DDhcpAckPacket.java60 public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) { in buildPacket() argument
65 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, in buildPacket()
DDhcpClient.java744 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/
DTunUtils.java171 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()
DIpSecManagerTest.java305 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/
DTunUtils.java154 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/
DDhcpPacketTest.java142 public ByteBuffer buildPacket(int encap, short unusedDestUdp, short unusedSrcUdp) { in buildPacket() argument
144 fillInPacket(encap, CLIENT_ADDR, SERVER_ADDR, in buildPacket()