Home
last modified time | relevance | path

Searched refs:IsValidIPv4 (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dipv4_address.cpp32 bool Ipv4Address::IsValidIPv4(const std::string &ipv4) in IsValidIPv4() function in OHOS::Wifi::Ipv4Address
45 if (!IsValidIPv4(ipv4) || prefixLength > MAX_IPV4_PREFIX_LENGTH - 1) { in Create()
55 if ((inet_aton(mask.c_str(), &maskAddr) != 1) || (!IsValidIPv4(ipv4))) { in Create()
90 return IsValidIPv4(GetAddressWithString()); in IsValid()
H A Dipv4_address.h35 static bool IsValidIPv4(const std::string &ipv4);
H A Dif_config.cpp334 if (Ipv4Address::IsValidIPv4(dns1) || Ipv6Address::IsValidIPv6(dns1)) { in SetNetDns()
337 if (Ipv4Address::IsValidIPv4(dns2) || Ipv6Address::IsValidIPv6(dns2)) { in SetNetDns()