Home
last modified time | relevance | path

Searched refs:clientMac (Results 1 – 14 of 14) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java410 byte[] clientMac, boolean broadcast) { in DhcpPacket() argument
417 mClientMac = clientMac; in DhcpPacket()
986 byte[] clientMac; in decodeFullPacket()
1145 clientMac = new byte[addrLen]; in decodeFullPacket()
1146 packet.get(clientMac); in decodeFullPacket()
1315 newPacket = new DhcpDiscoverPacket(transactionId, secs, relayIp, clientMac, in decodeFullPacket()
1320 transactionId, secs, broadcast, ipSrc, relayIp, clientIp, yourIp, clientMac); in decodeFullPacket()
1324 transactionId, secs, clientIp, relayIp, clientMac, broadcast); in decodeFullPacket()
1328 transactionId, secs, clientIp, yourIp, nextIp, relayIp, clientMac, requestedIp, in decodeFullPacket()
1333 transactionId, secs, broadcast, ipSrc, relayIp, clientIp, yourIp, clientMac, in decodeFullPacket()
[all …]
DDhcpServer.java532 final MacAddress clientMac = getMacAddr(packet); in processDiscover() local
536 clientMac, packet.mRelayIp, packet.mHostName); in processDiscover()
537 transmitAck(packet, lease, clientMac); in processDiscover()
539 lease = mLeaseRepo.getOffer(packet.getExplicitClientIdOrNull(), clientMac, in processDiscover()
541 transmitOffer(packet, lease, clientMac); in processDiscover()
555 final MacAddress clientMac = getMacAddr(packet); in processRequest() local
557 lease = mLeaseRepo.requestLease(packet.getExplicitClientIdOrNull(), clientMac, in processRequest()
568 transmitAck(packet, lease, clientMac); in processRequest()
685 @NonNull MacAddress clientMac) { in transmitOffer() argument
703 return transmitOfferOrAckPacket(offerPacket, request, lease, clientMac, broadcastFlag); in transmitOffer()
[all …]
DDhcpReleasePacket.java33 Inet4Address relayIp, byte[] clientMac) { in DhcpReleasePacket() argument
35 relayIp, clientMac, false /* broadcast */); in DhcpReleasePacket()
DDhcpInformPacket.java31 byte[] clientMac) { in DhcpInformPacket() argument
32 super(transId, secs, clientIp, yourIp, nextIp, relayIp, clientMac, false); in DhcpInformPacket()
DDhcpNakPacket.java29 DhcpNakPacket(int transId, short secs, Inet4Address relayIp, byte[] clientMac, in DhcpNakPacket() argument
32 INADDR_ANY /* nextIp */, relayIp, clientMac, broadcast); in DhcpNakPacket()
DDhcpDeclinePacket.java30 Inet4Address nextIp, Inet4Address relayIp, byte[] clientMac, in DhcpDeclinePacket() argument
32 super(transId, secs, clientIp, yourIp, nextIp, relayIp, clientMac, false); in DhcpDeclinePacket()
DDhcpDiscoverPacket.java34 DhcpDiscoverPacket(int transId, short secs, Inet4Address relayIp, byte[] clientMac, in DhcpDiscoverPacket() argument
36 super(transId, secs, INADDR_ANY, INADDR_ANY, INADDR_ANY, relayIp, clientMac, broadcast); in DhcpDiscoverPacket()
DDhcpRequestPacket.java30 byte[] clientMac, boolean broadcast) { in DhcpRequestPacket() argument
31 super(transId, secs, clientIp, INADDR_ANY, INADDR_ANY, relayIp, clientMac, broadcast); in DhcpRequestPacket()
DDhcpOfferPacket.java35 Inet4Address relayIp, Inet4Address clientIp, Inet4Address yourIp, byte[] clientMac) { in DhcpOfferPacket() argument
36 super(transId, secs, clientIp, yourIp, serverAddress, relayIp, clientMac, broadcast); in DhcpOfferPacket()
DDhcpAckPacket.java33 Inet4Address relayIp, Inet4Address clientIp, Inet4Address yourIp, byte[] clientMac, in DhcpAckPacket() argument
35 super(transId, secs, clientIp, yourIp, serverAddress, relayIp, clientMac, broadcast); in DhcpAckPacket()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkValidationTest.kt168 reader.sendResponse(makeOfferPacket(discover.clientMac, discover.transactionId)) in testCapportApiCallbacks()
174 reader.sendResponse(makeAckPacket(request.clientMac, request.transactionId)) in testCapportApiCallbacks()
208 private fun makeOfferPacket(clientMac: ByteArray, transactionId: Int) = in makeOfferPacket()
211 clientMac, TEST_LEASE_TIMEOUT_SECS, in makeOfferPacket()
218 private fun makeAckPacket(clientMac: ByteArray, transactionId: Int) = in makeOfferPacket()
221 clientIpAddr /* requestClientIp */, clientMac, TEST_LEASE_TIMEOUT_SECS, in makeOfferPacket()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java1328 public final MacAddress clientMac; field in BpfCoordinator.ClientInfo
1332 @NonNull MacAddress clientMac) { in ClientInfo() argument
1336 this.clientMac = clientMac; in ClientInfo()
1346 && Objects.equals(this.clientMac, that.clientMac); in equals()
1351 return Objects.hash(downstreamIfindex, downstreamMac, clientAddress, clientMac); in hashCode()
1357 downstreamIfindex, downstreamMac, clientAddress, clientMac); in toString()
1563 c.clientMac, c.downstreamMac, ETH_P_IP, NetworkStackConstants.ETHER_MTU, in makeTetherDownstream4Value()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java959 final MacAddress clientMac = e.isValid() ? e.macAddr : NULL_MAC_ADDRESS; in updateClientInfoIpv4() local
961 mInterfaceParams.macAddr, (Inet4Address) e.ip, clientMac); in updateClientInfoIpv4()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java762 private void sendArpReply(final byte[] clientMac) throws IOException {
763 final ByteBuffer packet = ArpPacket.buildArpPacket(clientMac /* dst */,
765 clientMac /* target HW address */, CLIENT_ADDR.getAddress() /* sender IP */,