1NUTSCAN_CIDR_TO_IP(3)             NUT Manual             NUTSCAN_CIDR_TO_IP(3)
2
3
4

NAME

6       nutscan_cidr_to_ip - Convert a CIDR IP to a range of IP address.
7

SYNOPSIS

9       #include <nut-scan.h>
10
11       int nutscan_cidr_to_ip(const char * cidr, char ** start_ip, char ** stop_ip);
12

DESCRIPTION

14       The nutscan_cidr_to_ip() function converts a range of IP address in the
15       CIDR format given as a string in cidr, to two IPs in strings pointed by
16       start_ip and stop_ip which can be used as input parameters in the
17       scanning functions of the libnutscan API.
18
19       It is the caller’s responsibility to free start_ip and stop_ip strings.
20

RETURN VALUE

22       The nutscan_cidr_to_ip() function returns 0 if an error occurred
23       (invalid cidr address) or 1 if successful.
24

NOTES

26       Technically, the function is currently defined in nutscan-ip.h file.
27

SEE ALSO

29       nutscan_scan_usb(3), nutscan_scan_xml_http_range(3),
30       nutscan_scan_nut(3), nutscan_scan_avahi(3), nutscan_scan_ipmi(3),
31       nutscan_scan_snmp(3), nutscan_display_parsable(3),
32       nutscan_display_ups_conf(3)
33
34
35
36Network UPS Tools 2.8.0           04/26/2022             NUTSCAN_CIDR_TO_IP(3)
Impressum