/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/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 | 573 final MacAddress macAddr = getMacAddr(packet); in processRelease() local 576 mLeaseRepo.releaseLease(clientId, macAddr, packet.mClientIp); in processRelease() 582 final MacAddress macAddr = getMacAddr(packet); in processDecline() local 586 if (!mLeaseRepo.markAndReleaseDeclinedLease(clientId, macAddr, packet.mRequestedIp)) { in processDecline() 764 private boolean addArpEntry(@NonNull MacAddress macAddr, @NonNull Inet4Address inetAddr) { in addArpEntry() argument 766 mDeps.addArpEntry(inetAddr, macAddr, mIfName, mSocket); in addArpEntry()
|
D | DhcpPacket.java | 799 String macAddr = ""; in macToString() local 806 macAddr += hexString.substring(hexString.length() - 2); in macToString() 809 macAddr += ":"; in macToString() 813 return macAddr; in macToString() 817 String macAddr = macToString(mClientMac); in toString() local 819 return macAddr; in toString()
|
D | DhcpClient.java | 568 mHwAddr = mIface.macAddr.toByteArray(); in initInterface()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/util/ |
D | InterfaceParamsTest.java | 52 assertNotNull(ifParams.macAddr); in testLoopback()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | ConnectivityPacketTracker.java | 138 summary = ConnectivityPacketSummary.summarize(mInterface.macAddr, recvbuf, length); in handlePacket()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 435 mClientMac = InterfaceParams.getByName(mIfaceName).macAddr.toByteArray(); 1013 assertNotNull(params.macAddr); 1021 assertNotNull(params.macAddr);
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 471 mHardwareAddress = mInterfaceParams.macAddr.toByteArray(); in maybeStartFilter()
|