/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | ethernet_service_proxy_test.cpp | 82 INetAddr gateway; in GetIfaceConfig() local 83 gateway.type_ = INetAddr::IPV4; in GetIfaceConfig() 84 gateway.family_ = 0x01; in GetIfaceConfig() 85 gateway.prefixlen_ = 0x01; in GetIfaceConfig() 86 gateway.address_ = "172.17.4.1"; in GetIfaceConfig() 87 gateway.netMask_ = "0.0.0.0"; in GetIfaceConfig() 88 gateway.hostName_ = "netAddr"; in GetIfaceConfig() 89 ic->ipStatic_.gatewayList_.push_back(gateway); in GetIfaceConfig()
|
H A D | ethernet_manager_test.cpp | 150 INetAddr gateway; in GetIfaceConfig() local 151 gateway.type_ = INetAddr::IPV4; in GetIfaceConfig() 152 gateway.family_ = 0x01; in GetIfaceConfig() 153 gateway.prefixlen_ = 0x01; in GetIfaceConfig() 154 gateway.address_ = "172.17.4.1"; in GetIfaceConfig() 155 gateway.netMask_ = "0.0.0.0"; in GetIfaceConfig() 156 gateway.hostName_ = "netAddr"; in GetIfaceConfig() 157 ic->ipStatic_.gatewayList_.push_back(gateway); in GetIfaceConfig()
|
H A D | ethernet_service_test.cpp | 80 INetAddr gateway; in GetIfaceConfig() local 81 gateway.type_ = INetAddr::IPV4; in GetIfaceConfig() 82 gateway.family_ = 0x01; in GetIfaceConfig() 83 gateway.prefixlen_ = 0x01; in GetIfaceConfig() 84 gateway.address_ = "172.17.4.1"; in GetIfaceConfig() 85 gateway.netMask_ = "0.0.0.0"; in GetIfaceConfig() 86 gateway.hostName_ = "netAddr"; in GetIfaceConfig() 87 ic->ipStatic_.gatewayList_.push_back(gateway); in GetIfaceConfig() 183 std::string gateway; in HWTEST_F() local 185 int ret = globalinterfacestatecallback.OnRouteChanged(updated, route, gateway, ifNam in HWTEST_F() [all...] |
H A D | ethernet_lan_management_test.cpp | 70 INetAddr gateway; in GetNewIfaceConfig() local 71 gateway.type_ = INetAddr::IPV4; in GetNewIfaceConfig() 72 gateway.address_ = "10.14.0.1"; in GetNewIfaceConfig() 73 ic->ipStatic_.gatewayList_.push_back(gateway); in GetNewIfaceConfig()
|
/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/ |
H A D | ethernet_service_proxy_test.cpp | 82 INetAddr gateway; in GetIfaceConfig() local 83 gateway.type_ = INetAddr::IPV4; in GetIfaceConfig() 84 gateway.family_ = 0x01; in GetIfaceConfig() 85 gateway.prefixlen_ = 0x01; in GetIfaceConfig() 86 gateway.address_ = "172.17.4.1"; in GetIfaceConfig() 87 gateway.netMask_ = "0.0.0.0"; in GetIfaceConfig() 88 gateway.hostName_ = "netAddr"; in GetIfaceConfig() 89 ic->ipStatic_.gatewayList_.push_back(gateway); in GetIfaceConfig()
|
H A D | ethernet_service_test.cpp | 80 INetAddr gateway; in GetIfaceConfig() local 81 gateway.type_ = INetAddr::IPV4; in GetIfaceConfig() 82 gateway.family_ = 0x01; in GetIfaceConfig() 83 gateway.prefixlen_ = 0x01; in GetIfaceConfig() 84 gateway.address_ = "172.17.4.1"; in GetIfaceConfig() 85 gateway.netMask_ = "0.0.0.0"; in GetIfaceConfig() 86 gateway.hostName_ = "netAddr"; in GetIfaceConfig() 87 ic->ipStatic_.gatewayList_.push_back(gateway); in GetIfaceConfig() 183 std::string gateway; in HWTEST_F() local 185 int ret = globalinterfacestatecallback.OnRouteChanged(updated, route, gateway, ifNam in HWTEST_F() [all...] |
H A D | ethernet_lan_management_test.cpp | 70 INetAddr gateway; in GetNewIfaceConfig() local 71 gateway.type_ = INetAddr::IPV4; in GetNewIfaceConfig() 72 gateway.address_ = "10.14.0.1"; in GetNewIfaceConfig() 73 ic->ipStatic_.gatewayList_.push_back(gateway); in GetNewIfaceConfig()
|
/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_ipv6_event.cpp | 84 char gateway[DHCP_INET6_ADDRSTRLEN] = {0}; in parseNDRouteMessage() local 92 if (GetIpFromS6Address(RTA_DATA(rtaInfo), rtmFamily, gateway, sizeof(gateway)) != 0) { in parseNDRouteMessage() 110 onIpv6RouteAddEvent(gateway, dst, ifindex); in parseNDRouteMessage() 130 char gateway[DHCP_INET6_ADDRSTRLEN] = {0}; in parseNewneighMessage() local 132 if (GetIpFromS6Address(addr, ndm->ndm_family, gateway, in parseNewneighMessage() 137 onIpv6RouteAddEvent(gateway, dst, ndm->ndm_ifindex); in parseNewneighMessage() 138 DHCP_LOGD("getIpv6RouteAddr: %{public}s", gateway); in parseNewneighMessage()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | arp_checker.cpp | 34 void ArpChecker::Start(std::string& ifname, std::string& hwAddr, std::string& ipAddr, std::string& gateway) in Start() argument 36 m_dhcpArpChecker.Start(ifname, hwAddr, ipAddr, gateway); in Start()
|
H A D | arp_checker.h | 26 void Start(std::string& ifname, std::string& hwAddr, std::string& ipAddr, std::string& gateway);
|
/foundation/communication/wifi/wifi/interfaces/kits/c/ |
H A D | wifi_device_config.h | 173 unsigned int gateway; member 284 char gateway[DEVICE_IPV6_MAX_LEN]; member
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | wrapper_distributor.cpp | 150 const std::string &gateway = message->GetMessage(NetsysEventMessage::Type::GATEWAY); in HandleRouteChange() local 152 if (!route.empty() && (!gateway.empty() || !iface.empty())) { in HandleRouteChange() 153 NotifyRouteChange((action == NetsysEventMessage::Action::ROUTEUPDATED), route, gateway, iface); in HandleRouteChange() 277 void WrapperDistributor::NotifyRouteChange(bool updated, const std::string &route, const std::string &gateway, in NotifyRouteChange() argument 281 updated ? "updated" : "removed", ToAnonymousIp(route).c_str(), ToAnonymousIp(gateway).c_str(), in NotifyRouteChange() 290 callback->OnRouteChanged(updated, route, gateway, ifName); in NotifyRouteChange()
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | route.cpp | 78 sptr<INetAddr> gateway = INetAddr::Unmarshalling(parcel); in Unmarshalling() local 79 if (gateway == nullptr) { in Unmarshalling() 80 NETMGR_LOG_E("read gateway from parcel failed"); in Unmarshalling() 83 ptr->gateway_ = *gateway; in Unmarshalling()
|
/foundation/communication/wifi/wifi/frameworks/cj/include/ |
H A D | ffi_structs.h | 80 uint32_t gateway; member 94 char *gateway; member
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_wrapper_test/ |
H A D | netsys_wrapper_test.cpp | 42 int32_t OnRouteChanged(bool updated, const std::string &route, const std::string &gateway, 124 int32_t NetlinkNativeNotifyCallBack::OnRouteChanged(bool updated, const std::string &route, const std::string &gateway, in OnRouteChanged() argument 129 EXPECT_FALSE(gateway.empty()); in OnRouteChanged()
|
/foundation/communication/netmanager_ext/services/vpnmanager/src/ |
H A D | open_vpn_ctl.cpp | 160 INetAddr gateway;
in UpdateConfig() local 166 gateway.address_ = openVpnAddress;
in UpdateConfig() 181 iRoute.gateway_ = gateway;
in UpdateConfig()
|
/foundation/communication/dhcp/services/dhcp_server/include/ |
H A D | dhcp_config.h | 33 uint32_t gateway; /* Default gateway. */ member
|
/foundation/communication/netmanager_base/frameworks/cj/connection/include/ |
H A D | common.h | 59 CNetAddress gateway; member
|
/foundation/communication/wifi_lite/interfaces/wifiservice/ |
H A D | wifi_device_config.h | 133 unsigned int gateway;
member
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/context/ |
H A D | setup_context.cpp | 49 constexpr const char *NET_GATEWAY = "gateway"; 287 napi_value gateway = NapiUtils::GetNamedProperty(env, jsRoute, NET_GATEWAY); in ParseGateway() local 288 if (NapiUtils::GetValueType(env, gateway) != napi_object) { in ParseGateway() 289 NETMGR_EXT_LOG_E("param gateway type is mismatch"); in ParseGateway() 293 GetStringFromJsMandatoryItem(env, gateway, NET_ADDRESS, iNetAddr.address_); in ParseGateway() 295 if (!ParseAddressFamily(env, gateway, iNetAddr.family_)) { in ParseGateway() 298 GetUint8FromJsOptionItem(env, gateway, NET_PORT, iNetAddr.port_); in ParseGateway()
|
/foundation/communication/wifi/wifi/interfaces/inner_api/ |
H A D | wifi_msg.h | 358 WifiIpAddress gateway; member in OHOS::Wifi::DisconnectedReason::DisconnectDetailReason::StaticIpAddress 568 unsigned int gateway; /* gate */ member 579 gateway = 0; in IpInfo() 767 std::string gateway; member 780 gateway = ""; in IpV6Info()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/context/ |
H A D | setup_context_ext.cpp | 46 constexpr const char *NET_GATEWAY = "gateway"; 263 napi_value gateway = NapiUtils::GetNamedProperty(env, jsRoute, NET_GATEWAY); in ParseGateway() local 264 if (NapiUtils::GetValueType(env, gateway) != napi_object) { in ParseGateway() 265 NETMGR_EXT_LOG_E("param gateway type is mismatch"); in ParseGateway() 269 GetStringFromJsMandatoryItem(env, gateway, NET_ADDRESS, iNetAddr.address_); in ParseGateway() 271 if (!ParseAddressFamily(env, gateway, iNetAddr.family_)) { in ParseGateway() 274 GetUint8FromJsOptionItem(env, gateway, NET_PORT, iNetAddr.port_); in ParseGateway()
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | notify_callback_proxy_test.cpp | 105 std::string gateway = "192.168.0.1"; in HWTEST_F() local 107 int32_t ret = notifyProxy->OnRouteChanged(updated, route, gateway, ifName); in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_self_cure/ |
H A D | multi_gateway.cpp | 59 if (ipInfo.gateway == 0) { in GetGatewayAddr() 60 WIFI_LOGE("gateway is null"); in GetGatewayAddr() 63 m_gwIpAddr = IpTools::ConvertIpv4Address(ipInfo.gateway); in GetGatewayAddr() 69 WIFI_LOGI("get gateway num is %{public}lu", static_cast<unsigned long>(m_gwMacLists.size())); in GetGatewayAddr()
|
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/ |
H A D | wifi_c_device.cpp | 134 staticIp.gateway.addressIpv4 = ipConfig.gateway; in GetStaticIpFromC() 149 ipConfig.gateway = staticIp.gateway.addressIpv4; in GetStaticIpFromCpp() 405 info->netGate = ipInfo.gateway; in GetIpInfoFromCpp() 454 if (memcpy_s(result->gateway, DEVICE_IPV6_MAX_LEN, ipInfo.gateway.c_str(), in GetIpV6InfoFromCpp() 455 ipInfo.gateway.size() + 1) != EOK) { in GetIpV6InfoFromCpp()
|