Home
last modified time | relevance | path

Searched refs:ETH_ALEN (Results 1 – 25 of 27) sorted by relevance

12

/system/connectivity/wificond/net/
Dmlme_event.h37 const std::array<uint8_t, ETH_ALEN>& GetBSSID() const { return bssid_; } in GetBSSID()
49 std::array<uint8_t, ETH_ALEN> bssid_;
61 const std::array<uint8_t, ETH_ALEN>& GetBSSID() const { return bssid_; } in GetBSSID()
73 std::array<uint8_t, ETH_ALEN> bssid_;
85 const std::array<uint8_t, ETH_ALEN>& GetBSSID() const { return bssid_; } in GetBSSID()
92 std::array<uint8_t, ETH_ALEN> bssid_;
107 std::array<uint8_t, ETH_ALEN> bssid_;
121 std::array<uint8_t, ETH_ALEN> bssid_;
Dnetlink_utils.h39 const std::array<uint8_t, ETH_ALEN>& mac_address) in InterfaceInfo()
48 std::array<uint8_t, ETH_ALEN> mac_address;
203 const std::array<uint8_t, ETH_ALEN>& mac_address,
Dmlme_event.cpp37 array<uint8_t, ETH_ALEN>* bssid) { in GetCommonFields()
Dnetlink_utils.cpp219 array<uint8_t, ETH_ALEN> if_mac_addr; in GetInterfaces()
478 const array<uint8_t, ETH_ALEN>& mac_address, in GetStationInfo()
487 get_station.AddAttribute(NL80211Attr<array<uint8_t, ETH_ALEN>>( in GetStationInfo()
Dnetlink_manager.h119 const std::array<uint8_t, ETH_ALEN>& mac_address)> OnStationEventHandler;
/system/connectivity/wificond/
Dclient_interface_impl.h68 const std::array<uint8_t, ETH_ALEN>& interface_mac_addr,
79 const std::array<uint8_t, ETH_ALEN>& GetMacAddress();
82 bool SetMacAddress(const std::array<uint8_t, ETH_ALEN>& mac);
96 const std::array<uint8_t, ETH_ALEN> interface_mac_addr_;
106 std::array<uint8_t, ETH_ALEN> bssid_;
Dclient_interface_binder.cpp67 const std::array<uint8_t, ETH_ALEN>& mac = impl_->GetMacAddress(); in getMacAddress()
96 if (mac.size() != ETH_ALEN) { in setMacAddress()
101 std::array<uint8_t, ETH_ALEN> mac_array; in setMacAddress()
102 std::copy_n(mac.begin(), ETH_ALEN, mac_array.begin()); in setMacAddress()
Dlogging_utils.h35 static std::string GetMacString(const std::array<uint8_t, ETH_ALEN>& mac_address);
Dlogging_utils.cpp31 string LoggingUtils::GetMacString(const array<uint8_t, ETH_ALEN>& mac_address) { in GetMacString()
Dclient_interface_impl.cpp102 const std::array<uint8_t, ETH_ALEN>& interface_mac_addr, in ClientInterfaceImpl()
235 const std::array<uint8_t, ETH_ALEN>& ClientInterfaceImpl::GetMacAddress() { in GetMacAddress()
239 bool ClientInterfaceImpl::SetMacAddress(const std::array<uint8_t, ETH_ALEN>& mac) { in SetMacAddress()
Dap_interface_impl.h72 const std::array<uint8_t, ETH_ALEN>& mac_address);
Dap_interface_impl.cpp86 const array<uint8_t, ETH_ALEN>& mac_address) { in OnStationEvent()
/system/connectivity/wificond/tests/
Dap_interface_impl_unittest.cpp54 const array<uint8_t, ETH_ALEN> kFakeMacAddress01 = {0x45, 0x54, 0xad, 0x67, 0x98, 0xf6};
55 const array<uint8_t, ETH_ALEN> kFakeMacAddress02 = {0x45, 0x54, 0xad, 0x67, 0x98, 0xf7};
105 array<uint8_t, ETH_ALEN> fake_mac_address_01 = kFakeMacAddress01; in TEST_F()
106 array<uint8_t, ETH_ALEN> fake_mac_address_02 = kFakeMacAddress02; in TEST_F()
137 array<uint8_t, ETH_ALEN> fake_mac_address_01 = kFakeMacAddress01; in TEST_F()
161 array<uint8_t, ETH_ALEN> fake_mac_address_01 = kFakeMacAddress01; in TEST_F()
162 array<uint8_t, ETH_ALEN> fake_mac_address_02 = kFakeMacAddress02; in TEST_F()
183 array<uint8_t, ETH_ALEN> fake_mac_address_01 = kFakeMacAddress01; in TEST_F()
Dmock_client_interface_impl.cpp32 const std::array<uint8_t, ETH_ALEN> kTestInterfaceMacAddress = {0x10, 0x20, 0xfe, 0xae, 0x2d, 0xc2};
44 std::array<uint8_t, ETH_ALEN>(kTestInterfaceMacAddress), in MockClientInterfaceImpl()
Dserver_unittest.cpp57 const std::array<uint8_t, ETH_ALEN> kFakeInterfaceMacAddress = {0x45, 0x54, 0xad, 0x67, 0x98, 0xf6};
58 const std::array<uint8_t, ETH_ALEN> kFakeInterfaceMacAddress1 = {0x05, 0x04, 0xef, 0x27, 0x12, 0xff…
59 const std::array<uint8_t, ETH_ALEN> kFakeInterfaceMacAddressP2p = {0x15, 0x24, 0xef, 0x27, 0x12, 0x…
103 std::array<uint8_t, ETH_ALEN>(kFakeInterfaceMacAddress)),
108 std::array<uint8_t, ETH_ALEN>(kFakeInterfaceMacAddress1)),
113 std::array<uint8_t, ETH_ALEN>(kFakeInterfaceMacAddressP2p))
Dclient_interface_impl_unittest.cpp84 std::array<uint8_t, ETH_ALEN>{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, in SetUp()
116 client_interface_->SetMacAddress(std::array<uint8_t, ETH_ALEN>())); in TEST_F()
123 client_interface_->SetMacAddress(std::array<uint8_t, ETH_ALEN>())); in TEST_F()
131 client_interface_->SetMacAddress(std::array<uint8_t, ETH_ALEN>())); in TEST_F()
139 client_interface_->SetMacAddress(std::array<uint8_t, ETH_ALEN>())); in TEST_F()
145 std::array<uint8_t, ETH_ALEN>{{1, 2, 3, 4, 5, 6}})) in TEST_F()
149 std::array<uint8_t, ETH_ALEN>{{1, 2, 3, 4, 5, 6}})); in TEST_F()
Dscan_result_unittest.cpp39 const array<uint8_t, ETH_ALEN> kFakeBssid = {0x45, 0x54, 0xad, 0x67, 0x98, 0xf6};
56 array<uint8_t, ETH_ALEN> bssid = kFakeBssid; in TEST_F()
Dnetlink_utils_unittest.cpp71 const std::array<uint8_t, ETH_ALEN> kFakeInterfaceMacAddress = {0x45, 0x54, 0xad, 0x67, 0x98, 0xf6};
72 const std::array<uint8_t, ETH_ALEN> kFakeInterfaceMacAddress1 = {0x05, 0x04, 0xef, 0x27, 0x12, 0xff…
375 std::array<uint8_t, ETH_ALEN> if_mac_addr = kFakeInterfaceMacAddress; in TEST_F()
376 NL80211Attr<std::array<uint8_t, ETH_ALEN>> if_mac_attr(NL80211_ATTR_MAC, if_mac_addr); in TEST_F()
414 std::array<uint8_t, ETH_ALEN> if_mac_addr = kFakeInterfaceMacAddress; in TEST_F()
416 NL80211Attr<std::array<uint8_t, ETH_ALEN>>(NL80211_ATTR_MAC, if_mac_addr)); in TEST_F()
445 std::array<uint8_t, ETH_ALEN> if_mac_addr = kFakeInterfaceMacAddress; in TEST_F()
447 NL80211Attr<std::array<uint8_t, ETH_ALEN>>(NL80211_ATTR_MAC, if_mac_addr)); in TEST_F()
463 std::array<uint8_t, ETH_ALEN> if_mac_addr_p2p = kFakeInterfaceMacAddress1; in TEST_F()
465 NL80211Attr<std::array<uint8_t, ETH_ALEN>>(NL80211_ATTR_MAC, if_mac_addr_p2p)); in TEST_F()
/system/connectivity/wificond/scanning/
Dscan_result.cpp37 std::array<uint8_t, ETH_ALEN>& bssid_, in NativeScanResult()
83 if (bssid_vec.size() != ETH_ALEN) { in readFromParcel()
84 LOG(ERROR) << "bssid length expected " << ETH_ALEN << " bytes, but got " in readFromParcel()
88 std::copy_n(bssid_vec.begin(), ETH_ALEN, bssid.begin()); in readFromParcel()
Dscan_result.h41 std::array<uint8_t, ETH_ALEN>& bssid,
57 std::array<uint8_t, ETH_ALEN> bssid;
Dscan_utils.cpp140 array<uint8_t, ETH_ALEN> bssid; in ParseScanResult()
/system/core/libnetutils/
Dpacket.c42 int open_raw_socket(const char* ifname __unused, uint8_t hwaddr[ETH_ALEN], int if_index) { in open_raw_socket() argument
50 .sll_halen = ETH_ALEN, in open_raw_socket()
52 memcpy(bindaddr.sll_addr, hwaddr, ETH_ALEN); in open_raw_socket()
140 destaddr.sll_halen = ETH_ALEN; in send_packet()
141 memcpy(destaddr.sll_addr, "\xff\xff\xff\xff\xff\xff", ETH_ALEN); in send_packet()
Dpacket.h22 int open_raw_socket(const char* ifname, uint8_t hwaddr[ETH_ALEN], int if_index);
Difc_utils.c189 memcpy(ptr, &ifr.ifr_hwaddr.sa_data, ETH_ALEN); in ifc_get_hwaddr()
453 memcpy(&ifr.ifr_hwaddr.sa_data, ptr, ETH_ALEN); in ifc_set_hwaddr()
/system/netd/server/
DInterfaceController.cpp512 unsigned char hwaddr[ETH_ALEN] = {}; in getCfg()
538 memcpy((void*) hwaddr, &ifr.ifr_hwaddr.sa_data, ETH_ALEN); in getCfg()

12