/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/ |
H A D | route_utils_test.cpp | 47 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 D | route.cpp | 27 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 D | net_link_info_test.cpp | 67 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 D | net_link_info_test.cpp | 67 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 D | net_conn_hievent_test.cpp | 87 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 D | native_net_conn_test.cpp | 87 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 D | networkvpn_service_ext_test.cpp | 81 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 D | ethernet_lan_management.cpp | 99 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 D | dev_interface_state.cpp | 242 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 D | route_utils.cpp | 49 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 D | route.h | 40 INetAddr gateway_; member
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_net_agent.cpp | 360 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 D | net_connection_callback.cpp | 154 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 D | net_connection_ffi.cpp | 240 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 D | net_vpn_impl.cpp | 314 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 D | open_vpn_ctl.cpp | 181 iRoute.gateway_ = gateway;
in UpdateConfig()
|
/foundation/communication/netmanager_ext/services/wearabledistributednetmanager/src/ |
H A D | wearable_distributed_net_link_info.cpp | 288 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 D | net_conn_manager_test.cpp | 111 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 D | net_conn_manager_test.cpp | 111 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 D | netsys_net_diag_data.h | 82 std::string gateway_; member
|
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | netsys_net_diag_data.cpp | 221 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 D | vpnclient_fuzzer.cpp | 91 route.gateway_ = GetAddressData(); in GetRouteData()
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | network.cpp | 180 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 D | net_diag_wrapper_test.cpp | 335 "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 D | setup_context.cpp | 310 if (!ParseGateway(env, jsRoute, route.gateway_)) { in ParseRoute()
|