/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/ |
H A D | lnn_net_builder.h | 118 char masterUdid[UDID_BUF_LEN]; member 159 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight); 180 void UpdateLocalMasterNode(bool isCurrentNode, const char *masterUdid, int32_t weight);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/src/ |
H A D | hb_fsm_mock.cpp | 56 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument 58 … return HeartBeatFSMInterfaceInstance()->LnnNotifyMasterElect(networkId, masterUdid, masterWeight); in LnnNotifyMasterElect()
|
H A D | hb_strategy_mock.cpp | 56 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument 58 return HeartBeatStrategyInterface()->LnnNotifyMasterElect(networkId, masterUdid, masterWeight); in LnnNotifyMasterElect()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder.c | 142 void UpdateLocalMasterNode(bool isCurrentNode, const char *masterUdid, int32_t weight) in UpdateLocalMasterNode() argument 144 if (LnnSetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid) != SOFTBUS_OK) { in UpdateLocalMasterNode() 151 LnnNotifyMasterNodeChanged(isCurrentNode, masterUdid, weight); in UpdateLocalMasterNode() 167 char masterUdid[UDID_BUF_LEN] = { 0 }; in SyncElectMessage() local 180 if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid, UDID_BUF_LEN) != SOFTBUS_OK || in SyncElectMessage() 190 if (!AddStringToJsonObject(json, JSON_KEY_MASTER_UDID, masterUdid) || in SyncElectMessage() 803 !JSON_GetStringFromOject(json, JSON_KEY_MASTER_UDID, para->masterUdid, UDID_BUF_LEN)) { in OnReceiveMasterElectMsg() 1158 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument 1166 if (networkId == NULL || masterUdid == NULL) { in LnnNotifyMasterElect() 1176 strncpy_s(para->masterUdid, UDID_BUF_LEN, masterUdid, strlen(masterUdid)) != EOK) { in LnnNotifyMasterElect()
|
H A D | lnn_net_builder_init.c | 408 char masterUdid[UDID_BUF_LEN] = { 0 }; in TryElectAsMasterState() local 410 if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid, UDID_BUF_LEN) != SOFTBUS_OK) { in TryElectAsMasterState() 422 if (strcmp(masterUdid, peerUdid) != 0) { in TryElectAsMasterState() 426 Anonymize(masterUdid, &anonyMasterUdid); in TryElectAsMasterState()
|
H A D | lnn_net_builder_process.c | 603 msgPara->masterWeight, msgPara->masterUdid); in ProcessMasterElect() 607 UpdateLocalMasterNode(false, msgPara->masterUdid, msgPara->masterWeight); in ProcessMasterElect()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/ |
H A D | trans_link_listener.c | 64 …TransOnLinkDown(nodeInfo.networkId, nodeInfo.uuid, nodeInfo.masterUdid, peerIp, COMBINE_TYPE(WIFI_… in OnWifiDirectDeviceOffLine()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/include/ |
H A D | hb_fsm_mock.h | 39 …virtual int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t master…
|
H A D | hb_strategy_mock.h | 39 …virtual int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t master…
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_medium_mgr.c | 971 char masterUdid[UDID_BUF_LEN] = { 0 }; in HbMediumMgrRecvHigherWeight() local 986 …if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid, sizeof(masterUdid)) != SOFTBUS_OK)… in HbMediumMgrRecvHigherWeight() 990 isFromMaster = strcmp(masterUdid, nodeInfo.deviceInfo.deviceUdid) == 0 ? true : false; in HbMediumMgrRecvHigherWeight() 1002 Anonymize(masterUdid, &anonyMasterUdid); in HbMediumMgrRecvHigherWeight()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/ |
H A D | lnn_node_info.c | 199 return info->masterUdid; in LnnGetMasterUdid() 208 if (strncpy_s(info->masterUdid, UDID_BUF_LEN, udid, strlen(udid)) != EOK) { in LnnSetMasterUdid()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
H A D | lnn_distributed_net_ledger_manager.c | 194 const char *masterUdid = NULL; in DlGetMasterUdid() local 200 masterUdid = LnnGetMasterUdid(info); in DlGetMasterUdid() 201 if (masterUdid == NULL) { in DlGetMasterUdid() 205 if (strncpy_s((char*)buf, len, masterUdid, strlen(masterUdid)) != EOK) { in DlGetMasterUdid()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/ |
H A D | lnn_node_info.h | 136 char masterUdid[UDID_BUF_LEN]; member
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/ |
H A D | trans_channel_common.c | 459 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in TransBuildTransOpenChannelStartEvent() 460 extra->localUdid = nodeInfo->masterUdid; in TransBuildTransOpenChannelStartEvent()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/ |
H A D | trans_udp_negotiation.c | 647 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in ReportUdpRequestHandShakeStartEvent() 648 extra->localUdid = nodeInfo->masterUdid; in ReportUdpRequestHandShakeStartEvent()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/ |
H A D | lnn_local_net_ledger.c | 2319 const char* masterUdid = g_localNetLedger.localInfo.masterUdid; in LnnIsMasterNode() local 2321 ret = strncmp(masterUdid, deviceUdid, strlen(deviceUdid)) == 0; in LnnIsMasterNode()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_message.c | 830 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in ReportTransEventExtra() 831 extra->localUdid = nodeInfo->masterUdid; in ReportTransEventExtra()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common/ |
H A D | trans_lane_common_test.cpp | 717 (void)memcpy_s(nodeInfo.masterUdid, TEST_LEN, TEST_IP, TEST_LEN);
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_session_json.c | 1414 if (!JSON_AddStringToObject(json, MASTER_UDID, info->masterUdid) || in PackCommon() 1570 if (!JSON_GetStringFromOject(json, MASTER_UDID, info->masterUdid, UDID_BUF_LEN) || in UnpackCommon()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_manager.c | 1137 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in FillProxyHandshakeExtra() 1138 extra->localUdid = nodeInfo->masterUdid; in FillProxyHandshakeExtra()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/ |
H A D | trans_tcp_direct_message_append_test.cpp | 1690 (void)memcpy_s(nodeInfo.masterUdid, UDID_BUF_LEN, IP, UDID_BUF_LEN);
|