/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
H A D | ethernet_dhcp_controller.cpp | 57 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 D | mock_dhcp_service.cpp | 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()
|
H A D | mock_dhcp_service.h | 26 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 D | dhcp_client_service_impl_test.cpp | 57 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 D | dhcp_client_stub_lite.cpp | 130 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 D | dhcp_client_service_impl.cpp | 241 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 D | dhcp_client_stub.cpp | 144 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 D | dhcp_client_impl.cpp | 128 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 D | dhcp_client_proxy.cpp | 140 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 D | dhcp_client_impl.h | 39 ErrCode StartDhcpClient(const std::string& ifname, bool bIpv6) override; 41 ErrCode StopDhcpClient(const std::string& ifname, bool bIpv6) override;
|
H A D | dhcp_client_proxy_lite.cpp | 137 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 D | dhcp_client_proxy.h | 50 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 D | dhcp_client_service_impl.h | 64 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 D | dhcp_controller.cpp | 81 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 D | dhcp_client.h | 34 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 D | dhcp_controller.h | 42 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 D | i_dhcp_client.h | 44 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 D | dhcp_c_api.h | 46 * @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 D | ethernet_dhcp_controller.h | 51 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 D | dhcp_c_service.cpp | 77 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 D | mock_netsys_native_client.h | 436 * @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 D | mock_netsys_native_client.cpp | 577 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 D | netsys_controller.cpp | 883 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 D | netsys_controller_service_impl.cpp | 565 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 D | ethernet_client_fuzzer.cpp | 387 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()
|