Home
last modified time | relevance | path

Searched refs:goMac (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/mock/
H A Dnet_ledger_mock.cpp58 int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) in LnnSetP2pGoMac() argument
60 return GetNetLedgerInterface()->LnnSetP2pGoMac(info, goMac); in LnnSetP2pGoMac()
H A Dnet_ledger_mock.h31 virtual int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) = 0;
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_node_info.c480 int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) in LnnSetP2pGoMac() argument
482 if (info == NULL || goMac == NULL) { in LnnSetP2pGoMac()
487 if (strcpy_s(info->p2pInfo.goMac, sizeof(info->p2pInfo.goMac), goMac) != EOK) { in LnnSetP2pGoMac()
500 return info->p2pInfo.goMac; in LnnGetP2pGoMac()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/
H A Dlnn_p2p_info_test.cpp80 .goMac = "goMac",
195 .p2pInfo.goMac = "goMac",
241 .p2pInfo.goMac = "goMac",
386 .goMac = "goMac",
H A Dlnn_net_ledger_mock.cpp341 int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) in LnnSetP2pGoMac() argument
343 return GetNetLedgerInterface()->LnnSetP2pGoMac(info, goMac); in LnnSetP2pGoMac()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_p2p_info.c78 if (!AddStringToJsonObject(json, JSON_KEY_GO_MAC, info->goMac)) { in LnnGetP2pInfoMsg()
143 if (!JSON_GetStringFromOject(json, JSON_KEY_GO_MAC, info->goMac, sizeof(info->goMac))) { in LnnParseP2pInfoMsg()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h94 char goMac[MAC_LEN]; // the mac of p2p Go device, while local device as Gc role. member
244 int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac);
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils_test.cpp296 const std::string goMac = "11:22:33:44:66"; variable
304 WifiDirectUtils::SyncLnnInfoForP2p(role, localMac, goMac);
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils.cpp536 …tils::SyncLnnInfoForP2p(WifiDirectRole role, const std::string &localMac, const std::string &goMac) in SyncLnnInfoForP2p() argument
539 role, WifiDirectAnonymizeMac(localMac).c_str(), WifiDirectAnonymizeMac(goMac).c_str()); in SyncLnnInfoForP2p()
550 ret = LnnSetLocalStrInfo(STRING_KEY_P2P_GO_MAC, goMac.c_str()); in SyncLnnInfoForP2p()
H A Dwifi_direct_utils.h99 …void SyncLnnInfoForP2p(WifiDirectRole role, const std::string &localMac, const std::string &goMac);
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_utils.cpp532 …tils::SyncLnnInfoForP2p(WifiDirectRole role, const std::string &localMac, const std::string &goMac) in SyncLnnInfoForP2p() argument
535 role, WifiDirectAnonymizeMac(localMac).c_str(), WifiDirectAnonymizeMac(goMac).c_str()); in SyncLnnInfoForP2p()
546 ret = LnnSetLocalStrInfo(STRING_KEY_P2P_GO_MAC, goMac.c_str()); in SyncLnnInfoForP2p()
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/processor/
H A Dp2p_v1_processor.cpp1793 std::string goMac; in GetGoMac() local
1795 …InterfaceManager::GetInstance().ReadInterface(InterfaceInfo::P2P, [&goMac](const InterfaceInfo &in… in GetGoMac()
1796 goMac = interface.GetBaseMac(); in GetGoMac()
1799 return goMac; in GetGoMac()
1801 LinkManager::GetInstance().ForEach([&goMac](InnerLink &link) { in GetGoMac()
1803 goMac = link.GetRemoteBaseMac(); in GetGoMac()
1808 return goMac; in GetGoMac()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_ledger_mock.h62 virtual int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) = 0;
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/processor/
H A Dp2p_v1_processor_test.cpp1217 auto goMac = processor.GetGoMac(ct.myRole); variable
1218 ASSERT_EQ(goMac, ct.result) << "my role: " << static_cast<int>(ct.myRole)
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_disctributed_net_ledger_test.cpp339 (void)strncpy_s(info.goMac, MAC_LEN, GO_MAC, strlen(GO_MAC));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c1071 LnnSetP2pGoMac(node, info->goMac) != SOFTBUS_OK) { in LnnSetDLP2pInfo()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/
H A Dlnn_lane_test.cpp107 .p2pInfo.goMac = "abc",