Home
last modified time | relevance | path

Searched refs:prefixlen_ (Results 1 - 25 of 46) sorted by relevance

12

/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dinet_addr.cpp31 out = out && (prefixlen_ == obj.prefixlen_); in operator ==()
47 if (!parcel.WriteUint8(prefixlen_)) { in Marshalling()
78 if (!parcel.ReadUint8(ptr->prefixlen_)) { in Unmarshalling()
110 if (!parcel.WriteUint8(object->prefixlen_)) { in Marshalling()
148 str.append(std::to_string(prefixlen_)); in ToString()
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_lan_management.cpp86 auto prefixLen = inetAddr.prefixlen_ ? static_cast<int32_t>(inetAddr.prefixlen_) in ReleaseLanNetLink()
97 std::string destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in ReleaseLanNetLink()
118 auto prefixLen = inetAddr.prefixlen_ ? static_cast<int32_t>(inetAddr.prefixlen_) in SetIp()
141 auto prefixLen = inetAddr.prefixlen_ ? static_cast<int32_t>(inetAddr.prefixlen_) in DelIp()
162 std::string destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in SetRoute()
181 std::string destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in DelRoute()
H A Dethernet_configuration.cpp264 ipAddr.prefixlen_ = (ipAddr.family_ == AF_INET6) in ConvertToConfiguration()
281 route.prefixlen_ = ipAddr.prefixlen_; in ConvertToConfiguration()
284 route.prefixlen_ = ipAddr.prefixlen_; in ConvertToConfiguration()
287 route.prefixlen_ = 0; in ConvertToConfiguration()
344 ? (((family == AF_INET6) ? CommonUtils::GetIpv6Prefix(DEFAULT_IPV6_MAX_ADDRESS, ipAddr.prefixlen_) in MakeInterfaceConfiguration()
345 : CommonUtils::GetMaskByLength(ipAddr.prefixlen_))) in MakeInterfaceConfiguration()
603 ipAddr.prefixlen_ = in ParserIfaceIpAndRoute()
616 route.prefixlen_ in ParserIfaceIpAndRoute()
[all...]
H A Ddev_interface_state.cpp365 std::string routeAddr = (family == AF_INET6) ? CommonUtils::GetIpv6Prefix(ipAddr.address_, ipAddr.prefixlen_) in CreateLocalRoute()
371 localRoute.destination_.prefixlen_ = ipAddr.prefixlen_; in CreateLocalRoute()
408 targetNetAddr.prefixlen_ = (route_family == AF_INET6) in GetRoutePrefixlen()
/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/
H A Droute_utils_test.cpp43 route.destination_.prefixlen_ = 0x18; in GetRoute()
49 route.gateway_.prefixlen_ = 0x18; in GetRoute()
66 route.destination_.prefixlen_ = 0x18; in GetRoute2()
72 route.gateway_.prefixlen_ = 0x18; in GetRoute2()
89 route.destination_.prefixlen_ = 0x18; in GetRoute3()
95 route.gateway_.prefixlen_ = 0x18; in GetRoute3()
112 route.destination_.prefixlen_ = 0x18; in GetRoute4()
118 route.gateway_.prefixlen_ = 0x18; in GetRoute4()
172 route.destination_.prefixlen_ = 0; in HWTEST_F()
178 route.gateway_.prefixlen_ in HWTEST_F()
[all...]
/foundation/communication/netmanager_base/services/common/src/
H A Droute_utils.cpp38 if (!(iter->rtnType_ == RTN_UNICAST && iter->destination_.prefixlen_ == 0)) { in AddRoutesToLocal()
48 ipv6Rt.destination_.prefixlen_ = IPV6_PRIFX_LEN; in AddRoutesToLocal()
50 ipv6Rt.gateway_.prefixlen_ = 0; in AddRoutesToLocal()
148 ToPrefixString(route.destination_.address_, route.destination_.prefixlen_, dest); in ModifyRoute()
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnetwork.cpp156 int32_t prefixLen = inetAddr.prefixlen_ == 0 ? Ipv4PrefixLen(inetAddr.netMask_) : inetAddr.prefixlen_; in ReleaseBasicNetwork()
165 auto destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in ReleaseBasicNetwork()
172 int32_t prefixLen = inetAddr.prefixlen_ == 0 ? Ipv4PrefixLen(inetAddr.netMask_) : inetAddr.prefixlen_; in ReleaseBasicNetwork()
178 auto destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in ReleaseBasicNetwork()
195 int32_t prefixLen = inetAddr.prefixlen_; in ReleaseVirtualNetwork()
303 auto prefixLen = inetAddr.prefixlen_ ? static_cast<int32_t>(inetAddr.prefixlen_) in UpdateIpAddrs()
340 auto prefixLen = inetAddr.prefixlen_ in HandleUpdateIpAddrs()
[all...]
H A Dnat464_service.cpp149 prefixAddr.prefixlen_ = CLAT_PREFIX_BYTE_LEN * CHAR_BIT; in GetPrefixFromDns64()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_info_test/
H A Dnet_link_info_test.cpp53 netAddr->prefixlen_ = 0x17; in GetNetLinkInfo()
63 route->destination_.prefixlen_ = 0x17; in GetNetLinkInfo()
69 route->gateway_.prefixlen_ = 0x17; in GetNetLinkInfo()
H A Dinet_addr_test.cpp41 info.prefixlen_ = PRE_FIX_LEN; in GetINetAddrData()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/
H A Dnet_link_info_test.cpp53 netAddr->prefixlen_ = 0x17; in GetNetLinkInfo()
63 route->destination_.prefixlen_ = 0x17; in GetNetLinkInfo()
69 route->gateway_.prefixlen_ = 0x17; in GetNetLinkInfo()
H A Dnet_conn_hievent_test.cpp73 netAddr->prefixlen_ = 0x17; in GetNetLinkInfo()
83 route->destination_.prefixlen_ = 0x17; in GetNetLinkInfo()
89 route->gateway_.prefixlen_ = 0x17; in GetNetLinkInfo()
H A Dinet_addr_test.cpp41 info.prefixlen_ = PRE_FIX_LEN; in GetINetAddrData()
H A Dnet_conn_client_vnic_test.cpp104 inetAddr.prefixlen_ = 24; in HWTEST_F()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/sys_vpn_manager_test/
H A Dvpn_config_test.cpp52 ipv4Addr.prefixlen_ = 0x01; in HWTEST_F()
71 ipv4Addr.prefixlen_ = 0x01; in HWTEST_F()
91 ipv4Addr.prefixlen_ = 0x01; in HWTEST_F()
/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/context/
H A Dsetup_context.cpp228 iNetAddr.prefixlen_ = static_cast<uint8_t>(NapiUtils::GetUint32Property(env, address, NET_PREFIXLENGTH)); in ParseAddress()
229 if (isIpv6 && iNetAddr.prefixlen_ == 0) { in ParseAddress()
230 iNetAddr.prefixlen_ = CommonUtils::Ipv6PrefixLen(iNetAddr.address_); in ParseAddress()
233 NETMGR_EXT_LOG_I("isIpv6:%{public}d, %{public}s: %{public}d", isIpv6, NET_PREFIXLENGTH, iNetAddr.prefixlen_); in ParseAddress()
235 uint32_t prefix = iNetAddr.prefixlen_; in ParseAddress()
281 GetUint8FromJsOptionItem(env, destination, NET_PREFIXLENGTH, iNetAddr.prefixlen_); in ParseDestination()
/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/context/
H A Dsetup_context_ext.cpp205 iNetAddr.prefixlen_ = static_cast<uint8_t>(NapiUtils::GetUint32Property(env, address, NET_PREFIXLENGTH)); in ParseAddress()
206 if (isIpv6 && iNetAddr.prefixlen_ == 0) { in ParseAddress()
207 iNetAddr.prefixlen_ = CommonUtils::Ipv6PrefixLen(iNetAddr.address_); in ParseAddress()
210 NETMGR_EXT_LOG_I("isIpv6:%{public}d, %{public}s: %{public}d", isIpv6, NET_PREFIXLENGTH, iNetAddr.prefixlen_); in ParseAddress()
212 uint32_t prefix = iNetAddr.prefixlen_; in ParseAddress()
257 GetUint8FromJsOptionItem(env, destination, NET_PREFIXLENGTH, iNetAddr.prefixlen_); in ParseDestination()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dethernet_service_proxy_test.cpp69 ipv4Addr.prefixlen_ = 0x01; in GetIfaceConfig()
77 route.prefixlen_ = 0x01; in GetIfaceConfig()
85 gateway.prefixlen_ = 0x01; in GetIfaceConfig()
H A Dethernet_manager_test.cpp137 ipv4Addr.prefixlen_ = 0x01; in GetIfaceConfig()
145 route.prefixlen_ = 0x01; in GetIfaceConfig()
153 gateway.prefixlen_ = 0x01; in GetIfaceConfig()
/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
H A Dethernet_service_proxy_test.cpp69 ipv4Addr.prefixlen_ = 0x01; in GetIfaceConfig()
77 route.prefixlen_ = 0x01; in GetIfaceConfig()
85 gateway.prefixlen_ = 0x01; in GetIfaceConfig()
/foundation/communication/netmanager_base/interfaces/innerkits/include/
H A Dinet_addr.h35 uint8_t prefixlen_ = 0; member
/foundation/communication/netmanager_ext/services/vpnmanager/src/
H A Dnet_vpn_impl.cpp313 ipv4DefaultRoute.destination_.prefixlen_ = CommonUtils::GetMaskLength(IPV4_DEFAULT_ROUTE_ADDR); in SetIpv4DefaultRoute()
322 ipv6DefaultRoute.destination_.prefixlen_ = CommonUtils::Ipv6PrefixLen(IPV6_DEFAULT_ROUTE_ADDR); in SetIpv6DefaultRoute()
330 std::string destAddress = route.destination_.address_ + "/" + std::to_string(route.destination_.prefixlen_); in DelNetLinkInfo()
341 uint32_t maskUint = (0xFFFFFFFF << (IPV4_NET_MASK_MAX_LENGTH - route.destination_.prefixlen_)); in AdjustRouteInfo()
347 route.destination_.prefixlen_); in AdjustRouteInfo()
H A Dopen_vpn_ctl.cpp173 destination.prefixlen_ = CommonUtils::GetMaskLength(openVpnNetmask); in UpdateConfig()
174 NETMGR_EXT_LOG_I("UpdateConfig prefixlen %{public}d", destination.prefixlen_); in UpdateConfig()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_manager_ext_test/
H A Dnetworkvpn_service_ext_test.cpp77 route.destination_.prefixlen_ = 0x18; in GetRouteInfo()
83 route.gateway_.prefixlen_ = 0x18; in GetRouteInfo()
97 sourAddr.prefixlen_ = 0x18; in HWTEST_F()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_net_agent.cpp291 netAddr->prefixlen_ = prefixLength;
298 netIpv6Addr->prefixlen_ = 0;
370 ipv6route->destination_.prefixlen_ = 0;
388 localRoute->destination_.prefixlen_ = prefixLength;
398 ipv6route->destination_.prefixlen_ = ipv6PrefixLength;

Completed in 14 milliseconds

12