Home
last modified time | relevance | path

Searched refs:ETHER_ADDR_LEN (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java26 import static com.android.server.util.NetworkStackConstants.ETHER_ADDR_LEN;
80 buf.put((byte) ETHER_ADDR_LEN); // hln in buildArpPacket()
103 byte[] l2dst = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
104 byte[] l2src = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
124 if (hwAddrLength != ETHER_ADDR_LEN) { in parseArpPacket()
138 byte[] senderHwAddress = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
143 byte[] targetHwAddress = new byte[ETHER_ADDR_LEN]; in parseArpPacket()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java27 import static com.android.server.util.NetworkStackConstants.ETHER_ADDR_LEN;
135 final ByteBuffer srcMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
140 final ByteBuffer dstMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
173 asUint(mPacket.get()) != ETHER_ADDR_LEN || in parseARP()
417 if (mac == null || mac.remaining() < ETHER_ADDR_LEN) return "invalid"; in getMacAddressString()
419 byte[] bytes = new byte[ETHER_ADDR_LEN]; in getMacAddressString()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java20 import static com.android.server.util.NetworkStackConstants.ETHER_ADDR_LEN;
148 TEST_SENDER_MAC_ADDR, TEST_IPV4_ADDR.getAddress(), new byte[ETHER_ADDR_LEN], in testBuildArpProbePacket()
156 TEST_SENDER_MAC_ADDR, TEST_IPV4_ADDR.getAddress(), new byte[ETHER_ADDR_LEN], in testBuildArpAnnouncePacket()
/packages/modules/NetworkStack/src/com/android/server/util/
DNetworkStackConstants.java40 public static final int ETHER_ADDR_LEN = 6; field in NetworkStackConstants
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java53 import static com.android.server.util.NetworkStackConstants.ETHER_ADDR_LEN;
1487 targetIp.getAddress(), new byte[ETHER_ADDR_LEN], senderIp.getAddress(), in transmitPacket()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java38 import static com.android.server.util.NetworkStackConstants.ETHER_ADDR_LEN;
592 new byte[ETHER_ADDR_LEN] /* target HW address */,