Home
last modified time | relevance | path

Searched refs:gateway_ (Results 1 - 25 of 32) sorted by relevance

12

/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/
H A Droute_utils_test.cpp47 route.gateway_.type_ = INetAddr::IPV4; in GetRoute()
48 route.gateway_.family_ = AF_INET; in GetRoute()
49 route.gateway_.prefixlen_ = 0x18; in GetRoute()
50 route.gateway_.address_ = "192.168.2.1"; in GetRoute()
51 route.gateway_.netMask_ = "255.255.255.0"; in GetRoute()
52 route.gateway_.hostName_ = "netAddr"; in GetRoute()
70 route.gateway_.type_ = INetAddr::IPV4; in GetRoute2()
71 route.gateway_.family_ = AF_INET; in GetRoute2()
72 route.gateway_.prefixlen_ = 0x18; in GetRoute2()
73 route.gateway_ in GetRoute2()
[all...]
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Droute.cpp27 out = out && (gateway_ == obj.gateway_); in operator ==()
40 if (!gateway_.Marshalling(parcel)) { in Marshalling()
41 NETMGR_LOG_E("write gateway_ to parcel failed"); in Marshalling()
83 ptr->gateway_ = *gateway; in Unmarshalling()
115 if (!object->gateway_.Marshalling(parcel)) { in Marshalling()
116 NETMGR_LOG_E("write object->gateway_ to parcel failed"); in Marshalling()
153 str.append("gateway_ = "); in ToString()
154 str.append(gateway_.ToString(tab)); in ToString()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_info_test/
H A Dnet_link_info_test.cpp67 route->gateway_.type_ = INetAddr::IPV4; in GetNetLinkInfo()
68 route->gateway_.family_ = 0x10; in GetNetLinkInfo()
69 route->gateway_.prefixlen_ = 0x17; in GetNetLinkInfo()
70 route->gateway_.address_ = "0.0.0.0"; in GetNetLinkInfo()
71 route->gateway_.netMask_ = "0.0.0.0"; in GetNetLinkInfo()
72 route->gateway_.hostName_ = "netAddr"; in GetNetLinkInfo()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/
H A Dnet_link_info_test.cpp67 route->gateway_.type_ = INetAddr::IPV4; in GetNetLinkInfo()
68 route->gateway_.family_ = 0x10; in GetNetLinkInfo()
69 route->gateway_.prefixlen_ = 0x17; in GetNetLinkInfo()
70 route->gateway_.address_ = "0.0.0.0"; in GetNetLinkInfo()
71 route->gateway_.netMask_ = "0.0.0.0"; in GetNetLinkInfo()
72 route->gateway_.hostName_ = "netAddr"; in GetNetLinkInfo()
H A Dnet_conn_hievent_test.cpp87 route->gateway_.type_ = INetAddr::IPV4; in GetNetLinkInfo()
88 route->gateway_.family_ = 0x10; in GetNetLinkInfo()
89 route->gateway_.prefixlen_ = 0x17; in GetNetLinkInfo()
90 route->gateway_.address_ = "192.168.2.0"; in GetNetLinkInfo()
91 route->gateway_.netMask_ = "192.255.255.255"; in GetNetLinkInfo()
92 route->gateway_.hostName_ = "netAddr"; in GetNetLinkInfo()
H A Dnative_net_conn_test.cpp87 route->gateway_.type_ = INetAddr::IPV4; in GetRouteSample()
88 route->gateway_.family_ = 0x10; in GetRouteSample()
89 route->gateway_.prefixlen_ = 0x17; in GetRouteSample()
90 route->gateway_.address_ = "192.168.2.0"; in GetRouteSample()
91 route->gateway_.netMask_ = "192.255.255.255"; in GetRouteSample()
92 route->gateway_.hostName_ = "netAddr"; in GetRouteSample()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_manager_ext_test/
H A Dnetworkvpn_service_ext_test.cpp81 route.gateway_.type_ = INetAddr::IPV4; in GetRouteInfo()
82 route.gateway_.family_ = AF_INET; in GetRouteInfo()
83 route.gateway_.prefixlen_ = 0x18; in GetRouteInfo()
84 route.gateway_.address_ = "192.168.2.1"; in GetRouteInfo()
85 route.gateway_.netMask_ = "255.255.255.0"; in GetRouteInfo()
86 route.gateway_.hostName_ = "netAddr"; in GetRouteInfo()
156 instance_->ConvertNetAddrToJson(mem.gateway_, jGateway); in HWTEST_F()
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_lan_management.cpp99 route.gateway_.address_); in ReleaseLanNetLink()
102 route.iface_.c_str(), destAddress.c_str(), route.gateway_.address_.c_str()); in ReleaseLanNetLink()
164 route.gateway_.address_); in SetRoute()
183 route.gateway_.address_); in DelRoute()
H A Ddev_interface_state.cpp242 GetTargetNetAddrWithSameFamily(netAddr.address_, ifCfg_->ipStatic_.gatewayList_, route.gateway_); in UpdateLinkInfo()
277 GetTargetNetAddrWithSameFamily(netAddr.address_, ifCfg_->ipStatic_.gatewayList_, route.gateway_); in UpdateLanLinkInfo()
306 GetTargetNetAddrWithSameFamily(routeAddr.address_, config->gatewayList_, routeStc.gateway_); in UpdateLanLinkInfo()
336 GetTargetNetAddrWithSameFamily(routeAddr.address_, config->gatewayList_, routeStc.gateway_); in UpdateLinkInfo()
372 localRoute.gateway_.address_ = (family == AF_INET) ? DEFAULT_ROUTE_ADDR : ""; in CreateLocalRoute()
/foundation/communication/netmanager_base/services/common/src/
H A Droute_utils.cpp49 ipv6Rt.gateway_.address_ = IPV6_DEFAULT_GATEWAY; in AddRoutesToLocal()
50 ipv6Rt.gateway_.prefixlen_ = 0; in AddRoutesToLocal()
135 nextHop = route.gateway_.address_; in ModifyRoute()
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Droute.h40 INetAddr gateway_; member
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_net_agent.cpp360 route->gateway_.address_ = IpTools::ConvertIpv4Address(wifiIpInfo.gateway);
361 route->gateway_.family_ = NetManagerStandard::INetAddr::IPV4;
363 LOGI("SetNetLinkRouteInfo gateway:%{public}s", IpAnonymize(route->gateway_.address_).c_str());
371 ipv6route->gateway_.address_ = wifiIpV6Info.gateway;
372 ipv6route->gateway_.family_ = NetManagerStandard::INetAddr::IPV6;
389 localRoute->gateway_.address_ = "0.0.0.0";
399 ipv6route->gateway_.address_ = "";
/foundation/communication/netmanager_base/frameworks/cj/connection/src/
H A Dnet_connection_callback.cpp154 CNetAddress gateway = {.address = MallocCString(it->gateway_.address_), in SetConnectionProp()
155 .family = it->gateway_.family_, in SetConnectionProp()
156 .port = it->gateway_.port_}; in SetConnectionProp()
H A Dnet_connection_ffi.cpp240 CNetAddress gateway = {.address = MallocCString(it->gateway_.address_), in SetRoute()
241 .family = it->gateway_.family_, in SetRoute()
242 .port = it->gateway_.port_}; in SetRoute()
/foundation/communication/netmanager_ext/services/vpnmanager/src/
H A Dnet_vpn_impl.cpp314 ipv4DefaultRoute.gateway_.address_ = IPV4_DEFAULT_ROUTE_ADDR; in SetIpv4DefaultRoute()
323 ipv6DefaultRoute.gateway_.address_ = IPV6_DEFAULT_ROUTE_ADDR; in SetIpv6DefaultRoute()
331 NetsysController::GetInstance().NetworkRemoveRoute(netId_, route.iface_, destAddress, route.gateway_.address_); in DelNetLinkInfo()
H A Dopen_vpn_ctl.cpp181 iRoute.gateway_ = gateway; in UpdateConfig()
/foundation/communication/netmanager_ext/services/wearabledistributednetmanager/src/
H A Dwearable_distributed_net_link_info.cpp288 route.gateway_.address_ = GetNetIfaceAddress(); in SetNetLinkRouteInfo()
289 route.gateway_.family_ = AF_INET; in SetNetLinkRouteInfo()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/
H A Dnet_conn_manager_test.cpp111 route->gateway_.type_ = INetAddr::IPV4; in GetUpdateLinkInfoSample()
112 route->gateway_.family_ = 0x10; in GetUpdateLinkInfoSample()
113 route->gateway_.prefixlen_ = 0x17; in GetUpdateLinkInfoSample()
114 route->gateway_.address_ = "192.168.2.0"; in GetUpdateLinkInfoSample()
115 route->gateway_.netMask_ = "192.255.255.255"; in GetUpdateLinkInfoSample()
116 route->gateway_.hostName_ = "netAddr"; in GetUpdateLinkInfoSample()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/
H A Dnet_conn_manager_test.cpp111 route->gateway_.type_ = INetAddr::IPV4; in GetUpdateLinkInfoSample()
112 route->gateway_.family_ = 0x10; in GetUpdateLinkInfoSample()
113 route->gateway_.prefixlen_ = 0x17; in GetUpdateLinkInfoSample()
114 route->gateway_.address_ = "192.168.2.0"; in GetUpdateLinkInfoSample()
115 route->gateway_.netMask_ = "192.255.255.255"; in GetUpdateLinkInfoSample()
116 route->gateway_.hostName_ = "netAddr"; in GetUpdateLinkInfoSample()
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Dnetsys_net_diag_data.h82 std::string gateway_; member
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/
H A Dnetsys_net_diag_data.cpp221 if (!parcel.WriteString(gateway_)) { in Marshalling()
250 if (!parcel.ReadString(routeTable.gateway_)) { in Unmarshalling()
/foundation/communication/netmanager_ext/test/vpnmanager/fuzztest/vpnclient_fuzzer/
H A Dvpnclient_fuzzer.cpp91 route.gateway_ = GetAddressData(); in GetRouteData()
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnetwork.cpp180 route.gateway_.address_); in ReleaseBasicNetwork()
363 route.gateway_.address_); in UpdateRoutes()
386 NetsysController::GetInstance().NetworkAddRoute(netId_, route.iface_, destAddress, route.gateway_.address_); in UpdateRoutes()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dnet_diag_wrapper_test.cpp335 "NetDiagWrapperTest RunGetRouteTableCommandTest001 enter destination_:%{public}s gateway_:%{public}s " in HWTEST_F()
337 rtable.destination_.c_str(), rtable.gateway_.c_str(), rtable.mask_.c_str(), rtable.iface_.c_str(), in HWTEST_F()
493 routeTable.gateway_ = TEST_STRING_VALUE; in HWTEST_F()
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/context/
H A Dsetup_context.cpp310 if (!ParseGateway(env, jsRoute, route.gateway_)) { in ParseRoute()

Completed in 21 milliseconds

12