| 106 | } |
| 107 | |
| 108 | bool OHDUtil::is_valid_ip(const std::string& ip) { |
| 109 | unsigned char buf[sizeof(struct in6_addr)]; |
| 110 | auto result = inet_pton(AF_INET, ip.c_str(), buf); |
| 111 | return result == 1; |
| 112 | } |
| 113 | |
| 114 | std::string OHDUtil::string_in_between(const std::string& start, |
| 115 | const std::string& end, |
nothing calls this directly
no outgoing calls
no test coverage detected