/packages/modules/NetworkStack/common/moduleutils/src/android/net/util/ |
D | InterfaceParams.java | 40 public final MacAddress macAddr; field in InterfaceParams 53 final MacAddress macAddr = getMacAddress(netif); in getByName() 56 return new InterfaceParams(name, netif.getIndex(), macAddr, netif.getMTU()); in getByName() 62 public InterfaceParams(String name, int index, MacAddress macAddr) { in InterfaceParams() argument 63 this(name, index, macAddr, ETHER_MTU); in InterfaceParams() 66 public InterfaceParams(String name, int index, MacAddress macAddr, int defaultMtu) { in InterfaceParams() argument 75 this.hasMacAddress = (macAddr != null); in InterfaceParams() 76 this.macAddr = hasMacAddress ? macAddr : MacAddress.fromBytes(new byte[] { in InterfaceParams() 83 return String.format("%s/%d/%s/%d", name, index, macAddr, defaultMtu); in toString()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpLeaseRepositoryTest.java | 221 for (final MacAddress macAddr : new MacAddress[] { TEST_MAC_1, TEST_MAC_2, TEST_MAC_3 }) { in testGetOffer_StableAddress() 222 final DhcpLease lease = mRepo.getOffer(CLIENTID_UNSPEC, macAddr, in testGetOffer_StableAddress() 226 final DhcpLease newLease = mRepo.getOffer(CLIENTID_UNSPEC, macAddr, in testGetOffer_StableAddress() 575 private DhcpLease requestLease(@NonNull MacAddress macAddr, @NonNull Inet4Address clientAddr, in requestLease() argument 578 return mRepo.requestLease(CLIENTID_UNSPEC, macAddr, clientAddr, in requestLease() 586 private DhcpLease requestLeaseSelecting(@NonNull MacAddress macAddr, in requestLeaseSelecting() argument 589 return requestLease(macAddr, IPV4_ADDR_ANY /* clientAddr */, reqAddr, hostname, in requestLeaseSelecting() 596 private DhcpLease requestLeaseSelecting(@NonNull MacAddress macAddr, in requestLeaseSelecting() argument 598 return requestLeaseSelecting(macAddr, reqAddr, HOSTNAME_NONE); in requestLeaseSelecting() 604 private DhcpLease requestLeaseInitReboot(@NonNull MacAddress macAddr, in requestLeaseInitReboot() argument [all …]
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/ |
D | IpNeighborMonitor.java | 84 final MacAddress macAddr; field in IpNeighborMonitor.NeighborEvent 87 short nudState, MacAddress macAddr) { in NeighborEvent() argument 93 this.macAddr = macAddr; in NeighborEvent() 112 .add("[" + macAddr + "]") in toString()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 830 && Arrays.equals(TEST_IFACE_PARAMS.macAddr.toByteArray(), parcel.srcL2Address) in matches() 850 (Inet6Address) dst, TEST_IFACE_PARAMS.macAddr, dstMac); in makeForwardingRule() 862 TEST_IFACE_PARAMS.macAddr, ETH_P_IPV6, NetworkStackConstants.ETHER_MTU); in makeDownstream6Value() 933 TEST_IFACE_PARAMS.macAddr); in verifyStartUpstreamIpv6Forwarding() 944 TEST_IFACE_PARAMS.macAddr); in verifyStopUpstreamIpv6Forwarding() 1015 UPSTREAM_IFINDEX, UPSTREAM_IFACE_PARAMS.macAddr, neighA, macA); in addRemoveipv6ForwardingRules() 1023 UPSTREAM_IFINDEX, UPSTREAM_IFACE_PARAMS.macAddr, neighB, macB); in addRemoveipv6ForwardingRules() 1039 UPSTREAM_IFINDEX, UPSTREAM_IFACE_PARAMS.macAddr, neighA, macNull); in addRemoveipv6ForwardingRules() 1048 UPSTREAM_IFINDEX, UPSTREAM_IFACE_PARAMS.macAddr, neighB, macNull); in addRemoveipv6ForwardingRules() 1064 UPSTREAM_IFINDEX, UPSTREAM_IFACE_PARAMS.macAddr, neighA, macA); in addRemoveipv6ForwardingRules() [all …]
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | ConnectivityPacketSummary.java | 105 public static String summarize(MacAddress macAddr, byte[] buffer, int length) { in summarize() argument 106 if ((macAddr == null) || (buffer == null)) return null; in summarize() 108 return (new ConnectivityPacketSummary(macAddr, buffer, length)).toString(); in summarize() 111 private ConnectivityPacketSummary(MacAddress macAddr, byte[] buffer, int length) { in ConnectivityPacketSummary() argument 112 mHwAddr = macAddr.toByteArray(); in ConnectivityPacketSummary()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpServer.java | 574 final MacAddress macAddr = getMacAddr(packet); in processRelease() local 577 mLeaseRepo.releaseLease(clientId, macAddr, packet.mClientIp); in processRelease() 583 final MacAddress macAddr = getMacAddr(packet); in processDecline() local 587 if (!mLeaseRepo.markAndReleaseDeclinedLease(clientId, macAddr, packet.mRequestedIp)) { in processDecline() 765 private boolean addArpEntry(@NonNull MacAddress macAddr, @NonNull Inet4Address inetAddr) { in addArpEntry() argument 767 mDeps.addArpEntry(inetAddr, macAddr, mIfName, mSocket); in addArpEntry()
|
D | DhcpPacket.java | 864 String macAddr = ""; in macToString() local 871 macAddr += hexString.substring(hexString.length() - 2); in macToString() 874 macAddr += ":"; in macToString() 878 return macAddr; in macToString() 882 String macAddr = macToString(mClientMac); in toString() local 884 return macAddr; in toString()
|
D | DhcpClient.java | 601 mHwAddr = mIface.macAddr.toByteArray(); in initInterface()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | ConnectedClientsTrackerTest.kt | 152 private fun makeWifiClient(macAddr: MacAddress): WifiClient { in makeWifiClient() 154 return mock(WifiClient::class.java).apply { doReturn(macAddr).`when`(this).macAddress } in makeWifiClient()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/util/ |
D | InterfaceParamsTest.java | 52 assertNotNull(ifParams.macAddr); in testLoopback()
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | IpServer.java | 934 MacAddress dstMac = e.isValid() ? e.macAddr : NULL_MAC_ADDRESS; in updateIpv6ForwardingRules() 936 mInterfaceParams.index, (Inet6Address) e.ip, mInterfaceParams.macAddr, dstMac); in updateIpv6ForwardingRules() 959 final MacAddress clientMac = e.isValid() ? e.macAddr : NULL_MAC_ADDRESS; in updateClientInfoIpv4() 961 mInterfaceParams.macAddr, (Inet4Address) e.ip, clientMac); in updateClientInfoIpv4()
|
D | RouterAdvertisementDaemon.java | 313 putSlla(ra, mInterface.macAddr.toByteArray()); in assembleRaLocked()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | ConnectivityPacketTracker.java | 138 summary = ConnectivityPacketSummary.summarize(mInterface.macAddr, recvbuf, length); in handlePacket()
|
D | IpClient.java | 1523 final ByteBuffer packet = NeighborAdvertisement.build(mInterfaceParams.macAddr, dstMac, in sendGratuitousNA() 1534 mInterfaceParams.macAddr.toByteArray() /* srcMac */, in sendGratuitousARP() 1583 + mInterfaceParams.macAddr); in maybeSendGratuitousARP()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/ |
D | DadProxyTest.java | 241 buf.put(ifaceParams.macAddr.toByteArray()); in updateSrcMac()
|
D | RouterAdvertisementDaemonTest.java | 300 final MacAddress srcMac = mTetheredParams.macAddr; in createRsPacket()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiNative.java | 2295 public void startTdls(@NonNull String ifaceName, String macAddr, boolean enable) { 2297 mSupplicantStaIfaceHal.initiateTdlsDiscover(ifaceName, macAddr); 2298 mSupplicantStaIfaceHal.initiateTdlsSetup(ifaceName, macAddr); 2300 mSupplicantStaIfaceHal.initiateTdlsTeardown(ifaceName, macAddr);
|
D | SupplicantStaIfaceHal.java | 2057 byte[/* 6 */] macAddr) -> { in getMacAddress() 2059 gotMac.value = NativeUtil.macAddressFromByteArray(macAddr); in getMacAddress()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 1441 MacAddress macAddr = mPeerIdToMacMap.get(peerId); in answer() local 1442 if (macAddr != null) { in answer() 1443 macBytes = macAddr.toByteArray(); in answer()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTestCommon.java | 1209 assertNotNull(params.macAddr); 1217 assertNotNull(params.macAddr);
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 472 mHardwareAddress = mInterfaceParams.macAddr.toByteArray(); in maybeStartFilter()
|