Home
last modified time | relevance | path

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

/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java495 public void onNewPrefixRequest(@NonNull final IpPrefix currentPrefix) { in onNewPrefixRequest() argument
496 Objects.requireNonNull(currentPrefix); in onNewPrefixRequest()
497 sendMessage(CMD_NEW_PREFIX_REQUEST, currentPrefix); in onNewPrefixRequest()
915 private void handleNewPrefixRequest(@NonNull final IpPrefix currentPrefix) { in handleNewPrefixRequest() argument
916 if (!currentPrefix.contains(mIpv4Address.getAddress()) in handleNewPrefixRequest()
917 || currentPrefix.getPrefixLength() != mIpv4Address.getPrefixLength()) { in handleNewPrefixRequest()
918 Log.e(TAG, "Invalid prefix: " + currentPrefix); in handleNewPrefixRequest()
931 if (!mInterfaceCtrl.addAddress(srvAddr, currentPrefix.getPrefixLength())) { in handleNewPrefixRequest()