Add more test cases to windows utils

PiperOrigin-RevId: 781235840
This commit is contained in:
Guogang Li
2025-07-09 15:32:37 -07:00
committed by Copybara-Service
parent 308c98044b
commit f2f95ef48c
2 changed files with 117 additions and 15 deletions
@@ -66,6 +66,10 @@ uint64_t mac_address_string_to_uint64(absl::string_view mac_address) {
std::string ipaddr_4bytes_to_dotdecimal_string(
absl::string_view ipaddr_4bytes) {
if (ipaddr_4bytes.size() != 4) {
return {};
}
in_addr address;
address.S_un.S_un_b.s_b1 = ipaddr_4bytes[0];
address.S_un.S_un_b.s_b2 = ipaddr_4bytes[1];