21 #define MIN_UNICAST_ADDRESS "127.0.0.0" 22 #define MAX_UNICAST_ADDRESS "127.255.255.255" 24 #define MIN_MULTICAST_ADDRESS "224.0.0.0" 25 #define MAX_MULTICAST_ADDRESS "239.255.255.255" 27 #define INVALID_ADDRESS "0.0.0.0" bool ipv4_string_to_uint(std::string ip_string, uint *ip_uint)
Converts a IPv4 in a string to a array of unsigned integers, where the most significant byte of the I...
IPValidation
Type used to validate a IP string.
std::string get_error_msg(IPValidation error)
Get the error msg based on the validation type.
IPValidation check_valid_ip(std::string ip, std::string min_ip, std::string max_ip)
Checks if a IP is valid and is in the specified range.