/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/Mock/wlan/hostapd/v1_0/ |
H A D | ihostapd_callback.h | 64 int32_t (*OnEventStaJoin)(struct IHostapdCallback *self, const struct HdiApCbParm* apCbParm, const char* ifName);
66 int32_t (*OnEventApState)(struct IHostapdCallback *self, const struct HdiApCbParm* apCbParm, const char* ifName);
68 int32_t (*OnEventHostApdNotify)(struct IHostapdCallback *self, const char* notifyParam, const char* ifName);
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/Mock/v1_0/ |
H A D | ihostapd_callback.h | 64 int32_t (*OnEventStaJoin)(struct IHostapdCallback *self, const struct HdiApCbParm* apCbParm, const char* ifName);
66 int32_t (*OnEventApState)(struct IHostapdCallback *self, const struct HdiApCbParm* apCbParm, const char* ifName);
68 int32_t (*OnEventHostApdNotify)(struct IHostapdCallback *self, const char* notifyParam, const char* ifName);
|
/foundation/communication/netmanager_base/services/netsyscontroller/include/ |
H A D | mock_netsys_native_client.h | 127 * @param ifName Network port device name 132 int32_t NetworkAddRoute(int32_t netId, const std::string &ifName, const std::string &destination, 139 * @param ifName Network port device name 144 int32_t NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::string &destination, 166 * @param ifName Network port device name 168 void ClearInterfaceAddrs(const std::string &ifName); 173 * @param ifName Network port device name 176 int32_t GetInterfaceMtu(const std::string &ifName); 181 * @param ifName Network port device name 185 int32_t SetInterfaceMtu(const std::string &ifName, int32_ [all...] |
H A D | netsys_controller_service_impl.h | 91 * @param ifName Network port device name 96 int32_t NetworkAddRoute(int32_t netId, const std::string &ifName, const std::string &destination, 103 * @param ifName Network port device name 108 int32_t NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::string &destination, 146 * @param ifName Network port device name 148 void ClearInterfaceAddrs(const std::string &ifName) override; 153 * @param ifName Network port device name 156 int32_t GetInterfaceMtu(const std::string &ifName) override; 161 * @param ifName Network port device name 165 int32_t SetInterfaceMtu(const std::string &ifName, int32_ [all...] |
H A D | i_netsys_controller_service.h | 117 * @param ifName Network port device name 122 virtual int32_t NetworkAddRoute(int32_t netId, const std::string &ifName, const std::string &destination, 129 * @param ifName Network port device name 134 virtual int32_t NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::string &destination, 172 * @param ifName Network port device name 174 virtual void ClearInterfaceAddrs(const std::string &ifName) = 0; 179 * @param ifName Network port device name 182 virtual int32_t GetInterfaceMtu(const std::string &ifName) = 0; 187 * @param ifName Network port device name 191 virtual int32_t SetInterfaceMtu(const std::string &ifName, int32_ [all...] |
H A D | netsys_controller.h | 101 * @param ifName Network port device name 106 int32_t NetworkAddRoute(int32_t netId, const std::string &ifName, const std::string &destination, 113 * @param ifName Network port device name 118 int32_t NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::string &destination, 156 * @param ifName Network port device name 158 void ClearInterfaceAddrs(const std::string &ifName); 163 * @param ifName Network port device name 166 int32_t GetInterfaceMtu(const std::string &ifName); 171 * @param ifName Network port device name 175 int32_t SetInterfaceMtu(const std::string &ifName, int32_ [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/ |
H A D | hal_device_manage_test.h | 123 virtual int32_t SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf)
in SendCmdToDriver() argument 127 virtual int32_t SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData)
in SendActionFrame() argument 131 virtual int32_t RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match)
in RegisterActionFrameReceiver() argument 135 virtual int32_t GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf)
in GetCoexictenceChannelList() argument 217 virtual int32_t CreateExtService(const std::string& ifName, sptr<IChipIface>& iface)
in CreateExtService() argument 221 virtual int32_t GetExtService(const std::string& ifName, sptr<IChipIface>& iface)
in GetExtService() argument 225 virtual int32_t RemoveExtService(const std::string& ifName)
in RemoveExtService() argument
|
/foundation/communication/netmanager_base/services/netsyscontroller/src/ |
H A D | netsys_native_client.cpp | 58 const std::string &ifName, int flags, in OnInterfaceAddressUpdated() 66 (*cb)->OnInterfaceAddressUpdated(addr, ifName, flags, scope); in OnInterfaceAddressUpdated() 74 const std::string &ifName, int flags, in OnInterfaceAddressRemoved() 82 (*cb)->OnInterfaceAddressRemoved(addr, ifName, flags, scope); in OnInterfaceAddressRemoved() 89 int32_t NetsysNativeClient::NativeNotifyCallback::OnInterfaceAdded(const std::string &ifName) in OnInterfaceAdded() argument 96 (*cb)->OnInterfaceAdded(ifName); in OnInterfaceAdded() 103 int32_t NetsysNativeClient::NativeNotifyCallback::OnInterfaceRemoved(const std::string &ifName) in OnInterfaceRemoved() argument 110 (*cb)->OnInterfaceRemoved(ifName); in OnInterfaceRemoved() 117 int32_t NetsysNativeClient::NativeNotifyCallback::OnInterfaceChanged(const std::string &ifName, bool up) in OnInterfaceChanged() argument 124 (*cb)->OnInterfaceChanged(ifName, u in OnInterfaceChanged() 57 OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, int scope) OnInterfaceAddressUpdated() argument 73 OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, int scope) OnInterfaceAddressRemoved() argument 131 OnInterfaceLinkStateChanged(const std::string &ifName, bool up) OnInterfaceLinkStateChanged() argument 145 OnRouteChanged(bool updated, const std::string &route, const std::string &gateway, const std::string &ifName) OnRouteChanged() argument 344 NetworkAddRoute(int32_t netId, const std::string &ifName, const std::string &destination, const std::string &nextHop) NetworkAddRoute() argument 357 NetworkRemoveRoute(int32_t netId, const std::string &ifName, const std::string &destination, const std::string &nextHop) NetworkRemoveRoute() argument 430 ClearInterfaceAddrs(const std::string &ifName) ClearInterfaceAddrs() argument 440 GetInterfaceMtu(const std::string &ifName) GetInterfaceMtu() argument 451 SetInterfaceMtu(const std::string &ifName, int32_t mtu) SetInterfaceMtu() argument 473 AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) AddInterfaceAddress() argument 486 DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) DelInterfaceAddress() argument 499 DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength, const std::string &netCapabilities) DelInterfaceAddress() argument 1207 BandwidthSetIfaceQuota(const std::string &ifName, int64_t bytes) BandwidthSetIfaceQuota() argument 1217 BandwidthRemoveIfaceQuota(const std::string &ifName) BandwidthRemoveIfaceQuota() argument 1452 AddStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) AddStaticArp() argument 1463 DelStaticArp(const std::string &ipAddr, const std::string &macAddr, const std::string &ifName) DelStaticArp() argument [all...] |
H A D | mock_netsys_native_client.cpp | 139 int32_t MockNetsysNativeClient::NetworkAddRoute(int32_t netId, const std::string &ifName, in NetworkAddRoute() argument 142 NETMGR_LOG_I("Add Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%{public}s]", in NetworkAddRoute() 143 netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkAddRoute() 145 return AddRoute(destination, mask, nextHop, ifName); in NetworkAddRoute() 148 int32_t MockNetsysNativeClient::NetworkRemoveRoute(int32_t netId, const std::string &ifName, in NetworkRemoveRoute() argument 151 NETMGR_LOG_I("Remove Route: netId[%{public}d], ifName[%{public}s], destination[%{public}s], nextHop[%{public}s]", in NetworkRemoveRoute() 152 netId, ifName.c_str(), ToAnonymousIp(destination).c_str(), ToAnonymousIp(nextHop).c_str()); in NetworkRemoveRoute() 168 void MockNetsysNativeClient::ClearInterfaceAddrs(const std::string &ifName) in ClearInterfaceAddrs() argument 170 NETMGR_LOG_I("Clear addrs: ifName[%{public}s]", ifName in ClearInterfaceAddrs() 174 GetInterfaceMtu(const std::string &ifName) GetInterfaceMtu() argument 180 SetInterfaceMtu(const std::string &ifName, int32_t mtu) SetInterfaceMtu() argument 186 AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) AddInterfaceAddress() argument 194 DelInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) DelInterfaceAddress() argument [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | net_manager_native.h | 70 int32_t NetworkAddRoute(int32_t netId, std::string ifName, std::string destination, std::string nextHop); 71 int32_t NetworkRemoveRoute(int32_t netId, std::string ifName, std::string destination, std::string nextHop); 83 nmd::InterfaceConfigurationParcel GetInterfaceConfig(std::string ifName); 85 void ClearInterfaceAddrs(const std::string ifName); 86 int32_t GetInterfaceMtu(std::string ifName); 87 int32_t SetInterfaceMtu(std::string ifName, int32_t mtuValue); 89 int32_t AddInterfaceAddress(std::string ifName, std::string addrString, int32_t prefixLength); 90 int32_t DelInterfaceAddress(std::string ifName, std::string addrString, int32_t prefixLength); 91 int32_t DelInterfaceAddress(std::string ifName, std::string addrString, int32_t prefixLength, 120 int32_t BandwidthSetIfaceQuota(const std::string &ifName, int64_ [all...] |
/foundation/communication/dsoftbus/core/connection/common/src/ |
H A D | softbus_socket.c | 440 char *ifName = NULL; in Ipv6AddrToAddrIn() local 451 ifName = strtok_s(NULL, ADDR_SPLIT_IPV6, &nextToken); in Ipv6AddrToAddrIn() 452 if (ifName != NULL) { in Ipv6AddrToAddrIn() 453 addrIn6->sin6ScopeId = SoftBusIfNameToIndex(ifName); in Ipv6AddrToAddrIn() 493 static int32_t GetIfNameByIp(const char *myIp, int32_t domain, char *ifName, int32_t ifNameMaxLen) in GetIfNameByIp() argument 495 if (myIp == NULL || ifName == NULL || strcmp(myIp, BIND_ADDR_ALL) == 0) { in GetIfNameByIp() 521 (void)memset_s(ifName, ifNameMaxLen, 0, ifNameMaxLen); in GetIfNameByIp() 523 if (memcpy_s(ifName, ifNameMaxLen - 1, ifa->ifa_name, strlen(ifa->ifa_name)) != EOK) { in GetIfNameByIp() 524 COMM_LOGE(CONN_COMMON, "fail to memcpy_s ifName by ip=%{public}s", animizedIp); in GetIfNameByIp() 532 COMM_LOGW(CONN_COMMON, "not found ifName b in GetIfNameByIp() 538 BindToInterface(const char *myIp, int32_t domain, int fd, char *ifName, int32_t ifNameMaxLen) BindToInterface() argument [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/ |
H A D | lnn_network_manager.c | 106 if (strncpy_s(netIfMgr->ifName, NET_IF_NAME_LEN, netIfName, strlen(netIfName)) != EOK) { in CreateNetifMgr() 136 static LnnNetIfMgr *NetifMgrFactory(LnnNetIfNameType type, const char *ifName) in NetifMgrFactory() argument 145 LnnNetIfMgr *netifMgr = g_netifBuilders[type](ifName); in NetifMgrFactory() 212 LNN_LOGE(LNN_BUILDER, "get lnn net ifName fail, use default value"); in LnnInitManagerByConfig() 221 LNN_LOGE(LNN_BUILDER, "ifName str parse fail!"); in LnnInitManagerByConfig() 403 char ifName[NET_IF_NAME_LEN] = {0}; in RestartCoapDiscovery() local 409 if (LnnGetLocalStrInfo(STRING_KEY_NET_IF_NAME, ifName, NET_IF_NAME_LEN) != SOFTBUS_OK) { in RestartCoapDiscovery() 410 LNN_LOGE(LNN_BUILDER, "get local ifName error!"); in RestartCoapDiscovery() 413 if (strncmp(ifName, LNN_LOOPBACK_IFNAME, strlen(LNN_LOOPBACK_IFNAME)) == 0) { in RestartCoapDiscovery() 725 LNN_LOGE(LNN_INIT, "enable for netif failed. protocol=%{public}d, ifName in LnnInitNetworkManagerDelay() 786 LnnGetNetIfTypeByName(const char *ifName, LnnNetIfType *type) LnnGetNetIfTypeByName() argument 802 LnnGetAddrTypeByIfName(const char *ifName, ConnectionAddrType *type) LnnGetAddrTypeByIfName() argument [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | wifi_hal_ap_interface_test.cpp | 117 char ifName[IFACENAME.size() + 1]; in HWTEST_F() local 118 IFACENAME.copy(ifName, IFACENAME.size() + 1); in HWTEST_F() 119 ifName[IFACENAME.size()] = '\0'; in HWTEST_F() 120 EXPECT_TRUE(StartSoftAp(-1, ifName) == WIFI_HAL_HOSTAPD_NOT_INIT); in HWTEST_F() 121 EXPECT_TRUE(StartSoftAp(0, ifName) == WIFI_HAL_SUCCESS); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/ |
H A D | lnn_ip_network_impl_mock.h | 47 virtual int32_t LnnGetAddrTypeByIfName(const char *ifName, ConnectionAddrType *type) = 0; 55 virtual void LnnNotifyPhysicalSubnetStatusChanged(const char *ifName, ProtocolType protocolType, void *status) = 0; 58 virtual int32_t GetNetworkIpByIfName(const char *ifName, char *ip, char *netmask, uint32_t len) = 0; 95 static int32_t ActionOfGetNetworkIpByIfName(const char *ifName, char *ip, char *netmask, uint32_t len);
|
/foundation/communication/dsoftbus/adapter/common/bus_center/driver/ |
H A D | lnn_hdf_driver_monitor.c | 41 char ifName[NETIF_NAME_LENGTH]; member 69 LNN_LOGI(LNN_EVENT, "receive lwip monitor event=%{public}d, ifName=%{public}s", info->event, info->ifName); in ProcessLwipEvent() 70 if (LnnGetNetIfTypeByName(info->ifName, &type) != SOFTBUS_OK) { in ProcessLwipEvent() 76 LnnNotifyAddressChangedEvent(info->ifName); in ProcessLwipEvent()
|
/foundation/communication/dsoftbus/tests/adapter/unittest/ |
H A D | dsoftbus_other_test.cpp | 58 * @tc.desc: ifName is illegal 64 const char *ifName = "abcdefgh"; in HWTEST_F() local 68 int32_t ret = GetNetworkIpByIfName(ifName, ip, netmask, len); in HWTEST_F() 74 * @tc.desc: ifName is nullptr 80 const char *ifName = "abcdefgh"; in HWTEST_F() local 87 ret = GetNetworkIpByIfName(ifName, NULL, netmask, len); in HWTEST_F() 99 const char *ifName = "abcdefgh"; in HWTEST_F() local 102 int32_t ret = GetNetworkIpByIfName(ifName, ip, NULL, len); in HWTEST_F()
|
/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_server_stub_lite.cpp | 101 std::string ifName = (char *)ReadString(req, &readLen); in OnRegisterCallBack() local 103 ret = RegisterDhcpServerCallBack(ifName, callback_); in OnRegisterCallBack() 118 std::string ifName = (char *)ReadString(req, &readLen); in OnStartDhcpServer() local 121 ErrCode ret = StartDhcpServer(ifName); in OnStartDhcpServer() 132 std::string ifName = (char *)ReadString(req, &readLen); in OnStopDhcpServer() local 133 ErrCode ret = StopDhcpServer(ifName); in OnStopDhcpServer() 144 std::string ifName = (char *)ReadString(req, &readLen); in OnSetDhcpName() local 145 ErrCode ret = SetDhcpName(ifName, tagName); in OnSetDhcpName()
|
/foundation/communication/netmanager_base/services/netmanagernative/include/manager/ |
H A D | bandwidth_manager.h | 53 * @param ifName Iface name 58 int32_t SetIfaceQuota(const std::string &ifName, int64_t bytes); 63 * @param ifName Iface name 68 int32_t RemoveIfaceQuota(const std::string &ifName); 72 * @param ifName Iface name 119 int32_t SetIfaceQuotaDetail(const std::string &ifName, int64_t bytes);
|
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/ |
H A D | interface_type.h | 26 std::string ifName; member 33 os << "ifName: " << parcel.ifName << "\n" in operator <<()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/include/ |
H A D | lnn_physical_subnet_manager.h | 38 char ifName[NET_IF_NAME_LEN]; member 57 void LnnNotifyPhysicalSubnetStatusChanged(const char *ifName, ProtocolType type, void *status);
|
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/ |
H A D | dhcp_dhcpd_test.cpp | 50 std::string ifName = "wlan0"; in HWTEST_F() local 54 EXPECT_EQ(1, StartDhcpServerMain(ifName, netMask, ipRange, localIp)); in HWTEST_F()
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | ethernet_manager_test.cpp | 63 int32_t OnInterfaceAdded(const std::string &ifName) override 65 std::cout << "OnInterfaceAdded ifName: " << ifName << std::endl; 69 int32_t OnInterfaceRemoved(const std::string &ifName) override 71 std::cout << "OnInterfaceRemoved ifName: " << ifName << std::endl; 75 int32_t OnInterfaceChanged(const std::string &ifName, bool up) override 77 std::cout << "OnInterfaceChange ifName: " << ifName << ", state: " << up << std::endl; 392 ASSERT_FALSE(cfg.ifName in HWTEST_F() 401 std::string ifName; HWTEST_F() local 413 std::string ifName; HWTEST_F() local [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/ |
H A D | mock_if_config.h | 34 virtual void FlushIpAddr(const std::string &ifName, const int &ipType) = 0; 44 MOCK_METHOD2(FlushIpAddr, void(const std::string &ifName, const int &ipType));
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | traffic_manager.cpp | 134 TrafficStatsParcel TrafficManager::GetInterfaceTraffic(const std::string &ifName) in GetInterfaceTraffic() argument 142 if (ifName != *iter) { in GetInterfaceTraffic() 151 interfaceTrafficBytes.iface = ifName; in GetInterfaceTraffic() 152 interfaceTrafficBytes.ifIndex = if_nametoindex(ifName.c_str()); in GetInterfaceTraffic()
|
/foundation/communication/netmanager_ext/services/ethernetmanager/include/ |
H A D | ethernet_service.h | 47 int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, 49 int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, 54 int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) override; 56 const std::string &ifName) override;
|