Lines Matching refs:ipAddr
261 INetAddr ipAddr;
262 ipAddr.address_ = dhcpResult.ipAddr;
263 ipAddr.family_ = static_cast<uint8_t>(CommonUtils::GetAddrFamily(dhcpResult.ipAddr));
264 ipAddr.prefixlen_ = (ipAddr.family_ == AF_INET6)
267 config->ipAddrList_.push_back(ipAddr);
281 route.prefixlen_ = ipAddr.prefixlen_;
284 route.prefixlen_ = ipAddr.prefixlen_;
286 route.address_ = (ipAddr.family_ == AF_INET6) ? DEFAULT_IPV6_ADDR : DEFAULT_IPV4_ADDR;
338 for (const auto &ipAddr : devLinkInfo->netAddrList_) {
339 cfg->ipStatic_.ipAddrList_.push_back(ipAddr);
340 auto family = CommonUtils::GetAddrFamily(ipAddr.address_);
343 ipAddr.netMask_.empty()
344 ? (((family == AF_INET6) ? CommonUtils::GetIpv6Prefix(DEFAULT_IPV6_MAX_ADDRESS, ipAddr.prefixlen_)
345 : CommonUtils::GetMaskByLength(ipAddr.prefixlen_)))
346 : ipAddr.netMask_;
598 for (auto &ipAddr : cfg->ipStatic_.ipAddrList_) {
599 if (maskFamily != CommonUtils::GetAddrFamily(ipAddr.address_)) {
602 ipAddr.netMask_ = netMask.address_;
603 ipAddr.prefixlen_ =
701 if (dhcpResult.ipAddr.empty()) {
708 if (std::any_of(config->ipAddrList_.begin(), config->ipAddrList_.end(), [&dhcpResult](const auto &ipAddr) {
709 return dhcpResult.ipAddr == ipAddr.address_;
711 NETMGR_EXT_LOG_I("Same ip addr:%{public}s", CommonUtils::ToAnonymousIp(dhcpResult.ipAddr).c_str());