Home
last modified time | relevance | path

Searched refs:staticIpAddress (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Dmessage_parcel_utils_test.cpp58 config.wifiIpConfig.staticIpAddress.ipAddress.address.family = -1;
60 config.wifiIpConfig.staticIpAddress.ipAddress.prefixLength = 0;
61 config.wifiIpConfig.staticIpAddress.ipAddress.flags = 0;
62 config.wifiIpConfig.staticIpAddress.ipAddress.scope = 0;
63 config.wifiIpConfig.staticIpAddress.gateway.family = -1;
64 config.wifiIpConfig.staticIpAddress.gateway.addressIpv4 = 0;
65 config.wifiIpConfig.staticIpAddress.dnsServer1.family = -1;
66 config.wifiIpConfig.staticIpAddress.dnsServer1.addressIpv4 = 0;
67 config.wifiIpConfig.staticIpAddress.dnsServer2.family = -1;
68 config.wifiIpConfig.staticIpAddress.dnsServer2.addressIpv4 = 0;
[all …]
/ohos5.0/base/customization/enterprise_device_management/common/native/src/plugin_utils/
H A Dmessage_parcel_utils.cpp46 data.WriteInt32(config.wifiIpConfig.staticIpAddress.ipAddress.flags); in WriteWifiDeviceConfig()
47 data.WriteInt32(config.wifiIpConfig.staticIpAddress.ipAddress.scope); in WriteWifiDeviceConfig()
48 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.gateway); in WriteWifiDeviceConfig()
49 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer1); in WriteWifiDeviceConfig()
50 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer2); in WriteWifiDeviceConfig()
51 data.WriteString(config.wifiIpConfig.staticIpAddress.domains); in WriteWifiDeviceConfig()
108 config.wifiIpConfig.staticIpAddress.ipAddress.flags = data.ReadInt32(); in ReadWifiDeviceConfig()
110 ReadIpAddress(data, config.wifiIpConfig.staticIpAddress.gateway); in ReadWifiDeviceConfig()
111 ReadIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer1); in ReadWifiDeviceConfig()
112 ReadIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer2); in ReadWifiDeviceConfig()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/config/
H A Dwifi_config_file_spec.cpp75 item.staticIpAddress.ipAddress.prefixLength = 0; in ClearWifiIpConfig()
76 item.staticIpAddress.ipAddress.flags = 0; in ClearWifiIpConfig()
77 item.staticIpAddress.ipAddress.scope = 0; in ClearWifiIpConfig()
78 item.staticIpAddress.gateway.family = 0; in ClearWifiIpConfig()
79 item.staticIpAddress.gateway.addressIpv4 = 0; in ClearWifiIpConfig()
81 item.staticIpAddress.dnsServer1.family = 0; in ClearWifiIpConfig()
82 item.staticIpAddress.dnsServer1.addressIpv4 = 0; in ClearWifiIpConfig()
84 item.staticIpAddress.dnsServer2.family = 0; in ClearWifiIpConfig()
85 item.staticIpAddress.dnsServer2.addressIpv4 = 0; in ClearWifiIpConfig()
87 item.staticIpAddress.domains.clear(); in ClearWifiIpConfig()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/
H A Dwifi_device_stub_lite.cpp110 ReadIpAddress(req, config.wifiIpConfig.staticIpAddress.ipAddress.address); in ReadWifiDeviceConfig()
112 (void)ReadInt32(req, &config.wifiIpConfig.staticIpAddress.ipAddress.flags); in ReadWifiDeviceConfig()
113 (void)ReadInt32(req, &config.wifiIpConfig.staticIpAddress.ipAddress.scope); in ReadWifiDeviceConfig()
114 ReadIpAddress(req, config.wifiIpConfig.staticIpAddress.gateway); in ReadWifiDeviceConfig()
115 ReadIpAddress(req, config.wifiIpConfig.staticIpAddress.dnsServer1); in ReadWifiDeviceConfig()
116 ReadIpAddress(req, config.wifiIpConfig.staticIpAddress.dnsServer2); in ReadWifiDeviceConfig()
117 config.wifiIpConfig.staticIpAddress.domains = (char *)ReadString(req, &size); in ReadWifiDeviceConfig()
188 WriteIpAddress(reply, config.wifiIpConfig.staticIpAddress.ipAddress.address); in WriteWifiDeviceConfig()
192 WriteIpAddress(reply, config.wifiIpConfig.staticIpAddress.gateway); in WriteWifiDeviceConfig()
193 WriteIpAddress(reply, config.wifiIpConfig.staticIpAddress.dnsServer1); in WriteWifiDeviceConfig()
[all …]
H A Dwifi_device_stub.cpp398 config.wifiIpConfig.staticIpAddress.ipAddress.flags = data.ReadInt32(); in ReadWifiDeviceConfig()
400 ReadIpAddress(data, config.wifiIpConfig.staticIpAddress.gateway); in ReadWifiDeviceConfig()
401 ReadIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer1); in ReadWifiDeviceConfig()
402 ReadIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer2); in ReadWifiDeviceConfig()
403 config.wifiIpConfig.staticIpAddress.domains = data.ReadString(); in ReadWifiDeviceConfig()
504 reply.WriteInt32(config.wifiIpConfig.staticIpAddress.ipAddress.flags); in WriteWifiDeviceConfig()
505 reply.WriteInt32(config.wifiIpConfig.staticIpAddress.ipAddress.scope); in WriteWifiDeviceConfig()
506 WriteIpAddress(reply, config.wifiIpConfig.staticIpAddress.gateway); in WriteWifiDeviceConfig()
507 WriteIpAddress(reply, config.wifiIpConfig.staticIpAddress.dnsServer1); in WriteWifiDeviceConfig()
508 WriteIpAddress(reply, config.wifiIpConfig.staticIpAddress.dnsServer2); in WriteWifiDeviceConfig()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_device_proxy.cpp331 data.WriteInt32(config.wifiIpConfig.staticIpAddress.ipAddress.flags); in WriteDeviceConfig()
332 data.WriteInt32(config.wifiIpConfig.staticIpAddress.ipAddress.scope); in WriteDeviceConfig()
333 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.gateway); in WriteDeviceConfig()
334 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer1); in WriteDeviceConfig()
335 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.dnsServer2); in WriteDeviceConfig()
336 data.WriteString(config.wifiIpConfig.staticIpAddress.domains); in WriteDeviceConfig()
721 ReadIpAddress(reply, config.wifiIpConfig.staticIpAddress.gateway); in ParseSmallConfig()
724 config.wifiIpConfig.staticIpAddress.domains = reply.ReadString(); in ParseSmallConfig()
2333 ReadIpAddress(reply, config.wifiIpConfig.staticIpAddress.gateway); in ReadDeviceConfig()
2334 ReadIpAddress(reply, config.wifiIpConfig.staticIpAddress.dnsServer1); in ReadDeviceConfig()
[all …]
H A Dwifi_device_proxy_lite.cpp127 ReadIpAddress(reply, config.wifiIpConfig.staticIpAddress.ipAddress.address); in ParseDeviceConfigs()
131 ReadIpAddress(reply, config.wifiIpConfig.staticIpAddress.gateway); in ParseDeviceConfigs()
132 ReadIpAddress(reply, config.wifiIpConfig.staticIpAddress.dnsServer1); in ParseDeviceConfigs()
133 ReadIpAddress(reply, config.wifiIpConfig.staticIpAddress.dnsServer2); in ParseDeviceConfigs()
594 WriteIpAddress(req, config.wifiIpConfig.staticIpAddress.ipAddress.address); in WriteDeviceConfig()
596 (void)WriteInt32(&req, config.wifiIpConfig.staticIpAddress.ipAddress.flags); in WriteDeviceConfig()
597 (void)WriteInt32(&req, config.wifiIpConfig.staticIpAddress.ipAddress.scope); in WriteDeviceConfig()
598 WriteIpAddress(req, config.wifiIpConfig.staticIpAddress.gateway); in WriteDeviceConfig()
599 WriteIpAddress(req, config.wifiIpConfig.staticIpAddress.dnsServer1); in WriteDeviceConfig()
600 WriteIpAddress(req, config.wifiIpConfig.staticIpAddress.dnsServer2); in WriteDeviceConfig()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/precompiled_macro/
H A Dsta_state_machine_test.cpp96 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressSuccess1() local
102 EXPECT_TRUE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressSuccess1()
113 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressSuccess2() local
118 EXPECT_TRUE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressSuccess2()
128 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressSuccess3() local
134 EXPECT_TRUE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressSuccess3()
140 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressFail() local
146 EXPECT_FALSE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressFail()
/ohos5.0/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/
H A Dwifi_manager_proxy_test.cpp111 config.wifiIpConfig.staticIpAddress.ipAddress.address.addressIpv6 = { 0x01 };
131 config.wifiIpConfig.staticIpAddress.ipAddress.address.addressIpv6 = { 0x01 };
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dnetwork_parser.cpp177 ipConfig.staticIpAddress.ipAddress.address.SetIpv4Address(ipAddress); in ParseIpConfig()
181 … ipConfig.staticIpAddress.ipAddress.prefixLength = GetPrimValue<int>(node, PrimType::INT); in ParseIpConfig()
185 ipConfig.staticIpAddress.gateway.SetIpv4Address(GetStringValue(node)); in ParseIpConfig()
191 ipConfig.staticIpAddress.dnsServer1.SetIpv4Address(dnsArr[0]); in ParseIpConfig()
192 ipConfig.staticIpAddress.dnsServer2.SetIpv4Address(dnsArr[1]); in ParseIpConfig()
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/wifi_manager/src/
H A Dwifi_manager_addon.cpp451 ipConfig.staticIpAddress.ipAddress.address.addressIpv4) || in ConfigStaticIp()
453 ipConfig.staticIpAddress.gateway.addressIpv4) || in ConfigStaticIp()
455 ipConfig.staticIpAddress.ipAddress.prefixLength) || in ConfigStaticIp()
459 ipConfig.staticIpAddress.ipAddress.address.family = 0; in ConfigStaticIp()
469 napi_get_value_uint32(env, primaryDns, &ipConfig.staticIpAddress.dnsServer1.addressIpv4); in ConfigStaticIp()
470 napi_get_value_uint32(env, secondDns, &ipConfig.staticIpAddress.dnsServer2.addressIpv4); in ConfigStaticIp()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_state_machine.cpp3249 bool StaStateMachine::ConfigStaticIpAddress(StaticIpAddress &staticIpAddress) in ConfigStaticIpAddress() argument
3262 staticIpAddress.gateway.GetIpv4Address().c_str()) != EOK) { in ConfigStaticIpAddress()
3269 staticIpAddress.dnsServer1.GetIpv4Address().c_str()) != EOK) { in ConfigStaticIpAddress()
3273 staticIpAddress.dnsServer2.GetIpv4Address().c_str()) != EOK) { in ConfigStaticIpAddress()
3287 staticIpAddress.gateway.GetIpv6Address().c_str()) != EOK) { in ConfigStaticIpAddress()
3294 staticIpAddress.dnsServer1.GetIpv6Address().c_str()) != EOK) { in ConfigStaticIpAddress()
3298 staticIpAddress.dnsServer2.GetIpv6Address().c_str()) != EOK) { in ConfigStaticIpAddress()
3311 staticIpAddress.gateway.GetIpv4Address().c_str()) != EOK) { in ConfigStaticIpAddress()
3315 staticIpAddress.GetIpv4Mask().c_str()) != EOK) { in ConfigStaticIpAddress()
3319 staticIpAddress.dnsServer1.GetIpv4Address().c_str()) != EOK) { in ConfigStaticIpAddress()
[all …]
H A Dsta_state_machine.h705 bool ConfigStaticIpAddress(StaticIpAddress &staticIpAddress);
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_device.cpp424 cppConfig.wifiIpConfig.staticIpAddress.ipAddress.address.addressIpv4); in ConfigStaticIp()
425 cppConfig.wifiIpConfig.staticIpAddress.ipAddress.address.family = 0; in ConfigStaticIp()
426 …JsObjectToUint(env, staticIp, "gateway", cppConfig.wifiIpConfig.staticIpAddress.gateway.addressIpv… in ConfigStaticIp()
427 …JsObjectToInt(env, staticIp, "prefixLength", cppConfig.wifiIpConfig.staticIpAddress.ipAddress.pref… in ConfigStaticIp()
444 …napi_get_value_uint32(env, primaryDns, &cppConfig.wifiIpConfig.staticIpAddress.dnsServer1.addressI… in ConfigStaticIp()
445 …napi_get_value_uint32(env, secondDns, &cppConfig.wifiIpConfig.staticIpAddress.dnsServer2.addressIp… in ConfigStaticIp()
1191 …SetValueInt32(env, "ipAddress", wifiIpConfig.staticIpAddress.ipAddress.address.addressIpv4, ipCfgO… in IpConfigToJs()
1192 SetValueInt32(env, "gateway", wifiIpConfig.staticIpAddress.gateway.addressIpv4, ipCfgObj); in IpConfigToJs()
1197 std::vector<unsigned int> vecDns = {wifiIpConfig.staticIpAddress.dnsServer1.addressIpv4, in IpConfigToJs()
1198 wifiIpConfig.staticIpAddress.dnsServer2.addressIpv4}; in IpConfigToJs()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
H A Dwifi_c_device.cpp187 GetStaticIpFromC(config->staticIp, deviceConfig.wifiIpConfig.staticIpAddress); in ConvertDeviceConfigFromC()
219 GetStaticIpFromCpp(deviceConfig.wifiIpConfig.staticIpAddress, result->staticIp); in ConvertDeviceConfigFromCpp()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_state_machine_test.cpp1204 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressSuccess1() local
1211 EXPECT_TRUE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressSuccess1()
1221 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressSuccess2() local
1227 EXPECT_TRUE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressSuccess2()
1237 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressSuccess3() local
1243 EXPECT_TRUE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressSuccess3()
1249 StaticIpAddress staticIpAddress; in ConfigStaticIpAddressFail() local
1256 EXPECT_FALSE(pStaStateMachine->ConfigStaticIpAddress(staticIpAddress)); in ConfigStaticIpAddressFail()
/ohos5.0/foundation/communication/wifi/wifi/interfaces/inner_api/
H A Dwifi_msg.h381 StaticIpAddress staticIpAddress; variable