/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/mock/ |
H A D | net_ledger_mock.cpp | 58 int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) in LnnSetP2pGoMac() argument 60 return GetNetLedgerInterface()->LnnSetP2pGoMac(info, goMac); in LnnSetP2pGoMac()
|
H A D | net_ledger_mock.h | 31 virtual int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) = 0;
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/ |
H A D | lnn_node_info.c | 477 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 D | lnn_p2p_info.c | 77 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 D | lnn_p2p_info_test.cpp | 80 .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 D | lnn_net_ledger_mock.cpp | 341 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 D | lnn_node_info.h | 94 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 D | wifi_direct_utils.cpp | 532 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 D | wifi_direct_utils.h | 101 static void SyncLnnInfoForP2p(WifiDirectRole role, const std::string &localMac, const std::string &goMac);
|
H A D | wifi_direct_utils.cpp | 544 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 D | p2p_v1_processor.cpp | 1828 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 D | wifi_direct_utils_test.cpp | 333 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 D | lnn_net_ledger_mock.h | 62 virtual int32_t LnnSetP2pGoMac(NodeInfo *info, const char *goMac) = 0;
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/processor/ |
H A D | p2p_v1_processor_test.cpp | 1217 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 D | lnn_disctributed_net_ledger_test.cpp | 339 (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 D | lnn_distributed_net_ledger_manager.c | 1092 LnnSetP2pGoMac(node, info->goMac) != SOFTBUS_OK) { in LnnSetDLP2pInfo()
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/ |
H A D | lnn_lane_test.cpp | 107 .p2pInfo.goMac = "abc",
|