Home
last modified time | relevance | path

Searched refs:IFNAMSIZ (Results 1 – 25 of 52) sorted by relevance

123

/ohos5.0/drivers/hdf_core/framework/model/network/wifi/platform/src/
H A Dhdf_wlan_utils.c77 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 Dwlan_hdi_types.h61 #ifndef IFNAMSIZ
62 #define IFNAMSIZ 16 macro
H A Dwlan_hdi_direct_test.cpp321 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 Dhostapd_client.h28 #define IFNAMSIZ 16 macro
52 char ifName[IFNAMSIZ + 1];
/ohos5.0/drivers/hdf_core/framework/model/usb/include/
H A Dhdf_usb_net_manager.h17 #define IFNAMSIZ 16 macro
57 char name[IFNAMSIZ]; /**< Network device name {@link IFNAMSIZ} */
/ohos5.0/drivers/peripheral/usb/hdf_usb/include/
H A Dhdf_usb_net_manager.h17 #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 Dnet_device_adapter.c222 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 Dwpa_client.h29 #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 Dpan_network.cpp107 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 Dwlan_common_cmd.c302 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 Dwlan_common_fuzzer.cpp127 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 Dhostapd_common_fuzzer.h25 #define IFNAMSIZ 16 macro
H A Dwlan_common_fuzzer.h26 #define IFNAMSIZ 16 macro
/ohos5.0/drivers/peripheral/wlan/client/include/
H A Dwifi_driver_client.h33 #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 Dnet_device_test.c23 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 Dinterface_manager.cpp136 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 Dwrapper_decoder_test.cpp101 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 Dnet_device_adapter.c200 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 Dwifi_common_cmd.h160 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 Dwifi_cmd_client.cpp79 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 Ddhcp_function.cpp194 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 Dwrapper_decoder.cpp76 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 Dsbuf_cmd_adapter.c58 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 Deth_device.c43 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 Dhdf_wifi_cmd.h216 uint8_t ifName[IFNAMSIZ];
221 uint8_t ifName[IFNAMSIZ];

123