Home
last modified time | relevance | path

Searched refs:networkName (Results 1 - 19 of 19) sorted by relevance

/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_device_local.c376 RemoveLocalIface(ifInfo[i].networkName); in RemoveSpecifiedLocalIface()
385 if (ifInfo->networkName[0] == '\0' || ifInfo->networkIpAddr[0] == '\0') { in AddLocalIfaceIpChanged()
392 DFINDER_LOGE(TAG, "invalid ip addr of iface %u", ifInfo[i].networkName); in AddLocalIfaceIpChanged()
401 if (AddLocalIface(ifInfo[i].networkName, &ip) != NSTACKX_EOK) { in AddLocalIfaceIpChanged()
402 DFINDER_LOGE(TAG, "create local iface %s failed", ifInfo[i].networkName); in AddLocalIfaceIpChanged()
406 uint8_t curIfaceType = GetIfaceType(ifInfo[i].networkName); in AddLocalIfaceIpChanged()
408 if (strcpy_s(g_localDevice.deviceInfo.networkName, sizeof(g_localDevice.deviceInfo.networkName), in AddLocalIfaceIpChanged()
409 ifInfo[i].networkName) != EOK) { in AddLocalIfaceIpChanged()
410 DFINDER_LOGE(TAG, "copy ifname %s failed", ifInfo[i].networkName); in AddLocalIfaceIpChanged()
[all...]
H A Dnstackx_device_remote.c113 rxIface->localIfInfo.networkName, rxIface->remoteNodeCnt, g_remoteNodeCount); in DestroyRemoteNode()
201 (strcmp(interfaceInfo->networkName, rxIface->localIfInfo.networkName) == 0)) { in FindRxIface()
287 if (strcpy_s(remoteNode->deviceInfo.networkName, NSTACKX_MAX_INTERFACE_NAME_LEN, in CreateRemoteNode()
288 rxIface->localIfInfo.networkName) != EOK) { in CreateRemoteNode()
406 if (strcpy_s(curInfo->networkName, NSTACKX_MAX_INTERFACE_NAME_LEN, in UpdateDeviceInfo()
407 rxIface->localIfInfo.networkName) != EOK) { in UpdateDeviceInfo()
507 rxIface->localIfInfo.networkName); in DestroyOldestRemoteNode()
529 rxIface->localIfInfo.networkName, rxIface->remoteNodeCnt, g_remoteNodeCount); in AddRemoteNodeToList()
754 if (strcmp(rxIface->localIfInfo.networkName, ifNam in DestroyRxIfaceByIfnameInner()
[all...]
H A Dnstackx_device.c116 strcpy_s(info.networkName, NSTACKX_MAX_INTERFACE_NAME_LEN, GetLocalIfaceName(coapCtx->iface)) != EOK) { in UpdateDeviceDbInDeviceList()
287 if (strcpy_s(notifyDevice->networkName, sizeof(notifyDevice->networkName), deviceInfo->networkName) != EOK) { in GetNotifyDeviceInfo()
288 DFINDER_LOGE(TAG, "copy networkName failed"); in GetNotifyDeviceInfo()
H A Dnstackx_common.c836 static bool IsNetworkNameValid(const char *networkName, size_t len) in IsNetworkNameValid() argument
838 if (!StringHasEOF(networkName, len)) { in IsNetworkNameValid()
865 if (!IsNetworkNameValid(ifaces[i].networkName, sizeof(ifaces[i].networkName)) || in CheckInterfaceInfo()
897 if (!IsNetworkNameValid(localDeviceInfo->networkName, sizeof(localDeviceInfo->networkName)) || in CheckLocalDeviceInfo()
931 if (strcpy_s(ifaceInfo.networkName, sizeof(ifaceInfo.networkName), localDeviceInfo->networkName) != EOK || in RegisterDeviceWithDeviceHash()
/foundation/communication/dsoftbus/tests/core/discovery/coap/unittest/
H A Ddisc_nstackx_adapter_test.cpp68 .networkName = "wlan0",
463 * and when NSTACKX_DeviceInfo.networkName are "wlan" and "eth"
475 ret = strcpy_s(testNstackxDevice.networkName, sizeof(testNstackxDevice.networkName), "wlan"); in HWTEST_F()
480 ret = strcpy_s(testNstackxDevice.networkName, sizeof(testNstackxDevice.networkName), "eth"); in HWTEST_F()
/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/src/wifip2pimpl_fuzzer/
H A Dwifip2pimpl_fuzzer.cpp34 std::string networkName = std::string(reinterpret_cast<const char*>(data), size); in RequestServiceTest() local
42 device.SetNetworkName(networkName); in RequestServiceTest()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/interface/
H A Dnstackx.h96 char networkName[NSTACKX_MAX_INTERFACE_NAME_LEN]; member
105 char networkName[NSTACKX_MAX_INTERFACE_NAME_LEN]; member
124 char networkName[NSTACKX_MAX_INTERFACE_NAME_LEN]; member
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/
H A Ddisc_nstackx_adapter.c129 if (strncmp(nstackxDevInfo->networkName, WLAN_IFACE_NAME_PREFIX, strlen(WLAN_IFACE_NAME_PREFIX)) == 0) { in ParseDiscDevInfo()
440 LnnGetLocalStrInfo(STRING_KEY_NET_IF_NAME, g_localDeviceInfo->localIfInfo[0].networkName, in SetLocalDeviceInfo()
441 sizeof(g_localDeviceInfo->localIfInfo[0].networkName)) != SOFTBUS_OK) { in SetLocalDeviceInfo()
626 SOFTBUS_DPRINTF(fd, "localIfInfo networkName : %s\n", g_localDeviceInfo->localIfInfo->networkName); in NstackxLocalDevInfoDump()
628 SOFTBUS_DPRINTF(fd, "networkName : %s\n", g_localDeviceInfo->networkName); in NstackxLocalDevInfoDump()
H A Ddisc_coap_capability.c85 AnonymizeWrapper(anonymizedName), nstackxInfo->networkName, devInfo->capabilityBitmap[0], in DiscCoapProcessDeviceInfo()
/foundation/communication/dsoftbus/tests/core/discovery/dfinder/
H A Dnstackx_test.c164 strcpy_s(localDevInfo->networkName, sizeof(localDevInfo->networkName), NET_WORK_NAME) != EOK || in TestRegisterDeviceInfo()
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifihotspotstub_fuzzer/
H A Dwifihotspotstub_fuzzer.cpp386 std::string networkName = std::string(reinterpret_cast<const char*>(data), size); in WifiHotspotServiceImplFuzzTest() local
389 config.SetPreSharedKey(networkName); in WifiHotspotServiceImplFuzzTest()
397 updateInfo.bssid = networkName; in WifiHotspotServiceImplFuzzTest()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
H A Dnstackx_device.h139 char networkName[NSTACKX_MAX_INTERFACE_NAME_LEN]; member
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifip2pserver_fuzzer/
H A Dwifip2pserver_fuzzer.cpp110 std::string networkName = std::string(reinterpret_cast<const char*>(data), size); in P2pServerFuzzTest() local
118 device.SetNetworkName(networkName); in P2pServerFuzzTest()
/foundation/communication/wifi/wifi/interfaces/inner_api/
H A Dwifi_p2p_msg.h177 networkName(""), in WifiP2pDevice()
228 std::string networkName; /* oper_ssid of peer device */ member in OHOS::Wifi::P2pWfdInfoType::P2pDeviceType::P2pDeviceCapability::P2pGroupCapability::WifiP2pDevice
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/
H A Dcoap_discover.c164 if (strcpy_s(deviceInfo->networkName, sizeof(deviceInfo->networkName), in HndPostServiceDiscoverEx()
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifidevicestub_fuzzer/
H A Dwifidevicestub_fuzzer.cpp765 std::string networkName = "backup"; in DoSomethingDeviceMgrStubTest() local
777 mWifiDeviceMgrServiceImpl.OnExtension(networkName, datas, reply); in DoSomethingDeviceMgrStubTest()
791 std::string networkName = std::string(reinterpret_cast<const char*>(data), size); in WifiDeviceServiceImplTest() local
807 mWifiDeviceServiceImpl.DeregisterAutoJoinCondition(networkName); in WifiDeviceServiceImplTest()
808 mWifiDeviceServiceImpl.DeregisterFilterBuilder(filterTag, networkName); in WifiDeviceServiceImplTest()
809 mWifiDeviceServiceImpl.RegisterAutoJoinCondition(networkName, WifiFuzzTest); in WifiDeviceServiceImplTest()
813 mWifiDeviceServiceImpl.StartRoamToNetwork(networkId, networkName, attemptEnable); in WifiDeviceServiceImplTest()
/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_p2p_msg.cpp98 networkName = name; in SetNetworkName()
103 return networkName; in GetNetworkName()
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifip2pstub_fuzzer/
H A Dwifip2pstub_fuzzer.cpp652 std::string networkName = std::string(reinterpret_cast<const char*>(data), size); in WifiP2pServiceImplFuzzTest() local
660 device.SetNetworkName(networkName); in WifiP2pServiceImplFuzzTest()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
H A Dcoap_discover.c309 if (strcpy_s(deviceInfo->networkName, sizeof(deviceInfo->networkName), in HndPostServiceDiscoverEx()

Completed in 21 milliseconds