Library to test ip validity. More...
#include "compatibility.h"
Go to the source code of this file.
Functions | |
| int | is_valid_ip (const char *my_ip_str) |
| Verifies if IP address in "my_ip_str" is a valid ip. | |
| bool | is_valid_mcast_ip4 (const char *my_ip_str) |
| Verifies if IP address in "my_ip_str" is a valid IPv4 multicast address. | |
| bool | is_valid_ssm_ip4 (const char *my_ip_str) |
| Verifies if IP address in "my_ip_str" is a valid IPv4 SSM address. | |
Library to test ip validity.
Copyright (C) 2013
Andrea Florio 2013 andrea@opensuse.org
This Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This Project is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
| int is_valid_ip | ( | const char * | my_ip_str | ) |
Verifies if IP address in "my_ip_str" is a valid ip.
Supports IPv4 and IPv6
| my_ip_str | Is a string containing the ip address. |
| bool is_valid_mcast_ip4 | ( | const char * | my_ip_str | ) |
Verifies if IP address in "my_ip_str" is a valid IPv4 multicast address.
| my_ip_str | Is a string containing the ip address. |
| bool is_valid_ssm_ip4 | ( | const char * | my_ip_str | ) |
Verifies if IP address in "my_ip_str" is a valid IPv4 SSM address.
| my_ip_str | Is a string containing the ip address. |
1.8.1.2