Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java54 public final LinkAddress serverAddr; field in DhcpServingParams
96 private DhcpServingParams(@NonNull LinkAddress serverAddr, in DhcpServingParams() argument
100 this.serverAddr = serverAddr; in DhcpServingParams()
118 final LinkAddress serverAddr = new LinkAddress( in fromParcelableObject() local
119 intToInet4AddressHTH(parcel.serverAddr), in fromParcelableObject()
122 .setServerAddr(serverAddr) in fromParcelableObject()
146 return (Inet4Address) serverAddr.getAddress(); in getServerInet4Addr()
156 return getPrefixMaskAsInet4Address(serverAddr.getPrefixLength()); in getPrefixMaskAsAddress()
168 getServerInet4Addr(), serverAddr.getPrefixLength()); in getBroadcastAddress()
189 public Builder setServerAddr(@NonNull LinkAddress serverAddr) { in setServerAddr() argument
[all …]
DDhcpServer.java193 DhcpServingParams.makeIpPrefix(servingParams.serverAddr), in makeLeaseRepository()
319 DhcpServingParams.makeIpPrefix(mServingParams.serverAddr), in handleMessage()
361 if (sid != null && !sid.equals(mServingParams.serverAddr.getAddress())) { in processPacket()
481 getPrefixMaskAsInet4Address(mServingParams.serverAddr.getPrefixLength()); in transmitOffer()
483 mServingParams.getServerInet4Addr(), mServingParams.serverAddr.getPrefixLength()); in transmitOffer()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java98 assertEquals(TEST_LINKADDR, params.serverAddr); in testBuild_Immutable()
176 parcel.serverAddr = inet4AddressToIntHTH(TEST_SERVER_ADDR); in testFromParcelableObject()
186 assertEquals(params.serverAddr, parceled.serverAddr); in testFromParcelableObject()