Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java145 assertTrue(format("Duplicate address allocated: %s in %s", lease.getNetAddr(), addrs), in requestAddresses()
146 addrs.add(lease.getNetAddr())); in requestAddresses()
148 requestLeaseSelecting(newMac, lease.getNetAddr(), hostname); in requestAddresses()
239 assertTrue(newPrefix.contains(lease.getNetAddr())); in testUpdateParams_UsesNewPrefix()
248 assertEquals(TEST_INETADDR_1, offer.getNetAddr()); in testGetOffer_ExistingLease()
262 assertEquals(TEST_INETADDR_1, offer.getNetAddr()); in testGetOffer_ClientIdHasExistingLease()
278 assertNotEquals(TEST_INETADDR_1, offer.getNetAddr()); in testGetOffer_DifferentClientId()
287 assertEquals(TEST_INETADDR_1, offer.getNetAddr()); in testGetOffer_RequestedAddress()
299 assertNotEquals(TEST_INETADDR_1, offer.getNetAddr()); in testGetOffer_RequestedAddressInUse()
306 assertNotEquals(TEST_RESERVED_ADDR, offer.getNetAddr()); in testGetOffer_RequestedAddressReserved()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java652 return lease.getNetAddr(); in getAckOrOfferDst()
668 return isEmpty(request.mClientIp) && (request.mBroadcast || isEmpty(lease.getNetAddr())); in getBroadcastFlag()
695 request.mRelayIp, lease.getNetAddr(), request.mClientMac, timeout, prefixMask, in transmitOffer()
715 lease.getNetAddr(), packet.mClientIp, packet.mClientMac, timeout, in transmitAck()
746 if (!addArpEntry(clientMac, lease.getNetAddr())) { in transmitOfferOrAckPacket()
DDhcpLeaseRepository.java291 removeLease(assignedLease.getNetAddr(), false /* notifyChange */); in requestLease()
292 } else if (!assignedLease.getNetAddr().equals(leaseAddr)) { in requestLease()
350 mCommittedLeases.put(lease.getNetAddr(), lease); in commitLease()
DDhcpLease.java91 public Inet4Address getNetAddr() { in getNetAddr() method in DhcpLease