Home
last modified time | relevance | path

Searched refs:InterfaceConfiguration (Results 1 – 25 of 47) sorted by relevance

12

/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/include/
H A Dethernet_configuration.h41 std::map<std::string, sptr<InterfaceConfiguration>> &devCfgs);
42 bool ReadUserConfiguration(std::map<std::string, sptr<InterfaceConfiguration>> &devCfgs);
43 bool WriteUserConfiguration(const std::string &iface, sptr<InterfaceConfiguration> &cfg);
46 …sptr<InterfaceConfiguration> MakeInterfaceConfiguration(const sptr<InterfaceConfiguration> &devCfg,
51 void ParseBootProto(const std::string &fileContent, sptr<InterfaceConfiguration> cfg);
52 void ParseStaticConfig(const std::string &fileContent, sptr<InterfaceConfiguration> cfg);
55 std::map<std::string, sptr<InterfaceConfiguration>> &devCfgs,
58 … sptr<InterfaceConfiguration> ConvertJsonToConfiguration(const cJSON* const jsonData, bool isLan);
66 … void ParserFileHttpProxy(const std::string &fileContent, const sptr<InterfaceConfiguration> &cfg);
67 void ParserIfaceIpAndRoute(sptr<InterfaceConfiguration> &cfg, const std::string &rootNetMask);
[all …]
H A Ddev_interface_state.h45 void SetIfcfg(sptr<InterfaceConfiguration> &ifCfg);
46 void SetLancfg(sptr<InterfaceConfiguration> &ifCfg);
55 sptr<InterfaceConfiguration> GetIfcfg() const;
89 sptr<InterfaceConfiguration> ifCfg_ = nullptr;
H A Dethernet_management.h69 int32_t UpdateDevInterfaceCfg(const std::string &iface, sptr<InterfaceConfiguration> cfg);
70 int32_t GetDevInterfaceCfg(const std::string &iface, sptr<InterfaceConfiguration> &ifaceConfig);
93 std::map<std::string, sptr<InterfaceConfiguration>> devCfgs_;
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/ethernetclient/src/
H A Dinterface_configuration.cpp25 bool InterfaceConfiguration::Marshalling(Parcel &parcel) const in Marshalling()
41 sptr<InterfaceConfiguration> InterfaceConfiguration::Unmarshalling(Parcel &parcel) in Unmarshalling()
43 sptr<InterfaceConfiguration> ptr = new (std::nothrow) InterfaceConfiguration(); in Unmarshalling()
/ohos5.0/foundation/communication/netmanager_ext/interfaces/kits/js/
H A D@ohos.net.ethernet.d.ts43 function getIfaceConfig(iface: string, callback: AsyncCallback<InterfaceConfiguration>): void;
61 function getIfaceConfig(iface: string): Promise<InterfaceConfiguration>;
83 …function setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback<void>):…
105 function setIfaceConfig(iface: string, ic: InterfaceConfiguration): Promise<void>;
220 export interface InterfaceConfiguration {
/ohos5.0/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
H A Dethernet_service_proxy_test.cpp55 sptr<InterfaceConfiguration> GetIfaceConfig();
60 sptr<InterfaceConfiguration> EtherNetServiceProxyTest::GetIfaceConfig() in GetIfaceConfig()
62 sptr<InterfaceConfiguration> ic = (std::make_unique<InterfaceConfiguration>()).release(); in GetIfaceConfig()
133 sptr<InterfaceConfiguration> ic = GetIfaceConfig();
142 sptr<InterfaceConfiguration> ifaceConfig = new (std::nothrow) InterfaceConfiguration();
151 sptr<InterfaceConfiguration> ifaceConfig = new (std::nothrow) InterfaceConfiguration();
H A Dethernet_configuration_test.cpp63 std::map<std::string, sptr<InterfaceConfiguration>> devCfgs;
68 sptr<InterfaceConfiguration> cfg = (std::make_unique<InterfaceConfiguration>()).release();
89 sptr<InterfaceConfiguration> cfg2 = nullptr;
104 sptr<InterfaceConfiguration> configSptr = nullptr;
153 std::map<std::string, sptr<InterfaceConfiguration>> devCfgs;
167 std::map<std::string, sptr<InterfaceConfiguration>> devCfgs;
181 std::map<std::string, sptr<InterfaceConfiguration>> devCfgs;
207 std::map<std::string, sptr<InterfaceConfiguration>> devCfgs;
290 sptr<InterfaceConfiguration> configSptr = nullptr;
291 sptr<InterfaceConfiguration> devCfg = (std::make_unique<InterfaceConfiguration>()).release();
H A Dethernet_lan_management_test.cpp40 sptr<InterfaceConfiguration> GetNewIfaceConfig();
53 sptr<InterfaceConfiguration> EthernetLanManagementTest::GetNewIfaceConfig() in GetNewIfaceConfig()
55 sptr<InterfaceConfiguration> ic = (std::make_unique<InterfaceConfiguration>()).release(); in GetNewIfaceConfig()
85 sptr<InterfaceConfiguration> newIc = GetNewIfaceConfig();
115 sptr<InterfaceConfiguration> newIc = GetNewIfaceConfig();
H A Ddev_interface_state_test.cpp111 sptr<InterfaceConfiguration> ifCfg = new (std::nothrow) InterfaceConfiguration();
124 sptr<InterfaceConfiguration> ifCfg = new (std::nothrow) InterfaceConfiguration();
178 sptr<InterfaceConfiguration> ifCfg = new (std::nothrow) InterfaceConfiguration();
H A Dethernet_service_test.cpp53 sptr<InterfaceConfiguration> GetIfaceConfig();
58 sptr<InterfaceConfiguration> EtherNetServiceTest::GetIfaceConfig() in GetIfaceConfig()
60 sptr<InterfaceConfiguration> ic = (std::make_unique<InterfaceConfiguration>()).release(); in GetIfaceConfig()
220 sptr<InterfaceConfiguration> ic = GetIfaceConfig();
229 sptr<InterfaceConfiguration> ifaceConfig = GetIfaceConfig();
237 sptr<InterfaceConfiguration> ic = GetIfaceConfig();
350 sptr<InterfaceConfiguration> ic = nullptr;
400 sptr<InterfaceConfiguration> ic = nullptr;
453 sptr<InterfaceConfiguration> ic = nullptr;
H A Dethernet_manager_test.cpp116 sptr<InterfaceConfiguration> GetIfaceConfig();
130 sptr<InterfaceConfiguration> ic = (std::make_unique<InterfaceConfiguration>()).release(); in GetIfaceConfig()
215 sptr<InterfaceConfiguration> ic = GetIfaceConfig();
230 sptr<InterfaceConfiguration> ic = GetIfaceConfig();
247 sptr<InterfaceConfiguration> ic;
264 sptr<InterfaceConfiguration> ic;
588 sptr<InterfaceConfiguration> ic;
706 sptr<InterfaceConfiguration> ic = GetIfaceConfig();
793 sptr<InterfaceConfiguration> cfg;
806 sptr<InterfaceConfiguration> cfg;
[all …]
/ohos5.0/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/
H A Dinterface_configuration_test.cpp24 InterfaceConfiguration GetInterfaceConfiguration() in GetInterfaceConfiguration()
26 InterfaceConfiguration info; in GetInterfaceConfiguration()
56 InterfaceConfiguration data = GetInterfaceConfiguration();
58 auto result = InterfaceConfiguration::Unmarshalling(parcel);
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_configuration.cpp83 … std::map<std::string, sptr<InterfaceConfiguration>> &devCfgs, in ReadEthernetInterfaces()
121 sptr<InterfaceConfiguration> config = ConvertJsonToConfiguration(item, isLan); in ReadEthernetInterfaces()
160 sptr<InterfaceConfiguration> config = new (std::nothrow) InterfaceConfiguration(); in ConvertJsonToConfiguration()
186 bool EthernetConfiguration::ReadUserConfiguration(std::map<std::string, sptr<InterfaceConfiguration in ReadUserConfiguration()
206 sptr<InterfaceConfiguration> cfg = new (std::nothrow) InterfaceConfiguration(); in ReadUserConfiguration()
325 sptr<InterfaceConfiguration> EthernetConfiguration::MakeInterfaceConfiguration( in MakeInterfaceConfiguration()
326 const sptr<InterfaceConfiguration> &devCfg, const sptr<NetLinkInfo> &devLinkInfo) in MakeInterfaceConfiguration()
332 sptr<InterfaceConfiguration> cfg = new (std::nothrow) InterfaceConfiguration(); in MakeInterfaceConfiguration()
474 sptr<InterfaceConfiguration> cfg) in ParserFileConfig()
493 …rnetConfiguration::ParseBootProto(const std::string &fileContent, sptr<InterfaceConfiguration> cfg) in ParseBootProto()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A Djs-apis-net-ethernet-sys.md17 setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback\<void>): void
32 | ic | [InterfaceConfiguration](#interfaceconfiguration9) | 是 | 要设置的网络接口配置信息 …
56 let config: ethernet.InterfaceConfiguration = {
76 setIfaceConfig(iface: string, ic: InterfaceConfiguration): Promise\<void>
91 | ic | [InterfaceConfiguration](#interfaceconfiguration9) | 是 | 要设置的网络接口配置信息 |
120 let config: ethernet.InterfaceConfiguration = {
140 getIfaceConfig(iface: string, callback: AsyncCallback\<InterfaceConfiguration>): void
191 getIfaceConfig(iface: string): Promise\<InterfaceConfiguration>
211 | Promise\<[InterfaceConfiguration](#interfaceconfiguration9)> | 以Promise形式返回接口信息。 |
231 ethernet.getIfaceConfig("eth0").then((data: ethernet.InterfaceConfiguration) => {
[all …]
/ohos5.0/foundation/communication/netmanager_ext/interfaces/innerkits/ethernetclient/
H A Dlibethernet_kits.map17 VTT?for?OHOS::NetManagerStandard::InterfaceConfiguration;
18 vtable?for?OHOS::NetManagerStandard::InterfaceConfiguration;
27 …std::__h::allocator<char>> const&, OHOS::sptr<OHOS::NetManagerStandard::InterfaceConfiguration>&)";
29 …std::__h::allocator<char>> const&, OHOS::sptr<OHOS::NetManagerStandard::InterfaceConfiguration>&)";
43 …std::__h::allocator<char>> const&, OHOS::sptr<OHOS::NetManagerStandard::InterfaceConfiguration>&)";
52 …std::__h::allocator<char>> const&, OHOS::sptr<OHOS::NetManagerStandard::InterfaceConfiguration>&)";
/ohos5.0/foundation/communication/netmanager_ext/interfaces/innerkits/ethernetclient/include/
H A Dinterface_configuration.h30 struct InterfaceConfiguration : public Parcelable { struct
36 static sptr<InterfaceConfiguration> Unmarshalling(Parcel &parcel); argument
H A Dethernet_client.h51 int32_t SetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ic);
62 int32_t GetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ifaceConfig);
/ohos5.0/docs/zh-cn/application-dev/network/
H A Dnet-ethernet.md30 | setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback\<void>): void |…
31 | getIfaceConfig(iface: string, callback: AsyncCallback\<InterfaceConfiguration>): void | 获取指定以太网的网…
68 ethernet.getIfaceConfig("eth0").then((data: ethernet.InterfaceConfiguration) => {
114 let config: ethernet.InterfaceConfiguration = {
132 ethernet.getIfaceConfig("eth0").then((data: ethernet.InterfaceConfiguration) => {
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/
H A Djs-apis-net-ethernet-sys.md17 setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback\<void>): void
56 let config: ethernet.InterfaceConfiguration = {
76 setIfaceConfig(iface: string, ic: InterfaceConfiguration): Promise\<void>
91 | ic | [InterfaceConfiguration](#interfaceconfiguration9) | Yes | Network interface configurat…
120 let config: ethernet.InterfaceConfiguration = {
140 getIfaceConfig(iface: string, callback: AsyncCallback\<InterfaceConfiguration>): void
175 ethernet.getIfaceConfig("eth0", (error: BusinessError, value: ethernet.InterfaceConfiguration) => {
191 getIfaceConfig(iface: string): Promise\<InterfaceConfiguration>
211 | Promise\<[InterfaceConfiguration](#interfaceconfiguration9)> | Promise used to return the resul…
231 ethernet.getIfaceConfig("eth0").then((data: ethernet.InterfaceConfiguration) => {
[all …]
/ohos5.0/foundation/communication/netmanager_ext/interfaces/innerkits/ethernetclient/include/proxy/
H A Di_ethernet_service.h39 virtual int32_t SetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ic) = 0;
40 …virtual int32_t GetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ifaceConfig…
H A Dethernet_service_proxy.h33 int32_t SetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ic) override;
34 …int32_t GetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ifaceConfig) overri…
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/stub/
H A Dethernet_service_stub.cpp121 sptr<InterfaceConfiguration> ic = InterfaceConfiguration::Unmarshalling(data); in OnSetIfaceConfig()
134 sptr<InterfaceConfiguration> ifaceConfig = new (std::nothrow) InterfaceConfiguration(); in OnGetIfaceConfig()
/ohos5.0/foundation/communication/netmanager_ext/
H A DREADME_zh.md53 | ohos.net.ethernet | function setIfaceConfig\(iface: string, ic: InterfaceConfiguration, callback:…
54 | ohos.net.ethernet | function setIfaceConfig\(iface: string, ic: InterfaceConfiguration\): Promise…
55 … function getIfaceConfig\(iface: string, callback: AsyncCallback<InterfaceConfiguration\>\): void;…
56 | ohos.net.ethernet | function getIfaceConfig\(iface: string\): Promise<InterfaceConfiguration\>; |…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-communication.md377 |访问级别有变化|类名:InterfaceConfiguration;<br>方法or属性:mode: IPSetMode;<br>旧版本信息:|类名:InterfaceConfiguration;…
378 |访问级别有变化|类名:InterfaceConfiguration;<br>方法or属性:ipAddr: string;<br>旧版本信息:|类名:InterfaceConfiguration;<…
379 |访问级别有变化|类名:InterfaceConfiguration;<br>方法or属性:route: string;<br>旧版本信息:|类名:InterfaceConfiguration;<b…
380 |访问级别有变化|类名:InterfaceConfiguration;<br>方法or属性:gateway: string;<br>旧版本信息:|类名:InterfaceConfiguration;…
381 |访问级别有变化|类名:InterfaceConfiguration;<br>方法or属性:netMask: string;<br>旧版本信息:|类名:InterfaceConfiguration;…
534 |type有变化|类名:InterfaceConfiguration;<br>方法or属性:mode: IPSetMode;<br>旧版本信息:|类名:InterfaceConfiguration;…
535 |type有变化|类名:InterfaceConfiguration;<br>方法or属性:ipAddr: string;<br>旧版本信息:|类名:InterfaceConfiguration;<…
536 |type有变化|类名:InterfaceConfiguration;<br>方法or属性:route: string;<br>旧版本信息:|类名:InterfaceConfiguration;<b…
537 |type有变化|类名:InterfaceConfiguration;<br>方法or属性:gateway: string;<br>旧版本信息:|类名:InterfaceConfiguration;…
538 |type有变化|类名:InterfaceConfiguration;<br>方法or属性:netMask: string;<br>旧版本信息:|类名:InterfaceConfiguration;…
[all …]
/ohos5.0/docs/en/application-dev/network/
H A Dnet-ethernet.md30 | setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback\<void>): void |…
31 | getIfaceConfig(iface: string, callback: AsyncCallback\<InterfaceConfiguration>): void | Obtains t…
68 ethernet.getIfaceConfig("eth0").then((data: ethernet.InterfaceConfiguration) => {
114 let config: ethernet.InterfaceConfiguration = {
132 ethernet.getIfaceConfig("eth0").then((data: ethernet.InterfaceConfiguration) => {

12