Searched refs:clientAddr (Results 1 – 5 of 5) sorted by relevance
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpLeaseRepository.java | 134 long leaseTimeMs, @Nullable Inet4Address clientAddr, @NonNull SharedLog log, in DhcpLeaseRepository() argument 138 mClientAddr = clientAddr; in DhcpLeaseRepository() 139 updateParams(prefix, reservedAddrs, leaseTimeMs, clientAddr); in DhcpLeaseRepository() 143 long leaseTimeMs, @Nullable Inet4Address clientAddr) { in updateParams() argument 149 mNumAddresses = clientAddr != null ? 1 : 1 << (IPV4_ADDR_BITS - prefix.getPrefixLength()); in updateParams() 151 mClientAddr = clientAddr; in updateParams() 278 @NonNull Inet4Address clientAddr, @NonNull Inet4Address relayAddr, in requestLease() argument 286 final Inet4Address leaseAddr = reqAddr != null ? reqAddr : clientAddr; in requestLease()
|
D | DhcpServingParams.java | 138 Inet4Address clientAddr = null; in fromParcelableObject() local 140 clientAddr = intToInet4AddressHTH(parcel.singleClientAddr); in fromParcelableObject() 151 .setSingleClientAddr(clientAddr) in fromParcelableObject() 337 public Builder setSingleClientAddr(@Nullable Inet4Address clientAddr) { in setSingleClientAddr() argument 338 this.mClientAddr = clientAddr; in setSingleClientAddr()
|
D | DhcpReleasePacket.java | 32 public DhcpReleasePacket(int transId, Inet4Address serverId, Inet4Address clientAddr, in DhcpReleasePacket() argument 34 super(transId, (short)0, clientAddr, INADDR_ANY /* yourIp */, INADDR_ANY /* nextIp */, in DhcpReleasePacket() 37 mClientAddr = clientAddr; in DhcpReleasePacket()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpServerTest.java | 426 final Inet4Address clientAddr = parseAddr("192.168.51.42"); in testChangePrefixOnDecline() local 428 clientAddr, 24 /*prefixLen*/, TEST_LEASE_EXPTIME_SECS * 1000L + TEST_CLOCK_TIME, in testChangePrefixOnDecline() 440 assertResponseSentTo(clientAddr); in testChangePrefixOnDecline() 442 assertMatchesLease(packet, serverAddr, clientAddr, null); in testChangePrefixOnDecline() 452 @NonNull Inet4Address clientAddr, @Nullable String hostname) { in assertMatchesLease() argument 456 assertEquals(clientAddr, packet.mYourIp); in assertMatchesLease()
|
D | DhcpLeaseRepositoryTest.java | 116 private void initDhcpLeaseRepositoryWithOption(final Inet4Address clientAddr) { in initDhcpLeaseRepositoryWithOption() argument 123 TEST_IP_PREFIX, TEST_EXCL_SET, TEST_LEASE_TIME_MS, clientAddr, mLog, mClock); in initDhcpLeaseRepositoryWithOption() 575 private DhcpLease requestLease(@NonNull MacAddress macAddr, @NonNull Inet4Address clientAddr, in requestLease() argument 578 return mRepo.requestLease(CLIENTID_UNSPEC, macAddr, clientAddr, in requestLease() 614 @NonNull Inet4Address clientAddr) throws DhcpLeaseRepository.DhcpLeaseException { in requestLeaseRenewing() argument 616 return requestLease(macAddr, clientAddr, INETADDR_UNSPEC /* reqAddr */, HOSTNAME_NONE, in requestLeaseRenewing()
|