Home
last modified time | relevance | path

Searched refs:clientAddr (Results 1 – 11 of 11) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java134 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()
DDhcpServingParams.java138 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()
DDhcpReleasePacket.java32 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/Connectivity/Tethering/src/android/net/dhcp/
DDhcpServingParamsParcelExt.java171 public DhcpServingParamsParcelExt setSingleClientAddr(@Nullable Inet4Address clientAddr) { in setSingleClientAddr() argument
172 this.singleClientAddr = clientAddr == null ? 0 : inet4AddressToIntHTH(clientAddr); in setSingleClientAddr()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java426 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()
DDhcpLeaseRepositoryTest.java116 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()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java527 @Nullable Inet4Address clientAddr) { in makeServingParams() argument
529 (mInterfaceType == TetheringManager.TETHERING_NCM && clientAddr == null); in makeServingParams()
536 .setSingleClientAddr(clientAddr) in makeServingParams()
547 final Inet4Address clientAddr = clientLinkAddr == null ? null : in startDhcp() local
551 addr /* dnsServer */, serverLinkAddr, clientAddr); in startDhcp()
585 final LinkAddress clientAddr) { in configureDhcp() argument
587 return startDhcp(serverAddr, clientAddr); in configureDhcp()
1021 final Inet4Address clientAddr = mStaticIpv4ClientAddr == null ? null : in handleNewPrefixRequest() local
1024 srvAddr /* dnsServer */, mIpv4Address /* serverLinkAddress */, clientAddr); in handleNewPrefixRequest()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java224 final String clientAddr = "192.0.2.2/28"; in testStaticIpv4() local
226 requestWithStaticIpv4(localAddr, clientAddr)); in testStaticIpv4()
237 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4()
665 LinkAddress clientAddr = client == null ? null : new LinkAddress(client); in requestWithStaticIpv4() local
667 .setStaticIpv4Addresses(localAddr, clientAddr) in requestWithStaticIpv4()
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java239 final LinkAddress clientAddr = new LinkAddress("192.168.24.100/24"); in testTetheringRequest() local
241 .setStaticIpv4Addresses(localAddr, clientAddr) in testTetheringRequest()
246 assertEquals(clientAddr, tr2.getClientStaticIpv4Address()); in testTetheringRequest()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java749 final Inet4Address clientAddr = clientInfo.clientAddress; in tetherOffloadRuleClear() local
756 if (Arrays.equals(k.src4, clientAddr.getAddress())) { in tetherOffloadRuleClear()
761 if (Arrays.equals(v.dst46, toIpv4MappedAddressBytes(clientAddr))) { in tetherOffloadRuleClear()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java681 final LinkAddress serverAddr, final LinkAddress clientAddr, final boolean exempt, in createTetheringRequestParcel() argument
686 request.staticClientAddress = clientAddr; in createTetheringRequestParcel()