Searched refs:ENCAP_L2 (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkValidationTest.kt | 208 DhcpPacket.buildOfferPacket(DhcpPacket.ENCAP_L2, transactionId, in makeOfferPacket() 218 DhcpPacket.buildAckPacket(DhcpPacket.ENCAP_L2, transactionId, in makeOfferPacket() 236 val packet = DhcpPacket.decodeFullPacket(packetBytes, packetBytes.size, DhcpPacket.ENCAP_L2) in makeOfferPacket()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 32 import static android.net.dhcp.DhcpPacket.ENCAP_L2; 927 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testPadAndOverloadedOptionsOffer() 995 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testBug2136() 1032 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testUdpServerAnySourcePort() 1071 DhcpPacket.decodeFullPacket(packet, ENCAP_L2, TEST_EMPTY_OPTIONS_SKIP_LIST); in testUdpInvalidDstPort() 1103 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L2, in testMultipleRouters() 1122 DhcpPacket.ENCAP_L2, transactionId, secs, hwaddr, in testDiscoverPacket()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 678 DhcpPacket.ENCAP_L2, getOptionsToSkip()); in handlePacket() 746 if (encap == DhcpPacket.ENCAP_L2) { in transmitPacket() 779 DhcpPacket.ENCAP_L2, mTransactionId, getSecs(), mHwAddr, in sendDiscoverPacket() 783 return transmitPacket(packet, "DHCPDISCOVER", DhcpPacket.ENCAP_L2, INADDR_BROADCAST); in sendDiscoverPacket() 791 ? DhcpPacket.ENCAP_L2 : DhcpPacket.ENCAP_BOOTP; in sendRequestPacket() 808 final ByteBuffer packet = DhcpPacket.buildDeclinePacket(DhcpPacket.ENCAP_L2, in sendDeclinePacket() 810 return transmitPacket(packet, "DHCPDECLINE", DhcpPacket.ENCAP_L2, INADDR_BROADCAST); in sendDeclinePacket() 1429 DhcpPacket.ENCAP_L2, mTransactionId, getSecs(), mHwAddr, in sendPreconnectionPacket()
|
D | DhcpPacket.java | 81 public static final int ENCAP_L2 = 0; // EthernetII header included field in DhcpPacket 518 if (encap == ENCAP_L2) { in fillInPacket() 1044 if (pktType == ENCAP_L2) { in decodeFullPacket()
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 228 ByteBuffer packet = DhcpPacket.buildDiscoverPacket(DhcpPacket.ENCAP_L2, in sendDhcpDiscover() 240 ByteBuffer packet = DhcpPacket.buildRequestPacket(DhcpPacket.ENCAP_L2, in sendDhcpRequest() 251 DhcpPacket.decodeFullPacket(p, p.length, DhcpPacket.ENCAP_L2); in getNextDhcpPacket() 261 DhcpPacket.decodeFullPacket(packet, packet.length, DhcpPacket.ENCAP_L2); in getNextDhcpPacket()
|
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/ |
D | NetworkStackUtilsIntegrationTest.kt | 321 val packet = DhcpPacket.buildNakPacket(DhcpPacket.ENCAP_L2, 42, in doTestDhcpResponseWithMfBitDropped()
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | ConnectivityPacketSummary.java | 388 dhcpPacket = DhcpPacket.decodeFullPacket(mBytes, mLength, DhcpPacket.ENCAP_L2); in parseDHCPv4()
|
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/ |
D | IpClientIntegrationTestCommon.java | 35 import static android.net.dhcp.DhcpPacket.ENCAP_L2; 1107 return DhcpPacket.buildOfferPacket(DhcpPacket.ENCAP_L2, packet.getTransactionId(), 1129 return DhcpPacket.buildAckPacket(DhcpPacket.ENCAP_L2, packet.getTransactionId(), 1149 return DhcpPacket.buildNakPacket(DhcpPacket.ENCAP_L2, packet.getTransactionId(), 1364 ENCAP_L2); 1490 DhcpPacket packet = DhcpPacket.decodeFullPacket(payload, payload.length, ENCAP_L2);
|