Home
last modified time | relevance | path

Searched refs:bIpv6 (Results 1 - 25 of 41) sorted by relevance

12

/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_dhcp_controller.cpp57 void EthernetDhcpController::StartClient(const std::string &iface, bool bIpv6) in StartClient() argument
66 NETMGR_EXT_LOG_I("Start dhcp client iface[%{public}s] ipv6[%{public}d]", iface.c_str(), bIpv6); in StartClient()
67 if (StartDhcpClient(iface.c_str(), bIpv6) != DHCP_SUCCESS) { in StartClient()
72 void EthernetDhcpController::StopClient(const std::string &iface, bool bIpv6) in StopClient() argument
74 NETMGR_EXT_LOG_D("StopClient iface[%{public}s] ipv6[%{public}d]", iface.c_str(), bIpv6); in StopClient()
75 if (StopDhcpClient(iface.c_str(), bIpv6) != DHCP_SUCCESS) { in StopClient()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
H A Dmock_dhcp_service.cpp42 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()
H A Dmock_dhcp_service.h26 MOCK_METHOD2(StartDhcpClient, DhcpErrorCode(const char *ifname, bool bIpv6));
27 MOCK_METHOD2(StopDhcpClient, DhcpErrorCode(const char *ifname, bool bIpv6));
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_client_service_impl_test.cpp57 bool bIpv6 = true; in HWTEST_F() local
58 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StartDhcpClient(ifname, bIpv6)); in HWTEST_F()
59 bIpv6 = false; in HWTEST_F()
60 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StopDhcpClient(ifname, bIpv6)); in HWTEST_F()
87 bool bIpv6 = true; in HWTEST_F() local
90 client.isIpv6 = bIpv6; 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()
96 bIpv6 = false; in HWTEST_F()
97 EXPECT_EQ(DHCP_E_SUCCESS, dhcpClientImpl->StartOldClient(ifname, bIpv6, clien in HWTEST_F()
106 bool bIpv6 = false; HWTEST_F() local
[all...]
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_client_stub_lite.cpp130 bool bIpv6; in OnStartDhcpClient() local
132 (void)ReadBool(req, &bIpv6); in OnStartDhcpClient()
133 DHCP_LOGI("ifname:%{public}s bIpv6:%{public}d", ifname.c_str(), bIpv6); in OnStartDhcpClient()
135 ret = StartDhcpClient(ifname, bIpv6); in OnStartDhcpClient()
179 bool bIpv6; in OnStopDhcpClient() local
181 (void)ReadBool(req, &bIpv6); in OnStopDhcpClient()
182 DHCP_LOGI("ifname:%{public}s bIpv6:%{public}d", ifname.c_str(), bIpv6); in OnStopDhcpClient()
184 ret = StopDhcpClient(ifname, bIpv6); in OnStopDhcpClient()
[all...]
H A Ddhcp_client_service_impl.cpp241 ErrCode DhcpClientServiceImpl::StartDhcpClient(const std::string& ifname, bool bIpv6) in StartDhcpClient() argument
243 DHCP_LOGI("StartDhcpClient ifName:%{public}s bIpv6:%{public}d", ifname.c_str(), bIpv6); in StartDhcpClient()
260 return StartOldClient(ifname, bIpv6, iter->second); in StartDhcpClient()
263 return StartNewClient(ifname, bIpv6); in StartDhcpClient()
282 ErrCode DhcpClientServiceImpl::StartOldClient(const std::string& ifname, bool bIpv6, DhcpClient &dhcpClient) in StartOldClient() argument
284 DHCP_LOGI("StartOldClient ifname:%{public}s bIpv6:%{public}d", ifname.c_str(), bIpv6); in StartOldClient()
290 dhcpClient.pStaStateMachine->StartIpv4Type(ifname, bIpv6, ACTION_START_OLD); in StartOldClient()
291 if (bIpv6) { in StartOldClient()
315 StartNewClient(const std::string& ifname, bool bIpv6) StartNewClient() argument
355 StopDhcpClient(const std::string& ifname, bool bIpv6) StopDhcpClient() argument
[all...]
H A Ddhcp_client_stub.cpp144 bool bIpv6 = data.ReadBool(); in OnStartDhcpClient() local
145 ErrCode ret = StartDhcpClient(ifname, bIpv6); in OnStartDhcpClient()
167 bool bIpv6 = data.ReadBool(); in OnStopDhcpClient() local
168 ErrCode ret = StopDhcpClient(ifname, bIpv6); in OnStopDhcpClient()
/foundation/communication/dhcp/frameworks/native/src/
H A Ddhcp_client_impl.cpp128 ErrCode DhcpClientImpl::StartDhcpClient(const std::string& ifname, bool bIpv6) in StartDhcpClient() argument
132 return client_->StartDhcpClient(ifname, bIpv6); in StartDhcpClient()
142 ErrCode DhcpClientImpl::StopDhcpClient(const std::string& ifname, bool bIpv6) in StopDhcpClient() argument
146 return client_->StopDhcpClient(ifname, bIpv6); in StopDhcpClient()
H A Ddhcp_client_proxy.cpp140 ErrCode DhcpClientProxy::StartDhcpClient(const std::string& ifname, bool bIpv6) in StartDhcpClient() argument
156 data.WriteBool(bIpv6); in StartDhcpClient()
157 DHCP_LOGI("%{public}s, calling uid:%{public}d, ifname:%{public}s, bIpv6:%{public}d", __func__, GetCallingUid(), in StartDhcpClient()
158 ifname.c_str(), bIpv6); in StartDhcpClient()
211 ErrCode DhcpClientProxy::StopDhcpClient(const std::string& ifname, bool bIpv6) in StopDhcpClient() argument
226 data.WriteBool(bIpv6); in StopDhcpClient()
227 DHCP_LOGI("%{public}s, calling uid:%{public}d, ifname:%{public}s, bIpv6:%{public}d", __func__, GetCallingUid(), in StopDhcpClient()
228 ifname.c_str(), bIpv6); in StopDhcpClient()
H A Ddhcp_client_impl.h39 ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) override;
41 ErrCode StopDhcpClient(const std::string& ifname, bool bIpv6) override;
H A Ddhcp_client_proxy_lite.cpp137 ErrCode DhcpClientProxy::StartDhcpClient(const std::string& ifname, bool bIpv6) in StartDhcpClient() argument
157 (void)WriteBool(&req, bIpv6); in StartDhcpClient()
214 ErrCode DhcpClientProxy::StopDhcpClient(const std::string& ifname, bool bIpv6) in StopDhcpClient() argument
233 (void)WriteBool(&req, bIpv6); in StopDhcpClient()
H A Ddhcp_client_proxy.h50 ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) override;
52 ErrCode StopDhcpClient(const std::string& ifname, bool bIpv6) override;
/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_client_service_impl.h64 ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) 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);
/foundation/communication/netmanager_base/services/netmanagernative/src/
H A Ddhcp_controller.cpp81 void DhcpController::StartClient(const std::string &iface, bool bIpv6) in StartClient() argument
91 NETNATIVE_LOGI("DhcpController StartDhcpClient iface[%{public}s] ipv6[%{public}d]", iface.c_str(), bIpv6); in StartClient()
92 if (StartDhcpClient(iface.c_str(), bIpv6) != DHCP_SUCCESS) { in StartClient()
97 void DhcpController::StopClient(const std::string &iface, bool bIpv6) in StopClient() argument
99 NETNATIVE_LOGI("DhcpController StopDhcpClient iface[%{public}s] ipv6[%{public}d]", iface.c_str(), bIpv6); in StopClient()
100 if (StopDhcpClient(iface.c_str(), bIpv6) != DHCP_SUCCESS) { in StopClient()
/foundation/communication/dhcp/interfaces/inner_api/
H A Ddhcp_client.h34 virtual ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) = 0;
36 virtual ErrCode StopDhcpClient(const std::string& ifname, bool bIpv6) = 0;
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Ddhcp_controller.h42 void StartClient(const std::string &iface, bool bIpv6);
43 void StopClient(const std::string &iface, bool bIpv6);
/foundation/communication/dhcp/frameworks/native/interfaces/
H A Di_dhcp_client.h44 virtual ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) = 0;
46 virtual ErrCode StopDhcpClient(const std::string& ifname, bool bIpv6) = 0;
/foundation/communication/dhcp/interfaces/kits/c/
H A Ddhcp_c_api.h46 * @param bIpv6 - can or not get ipv6 [in]
49 DhcpErrorCode StartDhcpClient(const char *ifname, bool bIpv6);
62 * @param bIpv6 - can or not get ipv6 [in]
65 DhcpErrorCode StopDhcpClient(const char *ifname, bool bIpv6);
/foundation/communication/netmanager_ext/services/ethernetmanager/include/
H A Dethernet_dhcp_controller.h51 void StartClient(const std::string &iface, bool bIpv6);
52 void StopClient(const std::string &iface, bool bIpv6);
/foundation/communication/dhcp/frameworks/native/c_adapter/src/
H A Ddhcp_c_service.cpp77 NO_SANITIZE("cfi") DhcpErrorCode StartDhcpClient(const char *ifname, bool bIpv6) in StartDhcpClient() argument
81 return GetCErrorCode(dhcpClientPtr->StartDhcpClient(ifname, bIpv6)); in StartDhcpClient()
94 NO_SANITIZE("cfi") DhcpErrorCode StopDhcpClient(const char *ifname, bool bIpv6) in StopDhcpClient() argument
100 return GetCErrorCode(dhcpClientPtr->StopDhcpClient(ifname, bIpv6)); in StopDhcpClient()
/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dmock_netsys_native_client.h436 * @param bIpv6 network blocking
439 int32_t StartDhcpClient(const std::string &iface, bool bIpv6);
444 * @param bIpv6 network blocking
447 int32_t StopDhcpClient(const std::string &iface, bool bIpv6);
/foundation/communication/netmanager_base/services/netsyscontroller/src/
H A Dmock_netsys_native_client.cpp577 int32_t MockNetsysNativeClient::StartDhcpClient(const std::string &iface, bool bIpv6) in StartDhcpClient() argument
579 NETMGR_LOG_D("StartDhcpClient: iface[%{public}s], bIpv6[%{public}d]", iface.c_str(), in StartDhcpClient()
580 bIpv6); in StartDhcpClient()
584 int32_t MockNetsysNativeClient::StopDhcpClient(const std::string &iface, bool bIpv6) in StopDhcpClient() argument
586 NETMGR_LOG_D("StopDhcpClient: iface[%{public}s], bIpv6[%{public}d]", iface.c_str(), in StopDhcpClient()
587 bIpv6); in StopDhcpClient()
H A Dnetsys_controller.cpp883 int32_t NetsysController::StartDhcpClient(const std::string &iface, bool bIpv6) in StartDhcpClient() argument
885 NETMGR_LOG_I("StartDhcpClient: iface[%{public}s], bIpv6[%{public}d]", iface.c_str(), bIpv6); in StartDhcpClient()
892 return netsysService_->StartDhcpClient(iface, bIpv6); in StartDhcpClient()
895 int32_t NetsysController::StopDhcpClient(const std::string &iface, bool bIpv6) in StopDhcpClient() argument
897 NETMGR_LOG_I("StopDhcpClient: iface[%{public}s], bIpv6[%{public}d]", iface.c_str(), bIpv6); in StopDhcpClient()
904 return netsysService_->StopDhcpClient(iface, bIpv6); in StopDhcpClient()
H A Dnetsys_controller_service_impl.cpp565 int32_t NetsysControllerServiceImpl::StartDhcpClient(const std::string &iface, bool bIpv6) in StartDhcpClient() argument
569 return mockNetsysClient_.StartDhcpClient(iface, bIpv6); in StartDhcpClient()
571 return netsysClient_.StartDhcpClient(iface, bIpv6); in StartDhcpClient()
574 int32_t NetsysControllerServiceImpl::StopDhcpClient(const std::string &iface, bool bIpv6) in StopDhcpClient() argument
578 return mockNetsysClient_.StopDhcpClient(iface, bIpv6); in StopDhcpClient()
580 return netsysClient_.StopDhcpClient(iface, bIpv6); in StopDhcpClient()
/foundation/communication/netmanager_ext/test/ethernetmanager/fuzztest/ethernetclient_fuzzer/
H A Dethernet_client_fuzzer.cpp387 bool bIpv6 = GetData<uint32_t>() % CREATE_BOOL_TYPE_VALUE == 0; in EthernetDhcpControllerFuzzTest() local
388 ethernetDhcpController->StartClient(iface, bIpv6); in EthernetDhcpControllerFuzzTest()
390 ethernetDhcpController->StopClient(iface, bIpv6); in EthernetDhcpControllerFuzzTest()

Completed in 14 milliseconds

12