Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java188 public DhcpLease getOffer(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in getOffer() argument
197 final DhcpLease currentLease = findByClient(clientId, hwAddr); in getOffer()
204 newLease = new DhcpLease(clientId, hwAddr, reqAddr, mPrefixLength, expTime, hostname); in getOffer()
207 newLease = makeNewOffer(clientId, hwAddr, expTime, hostname); in getOffer()
223 public DhcpLease getCommittedLease(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in getCommittedLease() argument
226 final DhcpLease newLease = getOffer(clientId, hwAddr, relayAddr, null /* reqAddr */, in getCommittedLease()
249 private DhcpLease findByClient(@Nullable byte[] clientId, @NonNull MacAddress hwAddr) { in findByClient() argument
251 if (lease.matchesClient(clientId, hwAddr)) { in findByClient()
277 public DhcpLease requestLease(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in requestLease() argument
284 final DhcpLease assignedLease = findByClient(clientId, hwAddr); in requestLease()
[all …]
DDhcpLease.java56 public DhcpLease(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in DhcpLease() argument
60 mHwAddr = hwAddr; in DhcpLease()
121 public boolean matchesClient(@Nullable byte[] clientId, @NonNull MacAddress hwAddr) { in matchesClient() argument
125 return clientId == null && mHwAddr.equals(hwAddr); in matchesClient()
173 p.hwAddr = mHwAddr.toByteArray(); in toParcelable()
DDhcpClient.java1543 @NonNull Inet4Address senderIp, final byte[] hwAddr, in transmitPacket() argument
1546 final ByteBuffer packet = ArpPacket.buildArpPacket(DhcpPacket.ETHER_BROADCAST, hwAddr, in transmitPacket()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java275 String hwAddr = cfg.getHardwareAddress(); in toStableParcel() local
276 if (!TextUtils.isEmpty(hwAddr)) { in toStableParcel()
277 cfgParcel.hwAddr = hwAddr; in toStableParcel()
279 cfgParcel.hwAddr = ""; in toStableParcel()
297 cfg.setHardwareAddress(p.hwAddr); in fromStableParcel()
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DSocketUtilsShimImpl.java46 int protocol, int ifIndex, @NonNull byte[] hwAddr) { in makePacketSocketAddress() argument
48 return SocketUtils.makePacketSocketAddress(ifIndex, hwAddr); in makePacketSocketAddress()
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DSocketUtilsShimImpl.java49 int protocol, int ifIndex, @NonNull byte[] hwAddr) { in makePacketSocketAddress() argument
50 return SocketUtils.makePacketSocketAddress(protocol, ifIndex, hwAddr); in makePacketSocketAddress()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DInterfaceControllerTest.java76 assertEquals("", parcel.hwAddr); in testSetIPv4Address()
88 assertEquals("", parcel.hwAddr); in testClearIPv4Address()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseTest.kt99 assertEquals(expected.hwAddr, MacAddress.fromBytes(p.hwAddr)) in assertParcelEquals()
DDhcpLeaseRepositoryTest.java654 p.hwAddr == null ? null : MacAddress.fromBytes(p.hwAddr), in fromParcelable()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/dhcp/
DDhcpLeaseParcelable.aidl21 byte[] hwAddr;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/dhcp/
DDhcpLeaseParcelable.aidl21 byte[] hwAddr;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/dhcp/
DDhcpLeaseParcelable.aidl21 byte[] hwAddr;
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/dhcp/
DDhcpLeaseParcelable.aidl24 byte[] hwAddr;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/dhcp/
DDhcpLeaseParcelable.aidl22 byte[] hwAddr;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/dhcp/
DDhcpLeaseParcelable.aidl23 byte[] hwAddr;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/dhcp/
DDhcpLeaseParcelable.aidl23 byte[] hwAddr;
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DSocketUtilsShim.java36 SocketAddress makePacketSocketAddress(int protocol, int ifIndex, @NonNull byte[] hwAddr); in makePacketSocketAddress() argument
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DInterfaceController.java70 ifConfig.hwAddr = ""; in setInterfaceConfiguration()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java482 macAddress = MacAddress.fromBytes(lease.hwAddr); in onLeasesChanged()
485 + Arrays.toString(lease.hwAddr)); in onLeasesChanged()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2530 final MacAddress macAddress = MacAddress.fromBytes(lease.hwAddr); in toTetheredClients()
2543 final MacAddress hwAddr, final String netAddr, final int prefixLength, in createDhcpLeaseParcelable() argument
2547 lease.hwAddr = hwAddr.toByteArray(); in createDhcpLeaseParcelable()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java8747 cfg.hwAddr = "11:22:33:44:55:66"; in getClatInterfaceConfigParcel()