Home
last modified time | relevance | path

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

/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;
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_node_info.c477 int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) in LnnSetP2pGoMac() argument
479 if (info == NULL || goMac == NULL) { in LnnSetP2pGoMac()
484 if (strcpy_s(info->p2pInfo.goMac, sizeof(info->p2pInfo.goMac), goMac) != EOK) { in LnnSetP2pGoMac()
497 return info->p2pInfo.goMac; in LnnGetP2pGoMac()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_p2p_info.c77 if (!AddStringToJsonObject(json, JSON_KEY_GO_MAC, info->goMac)) { in LnnGetP2pInfoMsg()
142 if (!JSON_GetStringFromOject(json, JSON_KEY_GO_MAC, info->goMac, sizeof(info->goMac))) { in LnnParseP2pInfoMsg()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/
H A Dlnn_p2p_info_test.cpp80 .goMac = "goMac", in HWTEST_F()
195 .p2pInfo.goMac = "goMac", in HWTEST_F()
241 .p2pInfo.goMac = "goMac", in HWTEST_F()
386 .goMac = "goMac", in HWTEST_F()
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()
/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
245 int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac);
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_utils.cpp532 void WifiDirectUtils::SyncLnnInfoForP2p(WifiDirectRole role, const std::string &localMac, const std::string &goMac) in SyncLnnInfoForP2p() argument
534 CONN_LOGI(CONN_WIFI_DIRECT, "role=%{public}d, localMac=%{public}s, goMac=%{public}s", in SyncLnnInfoForP2p()
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()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils.h101 static void SyncLnnInfoForP2p(WifiDirectRole role, const std::string &localMac, const std::string &goMac);
H A Dwifi_direct_utils.cpp544 void WifiDirectUtils::SyncLnnInfoForP2p(WifiDirectRole role, const std::string &localMac, const std::string &goMac) in SyncLnnInfoForP2p() argument
546 CONN_LOGI(CONN_WIFI_DIRECT, "role=%{public}d, localMac=%{public}s, goMac=%{public}s", in SyncLnnInfoForP2p()
547 role, WifiDirectAnonymizeMac(localMac).c_str(), WifiDirectAnonymizeMac(goMac).c_str()); in SyncLnnInfoForP2p()
558 ret = LnnSetLocalStrInfo(STRING_KEY_P2P_GO_MAC, goMac.c_str()); in SyncLnnInfoForP2p()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/processor/
H A Dp2p_v1_processor.cpp1828 std::string goMac;
1830 InterfaceManager::GetInstance().ReadInterface(InterfaceInfo::P2P, [&goMac](const InterfaceInfo &interface) {
1831 goMac = interface.GetBaseMac();
1834 return goMac;
1836 LinkManager::GetInstance().ForEach([&goMac](InnerLink &link) {
1838 goMac = link.GetRemoteBaseMac();
1843 return goMac;
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils_test.cpp333 const std::string goMac = "11:22:33:44:66"; in HWTEST_F() local
341 WifiDirectUtils::SyncLnnInfoForP2p(role, localMac, goMac); in HWTEST_F()
/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;
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/processor/
H A Dp2p_v1_processor_test.cpp1217 auto goMac = processor.GetGoMac(ct.myRole); in HWTEST_F() local
1218 ASSERT_EQ(goMac, ct.result) << "my role: " << static_cast<int>(ct.myRole) in HWTEST_F()
/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)); in HWTEST_F()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c1092 LnnSetP2pGoMac(node, info->goMac) != SOFTBUS_OK) { in LnnSetDLP2pInfo()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/
H A Dlnn_lane_test.cpp107 .p2pInfo.goMac = "abc",

Completed in 30 milliseconds