Home
last modified time | relevance | path

Searched refs:ArpPacket (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DArpPacketTest.java33 import com.android.net.module.util.arp.ArpPacket;
151 final ByteBuffer arpProbe = ArpPacket.buildArpPacket(ETHER_BROADCAST, in testBuildArpProbePacket()
159 final ByteBuffer arpAnnounce = ArpPacket.buildArpPacket(ETHER_BROADCAST, in testBuildArpAnnouncePacket()
167 final ArpPacket packet = ArpPacket.parseArpPacket(TEST_ARP_PROBE, TEST_ARP_PROBE.length); in testParseArpProbePacket()
179 final ArpPacket packet = ArpPacket.parseArpPacket(TEST_ARP_ANNOUNCE, in testParseArpAnnouncePacket()
192 assertThrows(ArpPacket.ParseException.class, () -> ArpPacket.parseArpPacket( in testParseArpPacket_invalidByteBufferParameters()
198 assertThrows(ArpPacket.ParseException.class, () -> ArpPacket.parseArpPacket( in testParseArpPacket_truncatedPacket()
204 assertThrows(ArpPacket.ParseException.class, () -> ArpPacket.parseArpPacket( in testParseArpPacket_truncatedMacAddress()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/arp/
DArpPacket.java45 public class ArpPacket { class
56 ArpPacket(MacAddress destination, MacAddress source, short opCode, MacAddress senderHwAddress, in ArpPacket() method in ArpPacket
99 public static ArpPacket parseArpPacket(final byte[] recvbuf, final int length) in parseArpPacket()
152 return new ArpPacket(MacAddress.fromBytes(l2dst), in parseArpPacket()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java73 import com.android.net.module.util.arp.ArpPacket;
265 private ArpPacket parseArpPacket(final byte[] packet) { in parseArpPacket()
267 return ArpPacket.parseArpPacket(packet, packet.length); in parseArpPacket()
268 } catch (ArpPacket.ParseException e) { in parseArpPacket()
276 final ArpPacket arpPacket = parseArpPacket(packet); in maybeReplyArp()
283 final ByteBuffer arpReply = ArpPacket.buildArpPacket( in maybeReplyArp()
301 final ByteBuffer arpProbe = ArpPacket.buildArpPacket(ETHER_BROADCAST /* dst */, in getRouterMacAddressFromArp()
308 final ArpPacket arpPacket = parseArpPacket(p); in getRouterMacAddressFromArp()
315 final ArpPacket arpReply = ArpPacket.parseArpPacket(packet, packet.length); in getRouterMacAddressFromArp()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java207 import com.android.net.module.util.arp.ArpPacket;
1079 private ArpPacket parseArpPacketOrNull(final byte[] packet) {
1081 return ArpPacket.parseArpPacket(packet, packet.length);
1082 } catch (ArpPacket.ParseException e) {
1187 final ByteBuffer packet = ArpPacket.buildArpPacket(dstMac, srcMac, targetIp.getAddress(),
1193 final ByteBuffer packet = ArpPacket.buildArpPacket(DhcpPacket.ETHER_BROADCAST /* dst */,
1562 private ArpPacket getNextArpPacket(final long timeout) throws Exception {
1565 final ArpPacket arpPacket = parseArpPacketOrNull(packet);
1571 private ArpPacket getNextArpPacket() throws Exception {
1572 final ArpPacket packet = getNextArpPacket(PACKET_TIMEOUT_MS);
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java105 import com.android.net.module.util.arp.ArpPacket;
1550 final ArpPacket packet = ArpPacket.parseArpPacket(recvbuf, length); in handlePacket()
1555 } catch (ArpPacket.ParseException e) { in handlePacket()
1584 final ByteBuffer packet = ArpPacket.buildArpPacket(DhcpPacket.ETHER_BROADCAST, hwAddr, in transmitPacket()
1598 private boolean isArpProbe(@NonNull ArpPacket packet) { in isArpProbe()
1611 private boolean packetHasIpAddressConflict(@NonNull ArpPacket packet, in packetHasIpAddressConflict()
1618 private boolean hasIpAddressConflict(@NonNull ArpPacket packet, in hasIpAddressConflict()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfNewTest.kt69 import com.android.net.module.util.arp.ArpPacket
1889 val receivedArpPacketBuf = ArpPacket.buildArpPacket( in testArpTransmit()
1902 val expectedArpReplyBuf = ArpPacket.buildArpPacket( in testArpTransmit()
1940 val receivedArpPacketBuf = ArpPacket.buildArpPacket( in testArpOffloadDisabled()
/packages/modules/Connectivity/staticlibs/
DAndroid.bp38 "device/com/android/net/module/util/arp/ArpPacket.java",
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java140 import com.android.net.module.util.arp.ArpPacket;
2033 final ByteBuffer packet = ArpPacket.buildArpPacket(ETHER_BROADCAST /* dstMac */, in sendGratuitousARP()