Home
last modified time | relevance | path

Searched refs:DHCP (Results 1 – 25 of 205) sorted by relevance

123456789

/ohos5.0/foundation/communication/dhcp/
H A DREADME.md1 # DHCP组件
4 动态主机配置协议 DHCP(Dynamic Host Configuration Protocol,动态主机配置协议) 是 RFC 1541定义的标准协议,该协议允许服务器向客户端动态分配IP地址和…
6 1、DHCP客户端:通常为网络中的手机、PC、打印机等终端设备,使用从DHCP服务器分配下来的IP信息,包括IP地址、默认网关及DNS等。
8 2、DHCP服务器:用于管理所有的IP网络信息,并处理客户端的DHCP请求,为接入的客户端分配IP地址、子网掩码、默认网关等内容。
11 如下图所示,DhcpService类提供外部管理DHCP模块服务的接口,其中包含了DHCP客户端服务的启动、停止及结果获取,DHCP服务端的启动、停止及地址池和租约表的管理等等,方便其它各子系统业务…
18 2. 通过IDhcpService实例启动DHCP功能(Client/Server);
20 4. Server端通过GetDhcpSerProExit获取DHCP Server异常退出的通知。
H A DREADME.en.md4DHCP) is a standard protocol defined by RFC 1541 that allows servers to dynamically assign IP addr…
6 1. DHCP client: it is usually mobile phones, PCs, printers and other terminal devices in the networ…
8 2. DHCP server: used to manage all IP network information, and process the client's DHCP request, a…
12DHCP module services, including start, stop and result acquisition of DHCP client services. start,…
19 2. Start DHCP function (Client/Server) through IDhcpService instance;
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_result.cpp33 …OHOS::sptr<OHOS::DHCP::DhcpClientServiceImpl> clientImpl = OHOS::DHCP::DhcpClientServiceImpl::GetI… in PublishDhcpIpv4Result()
35 …std::shared_ptr<OHOS::DHCP::DhcpClientServiceImpl> clientImpl = OHOS::DHCP::DhcpClientServiceImpl:… in PublishDhcpIpv4Result()
43 if (clientImpl->DhcpIpv4ResultSuccess(ipResult) != OHOS::DHCP::DHCP_OPT_SUCCESS) { 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()
59 if (clientImpl->DhcpOfferResultSuccess(ipResult) != OHOS::DHCP::DHCP_OPT_SUCCESS) { in PublishDhcpIpv4Result()
65 if (clientImpl->DhcpIpv4ResultFail(ipResult) != OHOS::DHCP::DHCP_OPT_SUCCESS) { in PublishDhcpIpv4Result()
81 …OHOS::sptr<OHOS::DHCP::DhcpClientServiceImpl> clientImpl = OHOS::DHCP::DhcpClientServiceImpl::GetI… in DhcpIpv6TimerCallbackEvent()
83 …std::shared_ptr<OHOS::DHCP::DhcpClientServiceImpl> clientImpl = OHOS::DHCP::DhcpClientServiceImpl:… in DhcpIpv6TimerCallbackEvent()
85 …if ((clientImpl != nullptr) && (clientImpl->DhcpIpv6ResultTimeOut(ifname) != OHOS::DHCP::DHCP_OPT_… in DhcpIpv6TimerCallbackEvent()
H A Ddhcp_client_service_impl.cpp43 namespace DHCP { namespace
379 OHOS::DHCP::DhcpResult result; in DhcpIpv4ResultSuccess()
420 return OHOS::DHCP::DHCP_OPT_SUCCESS; in DhcpIpv4ResultSuccess()
426 OHOS::DHCP::DhcpResult result; in DhcpOfferResultSuccess()
455 return OHOS::DHCP::DHCP_OPT_SUCCESS; in DhcpOfferResultSuccess()
461 OHOS::DHCP::DhcpResult result; in DhcpIpv4ResultFail()
492 return OHOS::DHCP::DHCP_OPT_SUCCESS; in DhcpIpv4ResultFail()
522 return OHOS::DHCP::DHCP_OPT_SUCCESS; in DhcpIpv4ResultTimeOut()
540 return OHOS::DHCP::DHCP_OPT_SUCCESS; in DhcpIpv4ResultExpired()
552 OHOS::DHCP::DhcpResult result; in DhcpIpv6ResulCallback()
[all …]
/ohos5.0/foundation/communication/dhcp/services/utils/
H A Dlibdhcp_util.map5 "OHOS::DHCP::Ip4IntConvertToStr(unsigned int, bool)";
7 "OHOS::DHCP::IntIpv4ToAnonymizeStr(unsigned int)";
8 "OHOS::DHCP::DhcpPermissionUtils::VerifyIsNativeProcess()";
10 "OHOS::DHCP::DhcpArpChecker::DhcpArpChecker()";
11 "OHOS::DHCP::GetElapsedSecondsSinceBoot()";
12 "OHOS::DHCP::DhcpSysTimer::DhcpSysTimer(bool, unsigned long, bool, bool)";
13 "OHOS::DHCP::DhcpSysTimer::DhcpSysTimer(bool, unsigned long long, bool, bool)";
17 "OHOS::DHCP::DhcpArpChecker::DoArpCheck(int, bool, unsigned long&)";
18 "OHOS::DHCP::DhcpArpChecker::DoArpCheck(int, bool, unsigned long long&)";
19 "OHOS::DHCP::DhcpArpChecker::~DhcpArpChecker()";
[all …]
/ohos5.0/foundation/communication/dhcp/test/fuzztest/dhcpfunction_fuzzer/
H A Ddhcpfunction_fuzzer.cpp25 namespace DHCP { namespace
170 OHOS::DHCP::Ip4StrConToIntTest(data, size); in LLVMFuzzerTestOneInput()
173 OHOS::DHCP::CheckIpStrTest(data, size); in LLVMFuzzerTestOneInput()
174 OHOS::DHCP::IsExistFileTest(data, size); in LLVMFuzzerTestOneInput()
175 OHOS::DHCP::CreateFileTest(data, size); in LLVMFuzzerTestOneInput()
176 OHOS::DHCP::RemoveFileTest(data, size); in LLVMFuzzerTestOneInput()
180 OHOS::DHCP::FormatStringTest(data, size); in LLVMFuzzerTestOneInput()
181 OHOS::DHCP::InitPidfileTest(data, size); in LLVMFuzzerTestOneInput()
182 OHOS::DHCP::GetPIDTest(data, size); in LLVMFuzzerTestOneInput()
184 OHOS::DHCP::CreateDirsTest(data, size); in LLVMFuzzerTestOneInput()
[all …]
/ohos5.0/foundation/communication/dhcp/frameworks/native/c_adapter/src/
H A Ddhcp_c_service.cpp26 std::shared_ptr<OHOS::DHCP::DhcpClient> dhcpClientPtr = nullptr;
27 std::shared_ptr<OHOS::DHCP::DhcpServer> dhcpServerPtr = nullptr;
42 dhcpClientPtr = OHOS::DHCP::DhcpClient::GetInstance(DHCP_CLIENT_ABILITY_ID); in RegisterDhcpClientCallBack()
88 OHOS::DHCP::RouterConfig routerConfig; in SetConfiguration()
108 dhcpServerPtr = OHOS::DHCP::DhcpServer::GetInstance(DHCP_SERVER_ABILITY_ID); in RegisterDhcpServerCallBack()
128 dhcpServerPtr = OHOS::DHCP::DhcpServer::GetInstance(DHCP_SERVER_ABILITY_ID); in StartDhcpServer()
138 dhcpServerPtr = OHOS::DHCP::DhcpServer::GetInstance(DHCP_SERVER_ABILITY_ID); in StopDhcpServer()
159 dhcpServerPtr = OHOS::DHCP::DhcpServer::GetInstance(DHCP_SERVER_ABILITY_ID); in SetDhcpRange()
164 OHOS::DHCP::DhcpRange rangeNew; in SetDhcpRange()
176 dhcpServerPtr = OHOS::DHCP::DhcpServer::GetInstance(DHCP_SERVER_ABILITY_ID); in SetDhcpName()
[all …]
/ohos5.0/foundation/communication/dhcp/frameworks/native/include/
H A Ddhcp_event.h32 class DhcpClientCallBack : public OHOS::DHCP::IDhcpClientCallBack {
37 …void OnIpSuccessChanged(int status, const std::string& ifname, OHOS::DHCP::DhcpResult& result) ove…
40 …void OnDhcpOfferReport(int status, const std::string& ifname, OHOS::DHCP::DhcpResult& result) over…
46 void ResultInfoCopy(DhcpResult &dhcpResult, OHOS::DHCP::DhcpResult& result);
53 class DhcpServerCallBack : public OHOS::DHCP::IDhcpServerCallBack {
/ohos5.0/foundation/communication/dhcp/services/
H A Ddhcp_logger.h28 namespace DHCP {
35 …static constexpr OHOS::HiviewDFX::HiLogLabel DHCP_LOG_LABEL = {LOG_CORE, OHOS::DHCP::LOG_ID_DHCP_D…
51 static constexpr OHOS::DHCP::LogLable DHCP_LOG_LABEL = {OHOS::DHCP::LOG_ID_DHCP_DHCP, name};
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-shell-net-dhclient.md23 | &lt;netif&nbsp;name&gt; | Enables Dynamic Host Configuration Protocol (DHCP) for a networ…
24 | -x&nbsp;&lt;netif&nbsp;name&gt; | Disables DHCP for a NIC. | NIC name, **eth0*…
41 Example 1: Enable DHCP for eth0.
56 Example 2: Disable DHCP for eth0.
/ohos5.0/foundation/communication/dhcp/test/fuzztest/dhcpclientcbkstub_fuzzer/
H A Ddhcpclientcbkstub_fuzzer.cpp24 namespace DHCP { namespace
47 if ((data == nullptr) || (size <= OHOS::DHCP::U32_AT_SIZE_ZERO)) { in LLVMFuzzerTestOneInput()
50 OHOS::DHCP::OnGetSupportedFeaturesTest(data, size); in LLVMFuzzerTestOneInput()
/ohos5.0/foundation/communication/dhcp/test/fuzztest/dhcpservercbkstub_fuzzer/
H A Ddhcpservercbkstub_fuzzer.cpp25 namespace DHCP { namespace
48 if ((data == nullptr) || (size <= OHOS::DHCP::U32_AT_SIZE_ZERO)) { in LLVMFuzzerTestOneInput()
51 OHOS::DHCP::OnGetSupportedFeaturesTest(data, size); in LLVMFuzzerTestOneInput()
/ohos5.0/foundation/communication/dhcp/test/fuzztest/serverstub_fuzzer/
H A Dserverstub_fuzzer.cpp28 namespace DHCP { namespace
56 if ((data == nullptr) || (size <= OHOS::DHCP::U32_AT_SIZE_ZERO)) { in LLVMFuzzerTestOneInput()
60 OHOS::DHCP::OnGetSupportedFeaturesTest(data, size); in LLVMFuzzerTestOneInput()
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/
H A Dlibdhcp_client.map5 …"OHOS::DHCP::DhcpClientStub::OnRemoteRequest(uint32_t, MessageParcel&, MessageParcel&, MessageOpti…
6 "OHOS::DHCP::DhcpClientServiceImpl::GetInstance()";
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/
H A Dlibdhcp_server.map5 …"OHOS::DHCP::DhcpServerStub::OnRemoteRequest(uint32_t, MessageParcel&, MessageParcel&, MessageOpti…
6 "OHOS::DHCP::DhcpServerServiceImpl::GetInstance()";
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_result_store_manager_test.cpp47 DHCP::DhcpResultStoreManager::GetInstance().SaveIpInfoInLocalFile(ipInfoCached);
60 DHCP::DhcpResultStoreManager::GetInstance().GetCachedIp(targetBssid, ipInfo);
H A Ddhcp_client_service_impl_test.cpp29 namespace DHCP { namespace
39 dhcpClientImpl = std::make_unique<OHOS::DHCP::DhcpClientServiceImpl>(); in SetUp()
48 std::unique_ptr<OHOS::DHCP::DhcpClientServiceImpl> dhcpClientImpl;
224 OHOS::DHCP::DhcpResult result;
238 OHOS::DHCP::DhcpResult result;
H A Ddhcp_result_test.cpp24 using namespace OHOS::DHCP;
26 namespace DHCP { namespace
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_dhcpd_test.cpp27 using namespace OHOS::DHCP;
29 namespace DHCP { namespace
H A Ddhcp_server_service_impl_test.cpp28 using namespace OHOS::DHCP;
30 namespace DHCP { namespace
39 pServerServiceImpl = std::make_unique<OHOS::DHCP::DhcpServerServiceImpl>(); in SetUp()
48 std::unique_ptr<OHOS::DHCP::DhcpServerServiceImpl> pServerServiceImpl;
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_client_service_impl.h34 namespace DHCP {
84 void PushDhcpResult(const std::string &ifname, OHOS::DHCP::DhcpResult &result);
85 bool CheckDhcpResultExist(const std::string &ifname, OHOS::DHCP::DhcpResult &result);
/ohos5.0/docs/zh-cn/device-dev/quick-start/
H A Dquickstart-pkg-3861-running.md16 3. 依次执行如下AT命令,启动STA模式,连接指定AP热点,并开启DHCP功能。
24 AT+DHCP=wlan0,1 # 通过DHCP向AP请求wlan0的IP地址
H A Dquickstart-ide-3861-running.md20 3. 在DevEco的串口终端中,依次执行如下AT命令,启动STA模式,连接指定AP热点,并开启DHCP功能。
28 AT+DHCP=wlan0,1 # 通过DHCP向AP请求wlan0的IP地址
/ohos5.0/foundation/communication/dhcp/test/fuzztest/dhcpclient_fuzzer/
H A Ddhcpclient_fuzzer.cpp21 namespace DHCP { namespace
48 OHOS::DHCP::DhcpClientFuzzerTest(data, size); in LLVMFuzzerTestOneInput()
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_management.cpp164 if ((mode == DHCP || mode == LAN_DHCP) && !dhcpReqState) { in UpdateInterfaceState()
174 if ((mode == DHCP || mode == LAN_DHCP) && dhcpReqState) { in UpdateInterfaceState()
272 if (cfg->mode_ == DHCP || cfg->mode_ == LAN_DHCP) { in UpdateDevInterfaceCfg()
278 } else if (cfg->mode_ == DHCP) { in UpdateDevInterfaceCfg()
507 ifCfg->mode_ = DHCP; in DevInterfaceAdd()
537 if (origin == STATIC || origin == DHCP) { in ModeInputCheck()
542 if (input == STATIC || input == DHCP) { in ModeInputCheck()

123456789