Home
last modified time | relevance | path

Searched refs:ifname (Results 1 - 25 of 181) sorted by relevance

12345678

/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
H A Dmock_dhcp_service.cpp35 DhcpErrorCode __real_RegisterDhcpClientCallBack(const char *ifname, const ClientCallBack *event);
36 DhcpErrorCode __wrap_RegisterDhcpClientCallBack(const char *ifname, const ClientCallBack *event) in __wrap_RegisterDhcpClientCallBack() argument
39 return MockDhcpService::GetInstance().RegisterDhcpClientCallBack(ifname, event); in __wrap_RegisterDhcpClientCallBack()
42 DhcpErrorCode __real_StartDhcpClient(const char *ifname, bool bIpv6);
43 DhcpErrorCode __wrap_StartDhcpClient(const char *ifname, bool bIpv6) in __wrap_StartDhcpClient() argument
46 return MockDhcpService::GetInstance().StartDhcpClient(ifname, bIpv6); in __wrap_StartDhcpClient()
49 DhcpErrorCode __real_StopDhcpClient(const char *ifname, bool bIpv6);
50 DhcpErrorCode __wrap_StopDhcpClient(const char *ifname, bool bIpv6) in __wrap_StopDhcpClient() argument
53 return MockDhcpService::GetInstance().StopDhcpClient(ifname, bIpv6); in __wrap_StopDhcpClient()
56 DhcpErrorCode __real_RegisterDhcpServerCallBack(const char *ifname, cons
57 __wrap_RegisterDhcpServerCallBack(const char *ifname, const ServerCallBack *event) __wrap_RegisterDhcpServerCallBack() argument
64 __wrap_StartDhcpServer(const char *ifname) __wrap_StartDhcpServer() argument
71 __wrap_StopDhcpServer(const char *ifname) __wrap_StopDhcpServer() argument
78 __wrap_SetDhcpRange(const char *ifname, const DhcpRange *range) __wrap_SetDhcpRange() argument
85 __wrap_SetDhcpName(const char *ifname, const char *tagName) __wrap_SetDhcpName() argument
113 __wrap_GetDhcpClientInfos(const char *ifname, int staNumber, DhcpStationInfo *staInfo, int *staSize) __wrap_GetDhcpClientInfos() argument
[all...]
H A Dmock_dhcp_service.h25 MOCK_METHOD2(RegisterDhcpClientCallBack, DhcpErrorCode(const char *ifname, const ClientCallBack *event));
26 MOCK_METHOD2(StartDhcpClient, DhcpErrorCode(const char *ifname, bool bIpv6));
27 MOCK_METHOD2(StopDhcpClient, DhcpErrorCode(const char *ifname, bool bIpv6));
28 MOCK_METHOD2(RegisterDhcpServerCallBack, DhcpErrorCode(const char *ifname, const ServerCallBack *event));
29 MOCK_METHOD1(StartDhcpServer, DhcpErrorCode(const char *ifname));
30 MOCK_METHOD1(StopDhcpServer, DhcpErrorCode(const char *ifname));
34 MOCK_METHOD2(SetDhcpRange, DhcpErrorCode(const char *ifname, const DhcpRange *range));
35 MOCK_METHOD2(SetDhcpName, DhcpErrorCode(const char *ifname, const char *tagName));
36 MOCK_METHOD4(GetDhcpClientInfos, DhcpErrorCode(const char *ifname, int staNumber, DhcpStationInfo *staInfo, int *staSize));
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_client_service_impl_test.cpp56 const std::string& ifname = "wlan0"; in HWTEST_F() local
58 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StartDhcpClient(ifname, bIpv6)); in HWTEST_F()
60 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StopDhcpClient(ifname, bIpv6)); in HWTEST_F()
86 std::string ifname = "wlan0"; in HWTEST_F() local
89 client.ifName = ifname; in HWTEST_F()
91 EXPECT_EQ(DHCP_E_FAILED, dhcpClientImpl->StartOldClient(ifname, bIpv6, client)); in HWTEST_F()
94 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StartOldClient(ifname, bIpv6, client)); in HWTEST_F()
97 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StartOldClient(ifname, bIpv6, client)); in HWTEST_F()
105 std::string ifname = ""; in HWTEST_F() local
107 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StartNewClient(ifname, bIpv in HWTEST_F()
171 std::string ifname; HWTEST_F() local
190 std::string ifname; HWTEST_F() local
209 std::string ifname; HWTEST_F() local
247 std::string ifname; HWTEST_F() local
261 std::string ifname; HWTEST_F() local
271 std::string ifname = "wlan0"; HWTEST_F() local
278 std::string ifname = "wlan0"; HWTEST_F() local
314 std::string ifname = "wlan0"; HWTEST_F() local
[all...]
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_client_service_impl.cpp209 ErrCode DhcpClientServiceImpl::RegisterDhcpClientCallBack(const std::string& ifname, in RegisterDhcpClientCallBack() argument
212 ErrCode DhcpClientServiceImpl::RegisterDhcpClientCallBack(const std::string& ifname, in RegisterDhcpClientCallBack()
225 auto iter = m_mapClientCallBack.find(ifname); in RegisterDhcpClientCallBack()
228 DHCP_LOGI("RegisterDhcpClientCallBack find ifname update clientCallback, ifname:%{public}s", ifname.c_str()); in RegisterDhcpClientCallBack()
235 m_mapClientCallBack.emplace(std::make_pair(ifname, mclientCallback)); in RegisterDhcpClientCallBack()
236 DHCP_LOGI("RegisterDhcpClientCallBack add ifname and mclientCallback, ifname:%{public}s", ifname in RegisterDhcpClientCallBack()
241 StartDhcpClient(const std::string& ifname, bool bIpv6) StartDhcpClient() argument
266 SetConfiguration(const std::string& ifname, const RouterConfig& config) SetConfiguration() argument
282 StartOldClient(const std::string& ifname, bool bIpv6, DhcpClient &dhcpClient) StartOldClient() argument
315 StartNewClient(const std::string& ifname, bool bIpv6) StartNewClient() argument
355 StopDhcpClient(const std::string& ifname, bool bIpv6) StopDhcpClient() argument
399 std::string ifname = ipResult.ifname; DhcpIpv4ResultSuccess() local
446 std::string ifname = ipResult.ifname; DhcpOfferResultSuccess() local
481 std::string ifname = ipResult.ifname; DhcpIpv4ResultFail() local
516 DhcpIpv4ResultTimeOut(const std::string &ifname) DhcpIpv4ResultTimeOut() argument
546 DhcpIpv4ResultExpired(const std::string &ifname) DhcpIpv4ResultExpired() argument
564 DhcpIpv6ResulCallback(const std::string ifname, DhcpIpv6Info &info) DhcpIpv6ResulCallback() argument
615 DhcpIpv6ResultTimeOut(const std::string &ifname) DhcpIpv6ResultTimeOut() argument
622 DhcpFreeIpv6(const std::string ifname) DhcpFreeIpv6() argument
638 PushDhcpResult(const std::string &ifname, OHOS::DHCP::DhcpResult &result) PushDhcpResult() argument
668 CheckDhcpResultExist(const std::string &ifname, OHOS::DHCP::DhcpResult &result) CheckDhcpResultExist() argument
[all...]
H A Ddhcp_function.cpp145 int GetLocalInterface(const char *ifname, int *ifindex, unsigned char *hwaddr, uint32_t *ifaddr4) in GetLocalInterface() argument
147 if ((ifname == NULL) || (strlen(ifname) == 0) || hwaddr == NULL) { in GetLocalInterface()
148 DHCP_LOGE("GetLocalInterface() failed, ifname == NULL or hwaddr is NULL"); in GetLocalInterface()
157 DHCP_LOGE("GetLocalInterface() ifname:%{public}s failed, socket err:%{public}d!", ifname, errno); in GetLocalInterface()
162 DHCP_LOGE("GetLocalInterface() ifname:%{public}s failed, memset_s error!", ifname); in GetLocalInterface()
166 if (strncpy_s(iface.ifr_name, sizeof(iface.ifr_name), ifname, strlen(ifname)) ! in GetLocalInterface()
203 GetLocalIp(const char *ifname, uint32_t *ifaddr4) GetLocalIp() argument
263 SetIpOrMask(const char *ifname, int fd, uint32_t netAddr, unsigned long cmd) SetIpOrMask() argument
295 SetLocalInterface(const char *ifname, uint32_t ipAddr, uint32_t netMask) SetLocalInterface() argument
[all...]
H A Ddhcp_result.cpp41 DHCP_LOGI("PublishDhcpIpv4Result code:%{public}d ifname:%{public}s", ipResult.code, ipResult.ifname.c_str()); in PublishDhcpIpv4Result()
48 if (clientImpl->DhcpIpv4ResultTimeOut(ipResult.ifname) != OHOS::DHCP::DHCP_OPT_SUCCESS) { in PublishDhcpIpv4Result()
53 if (clientImpl->DhcpIpv4ResultExpired(ipResult.ifname) != OHOS::DHCP::DHCP_OPT_SUCCESS) { in PublishDhcpIpv4Result()
73 bool DhcpIpv6TimerCallbackEvent(const char *ifname) in DhcpIpv6TimerCallbackEvent() argument
75 DHCP_LOGI("DhcpIpv6TimerCallbackEvent ifname:%{public}s", ifname); in DhcpIpv6TimerCallbackEvent()
76 if (ifname == nullptr) { in DhcpIpv6TimerCallbackEvent()
77 DHCP_LOGE("DhcpIpv6TimerCallbackEvent ifname is nullptr!"); in DhcpIpv6TimerCallbackEvent()
85 if ((clientImpl != nullptr) && (clientImpl->DhcpIpv6ResultTimeOut(ifname) ! in DhcpIpv6TimerCallbackEvent()
[all...]
/foundation/communication/dhcp/interfaces/kits/c/
H A Ddhcp_c_api.h28 * @param ifname - interface name, eg:wlan0 [in]
32 DhcpErrorCode RegisterDhcpClientCallBack(const char *ifname, const ClientCallBack *event);
37 * @param ifname - interface name, eg:wlan0 [in]
41 DhcpErrorCode RegisterDhcpClientReportCallBack(const char *ifname, const DhcpClientReport *event);
45 * @param ifname - interface name, eg:wlan0 [in]
49 DhcpErrorCode StartDhcpClient(const char *ifname, bool bIpv6);
53 * @param ifname - interface name, eg:wlan0 [in]
57 DhcpErrorCode SetConfiguration(const char *ifname, const RouterConfig config);
61 * @param ifname - interface name, eg:wlan0 [in]
65 DhcpErrorCode StopDhcpClient(const char *ifname, boo
[all...]
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_server_service_impl.cpp181 ErrCode DhcpServerServiceImpl::RegisterDhcpServerCallBack(const std::string& ifname, in RegisterDhcpServerCallBack() argument
184 ErrCode DhcpServerServiceImpl::RegisterDhcpServerCallBack(const std::string& ifname, in RegisterDhcpServerCallBack()
198 auto iter = m_mapServerCallBack.find(ifname); in RegisterDhcpServerCallBack()
201 DHCP_LOGI("RegisterDhcpServerCallBack m_mapServerCallBack find one update, ifname:%{public}s", ifname.c_str()); in RegisterDhcpServerCallBack()
208 m_mapServerCallBack.emplace(std::make_pair(ifname, callback)); in RegisterDhcpServerCallBack()
209 DHCP_LOGI("RegisterDhcpServerCallBack m_mapServerCallBack add one new, ifname:%{public}s", ifname.c_str()); in RegisterDhcpServerCallBack()
214 ErrCode DhcpServerServiceImpl::StartDhcpServer(const std::string& ifname) in StartDhcpServer() argument
216 DHCP_LOGI("StartDhcpServer ifname in StartDhcpServer()
266 DeviceInfoCallBack(const std::string & ifname) DeviceInfoCallBack() argument
312 DeviceConnectCallBack(const char* ifname) DeviceConnectCallBack() argument
327 StopDhcpServer(const std::string& ifname) StopDhcpServer() argument
486 SetDhcpRange(const std::string& ifname, const DhcpRange& range) SetDhcpRange() argument
540 SetDhcpName(const std::string& ifname, const std::string& tagName) SetDhcpName() argument
557 SetDhcpNameExt(const std::string& ifname, const std::string& tagName) SetDhcpNameExt() argument
608 GetDhcpClientInfos(const std::string& ifname, std::vector<std::string>& leases) GetDhcpClientInfos() argument
674 CheckAndUpdateConf(const std::string &ifname) CheckAndUpdateConf() argument
745 AddSpecifiedInterface(const std::string& ifname) AddSpecifiedInterface() argument
759 GetUsingIpRange(const std::string ifname, std::string& ipRange) GetUsingIpRange() argument
830 DelSpecifiedInterface(const std::string& ifname) DelSpecifiedInterface() argument
862 DeleteLeaseFile(const std::string& ifname) DeleteLeaseFile() argument
[all...]
/foundation/communication/wifi_aware/frameworks/source/
H A Dwifiaware.c31 char ifname[WIFI_IFNAME_MAX_SIZE + 1] = {0}; in InitNAN() local
41 ret = GetHotspotInterfaceName(ifname, sizeof(ifname)); in InitNAN()
46 if (HalWifiSdpInit(ifname) != 0) { in InitNAN()
109 char ifname[WIFI_IFNAME_MAX_SIZE + 1] = {0}; in SetLowPower() local
111 ret = GetHotspotInterfaceName(ifname, sizeof(ifname)); in SetLowPower()
118 if (HalWifiSdpAdjustTxPower(ifname, g_power) != 0) { in SetLowPower()
123 if (HalWifiSdpRestoreTxPower(ifname) != 0) { in SetLowPower()
147 char ifname[WIFI_IFNAME_MAX_SIZ in NanBeaconSwitch() local
[all...]
/foundation/communication/dhcp/frameworks/native/src/
H A Ddhcp_event.cpp82 void DhcpClientCallBack::OnIpSuccessChanged(int status, const std::string& ifname, OHOS::DHCP::DhcpResult& result) in OnIpSuccessChanged() argument
85 DHCP_LOGI("OnIpSuccessChanged status:%{public}d,ifname:%{public}s", status, ifname.c_str()); in OnIpSuccessChanged()
97 auto iter = mapClientCallBack.find(ifname); in OnIpSuccessChanged()
101 iter->second->OnIpSuccessChanged(status, ifname.c_str(), &dhcpResult); in OnIpSuccessChanged()
107 void DhcpClientCallBack::OnIpFailChanged(int status, const std::string& ifname, const std::string& reason) in OnIpFailChanged() argument
110 DHCP_LOGI("OnIpFailChanged status:%{public}d, ifname:%{public}s, reason:%{public}s", status, ifname.c_str(), in OnIpFailChanged()
113 auto iter = mapClientCallBack.find(ifname); in OnIpFailChanged()
116 iter->second->OnIpFailChanged(status, ifname in OnIpFailChanged()
122 OnDhcpOfferReport(int status, const std::string& ifname, OHOS::DHCP::DhcpResult& result) OnDhcpOfferReport() argument
148 RegisterCallBack(const std::string& ifname, const ClientCallBack *event) RegisterCallBack() argument
170 UnRegisterCallBack(const std::string& ifname) UnRegisterCallBack() argument
194 RegisterDhcpClientReportCallBack(const std::string& ifname, const DhcpClientReport *event) RegisterDhcpClientReportCallBack() argument
226 OnServerLeasesChanged(const std::string& ifname, std::vector<std::string>& leases) OnServerLeasesChanged() argument
231 OnServerSerExitChanged(const std::string& ifname) OnServerSerExitChanged() argument
236 OnServerSuccess(const std::string& ifname, std::vector<DhcpStationInfo>& stationInfos) OnServerSuccess() argument
285 RegisterCallBack(const std::string& ifname, const ServerCallBack *event) RegisterCallBack() argument
302 UnRegisterCallBack(const std::string& ifname) UnRegisterCallBack() argument
[all...]
H A Ddhcp_server_impl.cpp113 ErrCode DhcpServerImpl::RegisterDhcpServerCallBack(const std::string& ifname, in RegisterDhcpServerCallBack() argument
116 ErrCode DhcpServerImpl::RegisterDhcpServerCallBack(const std::string& ifname, in RegisterDhcpServerCallBack()
122 return client_->RegisterDhcpServerCallBack(ifname, callback); in RegisterDhcpServerCallBack()
125 ErrCode DhcpServerImpl::StartDhcpServer(const std::string& ifname) in StartDhcpServer() argument
130 return client_->StartDhcpServer(ifname); in StartDhcpServer()
133 ErrCode DhcpServerImpl::StopDhcpServer(const std::string& ifname) in StopDhcpServer() argument
137 return client_->StopDhcpServer(ifname); in StopDhcpServer()
161 ErrCode DhcpServerImpl::SetDhcpRange(const std::string& ifname, const DhcpRange& range) in SetDhcpRange() argument
165 return client_->SetDhcpRange(ifname, range); in SetDhcpRange()
168 ErrCode DhcpServerImpl::SetDhcpName(const std::string& ifname, cons argument
175 GetDhcpClientInfos(const std::string& ifname, std::vector<std::string>& dhcpClientInfo) GetDhcpClientInfos() argument
[all...]
H A Ddhcp_server_impl.h33 ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
36 ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
39 ErrCode StartDhcpServer(const std::string& ifname) override;
40 ErrCode StopDhcpServer(const std::string& ifname) override;
44 ErrCode SetDhcpRange(const std::string& ifname, const DhcpRange& range) override;
45 ErrCode SetDhcpName(const std::string& ifname, const std::string& tagName) override;
46 ErrCode GetDhcpClientInfos(const std::string& ifname, std::vector<std::string>& dhcpClientInfo) override;
H A Ddhcp_client_impl.cpp116 ErrCode DhcpClientImpl::RegisterDhcpClientCallBack(const std::string& ifname, in RegisterDhcpClientCallBack() argument
119 ErrCode DhcpClientImpl::RegisterDhcpClientCallBack(const std::string& ifname, in RegisterDhcpClientCallBack()
125 return client_->RegisterDhcpClientCallBack(ifname, callback); in RegisterDhcpClientCallBack()
128 ErrCode DhcpClientImpl::StartDhcpClient(const std::string& ifname, bool bIpv6) in StartDhcpClient() argument
132 return client_->StartDhcpClient(ifname, bIpv6); in StartDhcpClient()
135 ErrCode DhcpClientImpl::SetConfiguration(const std::string& ifname, const RouterConfig& config) in SetConfiguration() argument
139 return client_->SetConfiguration(ifname, config); in SetConfiguration()
142 ErrCode DhcpClientImpl::StopDhcpClient(const std::string& ifname, bool bIpv6) in StopDhcpClient() argument
146 return client_->StopDhcpClient(ifname, bIpv6); in StopDhcpClient()
H A Ddhcp_server_callback_stub_lite.cpp109 void DhcpServreCallBackStub::OnServerLeasesChanged(const std::string& ifname, std::vector<std::string>& leases) in OnServerLeasesChanged() argument
111 DHCP_LOGI("DhcpServreCallBackStub::OnServerLeasesChanged, ifname:%{public}s", ifname.c_str()); in OnServerLeasesChanged()
113 userCallback_->OnServerLeasesChanged(ifname, leases); in OnServerLeasesChanged()
117 void DhcpServreCallBackStub::OnServerSuccess(const std::string& ifname, std::vector<DhcpStationInfo>& stationInfos) in OnServerSuccess() argument
119 DHCP_LOGI("DhcpServreCallBackStub::OnServerSuccess, ifname:%{public}s", ifname.c_str()); in OnServerSuccess()
121 userCallback_->OnServerSuccess(ifname.c_str(), stationInfos); in OnServerSuccess()
125 void DhcpServreCallBackStub::OnServerSerExitChanged(const std::string& ifname) in OnServerSerExitChanged() argument
127 DHCP_LOGI("DhcpServreCallBackStub::OnWifiWpsStateChanged, ifname in OnServerSerExitChanged()
[all...]
H A Ddhcp_server_callback_stub.cpp98 void DhcpServreCallBackStub::OnServerLeasesChanged(const std::string& ifname, std::vector<std::string>& leases) in OnServerLeasesChanged() argument
100 DHCP_LOGI("DhcpServreCallBackStub::OnServerLeasesChanged, ifname:%{public}s", ifname.c_str()); in OnServerLeasesChanged()
102 callback_->OnServerLeasesChanged(ifname, leases); in OnServerLeasesChanged()
106 void DhcpServreCallBackStub::OnServerSuccess(const std::string &ifname, std::vector<DhcpStationInfo> &stationInfos) in OnServerSuccess() argument
108 DHCP_LOGI("DhcpServreCallBackStub::OnServerSuccess, ifname:%{public}s", ifname.c_str()); in OnServerSuccess()
110 callback_->OnServerSuccess(ifname.c_str(), stationInfos); in OnServerSuccess()
114 void DhcpServreCallBackStub::OnServerSerExitChanged(const std::string& ifname) in OnServerSerExitChanged() argument
116 DHCP_LOGI("DhcpServreCallBackStub::OnWifiWpsStateChanged, ifname in OnServerSerExitChanged()
[all...]
/foundation/communication/dhcp/test/fuzztest/dhcpserver_fuzzer/
H A Ddhcpserver_fuzzer.cpp31 std::string ifname = std::string(reinterpret_cast<const char*>(data), size); in DhcpServerFuzzerTest() local
43 dhcpServer->StartDhcpServer(ifname); in DhcpServerFuzzerTest()
44 dhcpServer->StopDhcpServer(ifname); in DhcpServerFuzzerTest()
45 dhcpServer->PutDhcpRange(ifname, range); in DhcpServerFuzzerTest()
46 dhcpServer->RemoveDhcpRange(ifname, range); in DhcpServerFuzzerTest()
47 dhcpServer->RemoveAllDhcpRange(ifname); in DhcpServerFuzzerTest()
48 dhcpServer->SetDhcpRange(ifname, range); in DhcpServerFuzzerTest()
49 dhcpServer->SetDhcpName(ifname, ifname); in DhcpServerFuzzerTest()
50 dhcpServer->GetDhcpClientInfos(ifname, dhcpClientInf in DhcpServerFuzzerTest()
[all...]
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_server_service_impl_test.cpp56 std::string ifname = "wlan0"; in HWTEST_F() local
70 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->SetDhcpRange(ifname, setRange)); in HWTEST_F()
74 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->SetDhcpRange(ifname, setRange)); in HWTEST_F()
75 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->StartDhcpServer(ifname)); in HWTEST_F()
77 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->SetDhcpName(ifname, tagName)); in HWTEST_F()
79 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->SetDhcpName(ifname, "")); in HWTEST_F()
81 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->SetDhcpNameExt(ifname, tagName)); in HWTEST_F()
83 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->SetDhcpNameExt(ifname, "")); in HWTEST_F()
87 EXPECT_EQ(DHCP_E_FAILED, pServerServiceImpl->GetDhcpClientInfos(ifname, vecLeases)); in HWTEST_F()
125 std::string ifname; in HWTEST_F() local
189 std::string ifname; HWTEST_F() local
197 std::string ifname; HWTEST_F() local
218 std::string ifname; HWTEST_F() local
[all...]
/foundation/communication/dhcp/frameworks/native/include/
H A Ddhcp_event.h37 void OnIpSuccessChanged(int status, const std::string& ifname, OHOS::DHCP::DhcpResult& result) override;
38 void OnIpFailChanged(int status, const std::string& ifname, const std::string& reason) override;
40 void OnDhcpOfferReport(int status, const std::string& ifname, OHOS::DHCP::DhcpResult& result) override;
43 void RegisterCallBack(const std::string& ifname, const ClientCallBack *event);
44 void UnRegisterCallBack(const std::string& ifname);
45 void RegisterDhcpClientReportCallBack(const std::string& ifname, const DhcpClientReport *event);
59 void OnServerLeasesChanged(const std::string& ifname, std::vector<std::string>& leases) override;
60 void OnServerSerExitChanged(const std::string& ifname) override;
61 void OnServerSuccess(const std::string& ifname, std::vector<DhcpStationInfo>& stationInfos) override;
65 void RegisterCallBack(const std::string& ifname, cons
[all...]
/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_client_service_impl.h60 ErrCode RegisterDhcpClientCallBack(const std::string& ifname, const std::shared_ptr<IDhcpClientCallBack> &clientCallback) override;
62 ErrCode RegisterDhcpClientCallBack(const std::string& ifname, const sptr<IDhcpClientCallBack> &clientCallback) override;
64 ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) override;
65 ErrCode SetConfiguration (const std::string& ifname, const RouterConfig& config) override;
66 ErrCode StopDhcpClient(const std::string& ifname, bool bIpv6) override;
71 ErrCode StartOldClient(const std::string& ifname, bool bIpv6, DhcpClient &dhcpClient);
72 ErrCode StartNewClient(const std::string& ifname, bool bIpv6);
79 int DhcpIpv4ResultTimeOut(const std::string &ifname);
80 int DhcpIpv4ResultExpired(const std::string &ifname);
81 int DhcpIpv6ResultTimeOut(const std::string &ifname);
[all...]
/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_server_service_impl.h36 void DeviceConnectCallBack(const char* ifname);
60 ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
63 ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
66 ErrCode StartDhcpServer(const std::string& ifname) override;
67 ErrCode StopDhcpServer(const std::string& ifname) override;
71 ErrCode SetDhcpRange(const std::string& ifname, const DhcpRange& range) override;
72 ErrCode SetDhcpName(const std::string& ifname, const std::string& tagName) override;
73 ErrCode SetDhcpNameExt(const std::string& ifname, const std::string& tagName);
74 ErrCode GetDhcpClientInfos(const std::string& ifname, std::vector<std::string>& leases) override;
77 ErrCode DeleteLeaseFile(const std::string& ifname);
[all...]
/foundation/communication/dhcp/frameworks/native/c_adapter/src/
H A Ddhcp_c_service.cpp37 NO_SANITIZE("cfi") DhcpErrorCode RegisterDhcpClientCallBack(const char *ifname, const ClientCallBack *event) in RegisterDhcpClientCallBack() argument
39 CHECK_PTR_RETURN(ifname, DHCP_INVALID_PARAM); in RegisterDhcpClientCallBack()
55 dhcpClientCallBack->RegisterCallBack(ifname, event); in RegisterDhcpClientCallBack()
56 return GetCErrorCode(dhcpClientPtr->RegisterDhcpClientCallBack(ifname, dhcpClientCallBack)); in RegisterDhcpClientCallBack()
59 DhcpErrorCode RegisterDhcpClientReportCallBack(const char *ifname, const DhcpClientReport *event) in RegisterDhcpClientReportCallBack() argument
61 CHECK_PTR_RETURN(ifname, DHCP_INVALID_PARAM); in RegisterDhcpClientReportCallBack()
73 dhcpClientCallBack->RegisterDhcpClientReportCallBack(ifname, event); in RegisterDhcpClientReportCallBack()
77 NO_SANITIZE("cfi") DhcpErrorCode StartDhcpClient(const char *ifname, bool bIpv6) in StartDhcpClient() argument
79 CHECK_PTR_RETURN(ifname, DHCP_INVALID_PARAM); in StartDhcpClient()
81 return GetCErrorCode(dhcpClientPtr->StartDhcpClient(ifname, bIpv in StartDhcpClient()
84 SetConfiguration(const char *ifname, const RouterConfig config) SetConfiguration() argument
94 StopDhcpClient(const char *ifname, bool bIpv6) StopDhcpClient() argument
103 RegisterDhcpServerCallBack(const char *ifname, const ServerCallBack *event) RegisterDhcpServerCallBack() argument
125 StartDhcpServer(const char *ifname) StartDhcpServer() argument
135 StopDhcpServer(const char *ifname) StopDhcpServer() argument
156 SetDhcpRange(const char *ifname, const DhcpRange *range) SetDhcpRange() argument
173 SetDhcpName(const char *ifname, const char *tagName) SetDhcpName() argument
267 GetDhcpClientInfos(const char *ifname, int staNumber, DhcpStationInfo *staInfo, int *staSize) GetDhcpClientInfos() argument
[all...]
/foundation/communication/dhcp/test/fuzztest/clientstub_fuzzer/
H A Dclientstub_fuzzer.cpp34 void OnRegisterCallBackTest(const std::string& ifname, size_t size) in OnRegisterCallBackTest() argument
40 datas.WriteString(ifname); in OnRegisterCallBackTest()
47 void OnStartDhcpClientTest(const std::string& ifname, size_t size, bool ipv6) in OnStartDhcpClientTest() argument
61 void OnStopDhcpClientTest(const std::string& ifname, size_t size, bool ipv6) in OnStopDhcpClientTest() argument
67 datas.WriteString(ifname); in OnStopDhcpClientTest()
74 void OnSetConfigurationTest(const std::string& ifname) in OnSetConfigurationTest() argument
80 datas.WriteString(ifname); in OnSetConfigurationTest()
93 std::string ifname = "wlan0"; in LLVMFuzzerTestOneInput() local
94 OnRegisterCallBackTest(ifname, size); in LLVMFuzzerTestOneInput()
96 OnSetConfigurationTest(ifname); in LLVMFuzzerTestOneInput()
[all...]
/foundation/communication/dhcp/frameworks/native/interfaces/
H A Di_dhcp_server.h38 virtual ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
41 virtual ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
44 virtual ErrCode StartDhcpServer(const std::string& ifname) = 0;
45 virtual ErrCode StopDhcpServer(const std::string& ifname) = 0;
49 virtual ErrCode SetDhcpRange(const std::string& ifname, const DhcpRange& range) = 0;
50 virtual ErrCode SetDhcpName(const std::string& ifname, const std::string& tagName) = 0;
51 virtual ErrCode GetDhcpClientInfos(const std::string& ifname, std::vector<std::string>& dhcpClientInfo) = 0;
/foundation/communication/dhcp/interfaces/inner_api/
H A Ddhcp_server.h28 virtual ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
31 virtual ErrCode RegisterDhcpServerCallBack(const std::string& ifname,
34 virtual ErrCode StartDhcpServer(const std::string& ifname) = 0;
35 virtual ErrCode StopDhcpServer(const std::string& ifname) = 0;
39 virtual ErrCode SetDhcpRange(const std::string& ifname, const DhcpRange& range) = 0;
40 virtual ErrCode SetDhcpName(const std::string& ifname, const std::string& tagName) = 0;
41 virtual ErrCode GetDhcpClientInfos(const std::string& ifname, std::vector<std::string>& dhcpClientInfo) = 0;
H A Ddhcp_client.h28 virtual ErrCode RegisterDhcpClientCallBack(const std::string& ifname,
31 virtual ErrCode RegisterDhcpClientCallBack(const std::string& ifname,
34 virtual ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) = 0;
35 virtual ErrCode SetConfiguration(const std::string& ifname, const RouterConfig& config) = 0;
36 virtual ErrCode StopDhcpClient(const std::string& ifname, bool bIpv6) = 0;

Completed in 9 milliseconds

12345678