/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpLeaseRepository.java | 134 long leaseTimeMs, @Nullable Inet4Address clientAddr, int leasesSubnetPrefixLength, in DhcpLeaseRepository() argument 138 mClientAddr = clientAddr; in DhcpLeaseRepository() 139 updateParams(prefix, reservedAddrs, leaseTimeMs, clientAddr, leasesSubnetPrefixLength); in DhcpLeaseRepository() 143 long leaseTimeMs, @Nullable Inet4Address clientAddr, int leasesSubnetPrefixLength) { in updateParams() argument 152 mNumAddresses = clientAddr != null ? 1 : 1 << (IPV4_ADDR_BITS - subnetPrefixLength); in updateParams() 154 mClientAddr = clientAddr; in updateParams() 281 @NonNull Inet4Address clientAddr, @NonNull Inet4Address relayAddr, in requestLease() argument 289 final Inet4Address leaseAddr = reqAddr != null ? reqAddr : clientAddr; in requestLease()
|
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()
|
D | DhcpServingParams.java | 148 Inet4Address clientAddr = null; in fromParcelableObject() local 150 clientAddr = intToInet4AddressHTH(parcel.singleClientAddr); in fromParcelableObject() 161 .setSingleClientAddr(clientAddr) in fromParcelableObject() 349 public Builder setSingleClientAddr(@Nullable Inet4Address clientAddr) { in setSingleClientAddr() argument 350 this.mClientAddr = clientAddr; in setSingleClientAddr()
|
/packages/modules/Connectivity/Tethering/src/android/net/dhcp/ |
D | DhcpServingParamsParcelExt.java | 171 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/ |
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 | 119 private void initDhcpLeaseRepositoryWithOption(final Inet4Address clientAddr) { in initDhcpLeaseRepositoryWithOption() argument 126 TEST_IP_PREFIX, TEST_EXCL_SET, TEST_LEASE_TIME_MS, clientAddr, in initDhcpLeaseRepositoryWithOption() 616 private DhcpLease requestLease(@NonNull MacAddress macAddr, @NonNull Inet4Address clientAddr, in requestLease() argument 619 return mRepo.requestLease(CLIENTID_UNSPEC, macAddr, clientAddr, in requestLease() 655 @NonNull Inet4Address clientAddr) throws DhcpLeaseRepository.DhcpLeaseException { in requestLeaseRenewing() argument 657 return requestLease(macAddr, clientAddr, INETADDR_UNSPEC /* reqAddr */, HOSTNAME_NONE, in requestLeaseRenewing()
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | IpServer.java | 529 @Nullable Inet4Address clientAddr) { in makeServingParams() argument 531 (mInterfaceType == TetheringManager.TETHERING_NCM && clientAddr == null); in makeServingParams() 541 .setSingleClientAddr(clientAddr) in makeServingParams() 553 final Inet4Address clientAddr = clientLinkAddr == null ? null : in startDhcp() local 557 addr /* dnsServer */, serverLinkAddr, clientAddr); in startDhcp() 591 final LinkAddress clientAddr) { in configureDhcp() argument 593 return startDhcp(serverAddr, clientAddr); in configureDhcp() 1026 final Inet4Address clientAddr = mStaticIpv4ClientAddr == null ? null : in handleNewPrefixRequest() local 1029 srvAddr /* dnsServer */, mIpv4Address /* serverLinkAddress */, clientAddr); in handleNewPrefixRequest()
|
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/ |
D | TetheringManagerTest.java | 239 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/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 296 final String clientAddr = "192.0.2.2/28"; in testStaticIpv4() local 298 requestWithStaticIpv4(localAddr, clientAddr), null /* any upstream */); in testStaticIpv4() 310 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4() 741 LinkAddress clientAddr = client == null ? null : new LinkAddress(client); in requestWithStaticIpv4() local 743 .setStaticIpv4Addresses(localAddr, clientAddr) in requestWithStaticIpv4()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 770 final Inet4Address clientAddr = clientInfo.clientAddress; in tetherOffloadRuleClear() local 777 if (Arrays.equals(k.src4, clientAddr.getAddress())) { in tetherOffloadRuleClear() 782 if (Arrays.equals(v.dst46, toIpv4MappedAddressBytes(clientAddr))) { in tetherOffloadRuleClear()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 707 final LinkAddress serverAddr, final LinkAddress clientAddr, final boolean exempt, in createTetheringRequestParcel() argument 712 request.staticClientAddress = clientAddr; in createTetheringRequestParcel()
|