Searched refs:ENCAP_L2 (Results 1 – 7 of 7) sorted by relevance
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 32 import static android.net.dhcp.DhcpPacket.ENCAP_L2; 926 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testPadAndOverloadedOptionsOffer() 994 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testBug2136() 1031 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testUdpServerAnySourcePort() 1070 DhcpPacket.decodeFullPacket(packet, ENCAP_L2, TEST_EMPTY_OPTIONS_SKIP_LIST); in testUdpInvalidDstPort() 1102 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testMultipleRouters() 1121 DhcpPacket.ENCAP_L2, transactionId, secs, hwaddr, in testDiscoverPacket()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkValidationTest.kt | 209 DhcpPacket.buildOfferPacket(DhcpPacket.ENCAP_L2, transactionId, in makeOfferPacket() 219 DhcpPacket.buildAckPacket(DhcpPacket.ENCAP_L2, transactionId, in makeOfferPacket() 237 val packet = DhcpPacket.decodeFullPacket(packetBytes, packetBytes.size, DhcpPacket.ENCAP_L2) in makeOfferPacket()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 659 DhcpPacket.ENCAP_L2, getOptionsToSkip()); in handlePacket() 723 if (encap == DhcpPacket.ENCAP_L2) { in transmitPacket() 751 DhcpPacket.ENCAP_L2, mTransactionId, getSecs(), mHwAddr, in sendDiscoverPacket() 755 return transmitPacket(packet, "DHCPDISCOVER", DhcpPacket.ENCAP_L2, INADDR_BROADCAST); in sendDiscoverPacket() 763 ? DhcpPacket.ENCAP_L2 : DhcpPacket.ENCAP_BOOTP; in sendRequestPacket() 780 final ByteBuffer packet = DhcpPacket.buildDeclinePacket(DhcpPacket.ENCAP_L2, in sendDeclinePacket() 782 return transmitPacket(packet, "DHCPDECLINE", DhcpPacket.ENCAP_L2, INADDR_BROADCAST); in sendDeclinePacket() 1392 DhcpPacket.ENCAP_L2, mTransactionId, getSecs(), mHwAddr, in sendPreconnectionPacket()
|
D | DhcpPacket.java | 79 public static final int ENCAP_L2 = 0; // EthernetII header included field in DhcpPacket 509 if (encap == ENCAP_L2) { in fillInPacket() 1025 if (pktType == ENCAP_L2) { in decodeFullPacket()
|
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 579 return DhcpPacket.decodeFullPacket(packet, packet.length, DhcpPacket.ENCAP_L2); in getNextDhcpPacket() 631 ByteBuffer packet = DhcpPacket.buildDiscoverPacket(DhcpPacket.ENCAP_L2, in sendDhcpDiscover() 643 ByteBuffer packet = DhcpPacket.buildRequestPacket(DhcpPacket.ENCAP_L2, in sendDhcpRequest()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTestCommon.java | 25 import static android.net.dhcp.DhcpPacket.ENCAP_L2; 718 return DhcpPacket.buildOfferPacket(DhcpPacket.ENCAP_L2, packet.getTransactionId(), 739 return DhcpPacket.buildAckPacket(DhcpPacket.ENCAP_L2, packet.getTransactionId(), 757 return DhcpPacket.buildNakPacket(DhcpPacket.ENCAP_L2, packet.getTransactionId(), 934 ENCAP_L2); 1038 DhcpPacket packet = DhcpPacket.decodeFullPacket(payload, payload.length, ENCAP_L2);
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | ConnectivityPacketSummary.java | 388 dhcpPacket = DhcpPacket.decodeFullPacket(mBytes, mLength, DhcpPacket.ENCAP_L2); in parseDHCPv4()
|