| 505 | } |
| 506 | |
| 507 | static std::string IPv4ToString(std::span<const uint8_t> a) |
| 508 | { |
| 509 | return strprintf("%u.%u.%u.%u", a[0], a[1], a[2], a[3]); |
| 510 | } |
| 511 | |
| 512 | // Return an IPv6 address text representation with zero compression as described in RFC 5952 |
| 513 | // ("A Recommendation for IPv6 Address Text Representation"). |