Home
last modified time | relevance | path

Searched refs:mClientMac (Results 1 – 4 of 4) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java352 protected final byte[] mClientMac; field in DhcpPacket
385 mClientMac = clientMac; in DhcpPacket()
400 return mClientMac; in getClientMac()
429 clientId = new byte[mClientMac.length + 1]; in getClientId()
431 System.arraycopy(mClientMac, 0, clientId, 1, mClientMac.length); in getClientId()
479 buf.put(mClientMac); in fillInPacket()
516 buf.put((byte) mClientMac.length); // Hardware Address Length in fillInPacket()
531 buf.put(mClientMac); in fillInPacket()
533 (HWADDR_LEN - mClientMac.length) // pad addr to 16 bytes in fillInPacket()
817 String macAddr = macToString(mClientMac); in toString()
DDhcpServer.java688 request.mRelayIp, lease.getNetAddr(), request.mClientMac, timeout, prefixMask, in transmitOffer()
708 lease.getNetAddr(), packet.mClientIp, packet.mClientMac, timeout, in transmitAck()
725 request.mRelayIp, request.mClientMac, true /* broadcast */, message); in transmitNak()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java221 private byte[] mClientMac; field in IpClientIntegrationTest
434 mClientMac = InterfaceParams.getByName(mIfaceName).macAddr.toByteArray();
947 assertTrue(Arrays.equals(packet.senderHwAddress.toByteArray(), mClientMac));
977 sendArpReply(mClientMac);
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java452 assertEquals(TEST_CLIENT_MAC, MacAddress.fromBytes(packet.mClientMac)); in assertMatchesClient()