Searched refs:getNetAddr (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpLeaseRepositoryTest.java | 145 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/ |
D | DhcpServer.java | 652 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()
|
D | DhcpLeaseRepository.java | 291 removeLease(assignedLease.getNetAddr(), false /* notifyChange */); in requestLease() 292 } else if (!assignedLease.getNetAddr().equals(leaseAddr)) { in requestLease() 350 mCommittedLeases.put(lease.getNetAddr(), lease); in commitLease()
|
D | DhcpLease.java | 91 public Inet4Address getNetAddr() { in getNetAddr() method in DhcpLease
|