/ohos5.0/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_utils.c | 77 char ifName[IFNAMSIZ] = ""; in RenewNetDevice() 89 if (strcpy_s(ifName, IFNAMSIZ, (*netDev)->name) != EOK) { in RenewNetDevice() 145 char ifName[IFNAMSIZ] = {0}; in AllocPlatformNetDevice() 169 ret = GetPlatformIfName(id, ifName, IFNAMSIZ); in AllocPlatformNetDevice() 258 bufferSize = IFNAMSIZ * (uint32_t)(*ifNameCount); in HdfWlanGetIfNames() 272 ret = GetPlatformIfName(i, ifNames + (j * IFNAMSIZ), IFNAMSIZ); in HdfWlanGetIfNames()
|
/ohos5.0/drivers/peripheral/wlan/test/hdi_service/ |
H A D | wlan_hdi_types.h | 61 #ifndef IFNAMSIZ 62 #define IFNAMSIZ 16 macro
|
H A D | wlan_hdi_direct_test.cpp | 321 char ifNames[IFNAMSIZ] = {0}; 323 int32_t rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, nullptr, IFNAMSIZ, &num); 325 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, nullptr); 327 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, &num); 340 char ifNames[IFNAMSIZ] = {0}; 344 int32_t rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, nullptr, ifNames, IFNAMSIZ); 347 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ); 350 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, nullptr, IFNAMSIZ); 352 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
|
/ohos5.0/drivers/peripheral/wlan/hostapd/client/include/ |
H A D | hostapd_client.h | 28 #define IFNAMSIZ 16 macro 52 char ifName[IFNAMSIZ + 1];
|
/ohos5.0/drivers/hdf_core/framework/model/usb/include/ |
H A D | hdf_usb_net_manager.h | 17 #define IFNAMSIZ 16 macro 57 char name[IFNAMSIZ]; /**< Network device name {@link IFNAMSIZ} */
|
/ohos5.0/drivers/peripheral/usb/hdf_usb/include/ |
H A D | hdf_usb_net_manager.h | 17 #define IFNAMSIZ 16 macro 57 char name[IFNAMSIZ]; /**< Network device name {@link IFNAMSIZ} */
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/network/src/ |
H A D | net_device_adapter.c | 222 if (strncpy_s(lwipNf->name, IFNAMSIZ, netDev->name, IFNAMSIZ - FREE_SPACE_SIZE) != EOK) { in CreateLwipNetIf() 227 lwipNf->name[IFNAMSIZ - FREE_SPACE_SIZE] = '\0'; in CreateLwipNetIf() 277 … if (strncpy_s(lwipNf->full_name, IFNAMSIZ, lwipNd->name, IFNAMSIZ - FREE_SPACE_SIZE) != EOK) { in AddP2pNetDev() 281 lwipNf->full_name[IFNAMSIZ - FREE_SPACE_SIZE] = '\0'; in AddP2pNetDev() 321 …int32_t num = snprintf_s(lwipNd->name, IFNAMSIZ, (IFNAMSIZ - 1), "%s%" U16_F, lwipNf->name, lwipNf… in LiteNetDevAdd()
|
/ohos5.0/drivers/peripheral/wlan/wpa/client/include/ |
H A D | wpa_client.h | 29 #ifndef IFNAMSIZ 30 #define IFNAMSIZ 16 macro 227 char ifName[IFNAMSIZ + 1];
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/ |
H A D | pan_network.cpp | 107 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, PAN_NETWORK_NAME, strlen(PAN_NETWORK_NAME)) != EOK) { in TunSetIff() 128 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, PAN_NETWORK_NAME, strlen(PAN_NETWORK_NAME)) != EOK) { in SetMacAddress() 166 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, PAN_NETWORK_NAME, strlen(PAN_NETWORK_NAME)) != EOK) { in SetIpAddress() 213 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, PAN_NETWORK_NAME, strlen(PAN_NETWORK_NAME)) != EOK) { in SetIffUp() 238 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, PAN_NETWORK_NAME, strlen(PAN_NETWORK_NAME)) != EOK) { in SetIffdown()
|
/ohos5.0/drivers/peripheral/wlan/hdi_service/service_common/ |
H A D | wlan_common_cmd.c | 302 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetChipId() 327 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetDeviceMacAddress() 410 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetFreqsWithBand() 477 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetNetworkIfaceName() 1054 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceSetMacAddress() 1101 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceSetTxPower() 1146 IFNAMSIZ) != EOK) { in WlanInterfaceGetNetDevInfo() 1150 netDeviceInfoResult->deviceInfos[i].ifNameLen = IFNAMSIZ; in WlanInterfaceGetNetDevInfo() 1490 ret = strcpy_s((g_staFeature->baseFeature).ifName, IFNAMSIZ, ifName); in WlanInterfaceStartPnoScan() 1519 ret = strcpy_s((g_staFeature->baseFeature).ifName, IFNAMSIZ, ifName); in WlanInterfaceStopPnoScan() [all …]
|
/ohos5.0/drivers/peripheral/wlan/test/fuzztest/ |
H A D | wlan_common_fuzzer.cpp | 127 char ifNames[IFNAMSIZ] = {0}; in FuzzGetNetworkIfaceName() 132 interface->GetNetworkIfaceName(interface, &feature, ifNames, IFNAMSIZ); in FuzzGetNetworkIfaceName() 184 char ifNames[IFNAMSIZ] = {0}; in FuzzGetIfNamesByChipId() 187 interface->GetIfNamesByChipId(interface, chipId, ifNames, IFNAMSIZ, &num); in FuzzGetIfNamesByChipId()
|
H A D | hostapd_common_fuzzer.h | 25 #define IFNAMSIZ 16 macro
|
H A D | wlan_common_fuzzer.h | 26 #define IFNAMSIZ 16 macro
|
/ohos5.0/drivers/peripheral/wlan/client/include/ |
H A D | wifi_driver_client.h | 33 #ifndef IFNAMSIZ 34 #define IFNAMSIZ 16 macro 222 char name[IFNAMSIZ]; 253 char ifName[IFNAMSIZ]; 548 uint8_t ifName[IFNAMSIZ]; 553 uint8_t ifName[IFNAMSIZ];
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/netdevice/ |
H A D | net_device_test.c | 23 char devName[IFNAMSIZ] = {0}; in WiFiNetDeviceTestEnv() 24 if (strncpy_s(devName, IFNAMSIZ, "wlan_test_0", strlen("wlan_test_0") + 1) != EOK) { in WiFiNetDeviceTestEnv()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | interface_manager.cpp | 136 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, interfaceName, strlen(interfaceName)) != EOK) { in SetMtu() 300 strncpy_s(ifr.ifr_name, IFNAMSIZ, ifName.c_str(), ifName.length()); in GetIfaceConfig() 323 …if (strncpy_s(ifr.ifr_name, IFNAMSIZ, ifaceConfig.ifName.c_str(), ifaceConfig.ifName.length()) != … in SetIfaceConfig() 381 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, ifaceName.c_str(), strlen(ifaceName.c_str())) != EOK) { in SetIpAddress() 411 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, ifaceName.c_str(), strlen(ifaceName.c_str())) != EOK) { in SetIffUp()
|
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_wrapper_test/ |
H A D | wrapper_decoder_test.cpp | 101 RTA_ALIGN(sizeof(struct rtattr)) + IFNAMSIZ]; 125 prtattr->rta_len = sizeof(struct rtattr) + IFNAMSIZ; 126 ASSERT_EQ(strcpy_s(&binarydata[sizeof(binarydata) - IFNAMSIZ], IFNAMSIZ, "ifacename"), 0); 144 …ASSERT_EQ(strcpy_s(&binarydata[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + 28], IFNAMSIZ, "testDevName"…
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/network/src/ |
H A D | net_device_adapter.c | 200 if (strncpy_s(lwipNf->name, IFNAMSIZ, netDev->name, IFNAMSIZ - FREE_SPACE_SIZE) != EOK) { in CreateLwipNetIf() 205 lwipNf->name[IFNAMSIZ - FREE_SPACE_SIZE] = '\0'; in CreateLwipNetIf() 281 …int32_t num = snprintf_s(lwipNd->name, IFNAMSIZ, (IFNAMSIZ - 1), "%s%" U16_F, lwipNf->name, lwipNf… in LiteNetDevAdd()
|
/ohos5.0/drivers/peripheral/wlan/client/src/ |
H A D | wifi_common_cmd.h | 160 char ifName[IFNAMSIZ + 1]; 165 char ifName[IFNAMSIZ + 1];
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_cmd_client.cpp | 79 if (ifName.size() + 1 > IFNAMSIZ) { in SendCommandToDriverByInterfaceName() 107 if (memcpy_s(ifr.ifr_name, IFNAMSIZ, ifName.c_str(), ifName.size() + 1) != EOK) { in SendCommandToDriverByInterfaceName()
|
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_function.cpp | 194 if (strncpy_s(iface.ifr_name, IFNAMSIZ, strInf.c_str(), IFNAMSIZ - 1) != EOK) { in GetLocalIp() 198 iface.ifr_name[IFNAMSIZ - 1] = 0; in GetLocalIp() 239 if (strncpy_s(ifr.ifr_name, IFNAMSIZ, ethInf.c_str(), IFNAMSIZ - 1) != EOK) { in GetLocalMac()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | wrapper_decoder.cpp | 76 char indevName[IFNAMSIZ]; 77 char outdevName[IFNAMSIZ]; 332 char interfaceName[IFNAMSIZ] = ""; in InterpreteAddressMsg() 448 char device[IFNAMSIZ] = {0}; in InterpreteRtMsg()
|
/ohos5.0/drivers/peripheral/wlan/client/src/sbuf/ |
H A D | sbuf_cmd_adapter.c | 58 if (strncpy_s(result->infos[i].name, IFNAMSIZ, ifName, strlen(ifName)) != EOK) { in ParserNetworkInfo() 614 *ifNames = (char *)calloc(*num, IFNAMSIZ); in GetIfNames() 621 replayDataSize < (*num * IFNAMSIZ)) { in GetIfNames() 629 …if (memcpy_s(*ifNames + i * IFNAMSIZ, IFNAMSIZ, replayData + i * IFNAMSIZ, replayDataSize) != EOK)… in GetIfNames()
|
/ohos5.0/drivers/hdf_core/framework/model/network/ethernet/src/ |
H A D | eth_device.c | 43 char ethIfName[IFNAMSIZ] = {0}; in CreateEthDevice() 54 ret = GetEthIfName(configEthDevList, ethIfName, IFNAMSIZ); in CreateEthDevice()
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/include/ |
H A D | hdf_wifi_cmd.h | 216 uint8_t ifName[IFNAMSIZ]; 221 uint8_t ifName[IFNAMSIZ];
|