NUTSCAN_IP_RANGES_IT(3)
π NUTSCAN_IP_RANGES_IT(3) π
okay so bestie, this is a page from the NUT Manual β yes, the Network UPS Tools one, not the other kind of nut π β and it's all about nutscan_ip_ranges_iter_inc, the little function that keeps your IP range walk moving. It's literally the "next bestie please" of the scan world β¨
πΈ NAME πΈ
nutscan_ip_ranges_iter_inc β proceed with iteration of an IP address range using a nutscan_ip_range_list_iter_t structure. basically: walk the iterator one step forward, no cap πΆββοΈπ¨
π SYNOPSIS π
#include <nut-scan.h>
char * nutscan_ip_ranges_iter_inc(nutscan_ip_range_list_iter_t *irliter);
look at her. one include, one function, one pointer. iconic π
π¦ DESCRIPTION π¦
So the nutscan_ip_ranges_iter_inc() function can walk an iterator from the specified nutscan_ip_range_list_iter_t helper object β and that helper object gets prepared for you by nutscan_ip_ranges_iter_init(3), working off a nutscan_ip_range_list_t structure. it's a whole little ecosystem, iykyk π«Ά
Now here's the part where she's lowkey just being polite β this function skips work (like, does nothing, returns NULL) if:
- the structure pointer is
NULL(NULLis returned); - the structure pointer's
ip_rangelist isNULL(NULLis returned); - the structure pointer's
ip_range_iterpointer isNULL(NULLis returned).
three whole vibe checks that all fail the same way π
Otherwise? She returns the next IP address from the currently iterated registered IP address range β or, if no addresses remained in the current one, she switches iteration to the next range. main character energy: finish one range, sashay straight into the next π
β οΈ The caller SHOULD NOT free this string while iterating. Like, do NOT. put the free() down bestie, it's not yours right now π
π NOTES π
Technically, the function is currently defined in nutscan-ip.h file. yes even though the synopsis shows <nut-scan.h>. she contains multitudes π
β SEE ALSO β
nutscan_init_ip_ranges(3)nutscan_free_ip_ranges(3)nutscan_cidr_to_ip(3)nutscan_ip_ranges_iter_init(3)
the whole friend group fr fr π«Άβ¨
and that's the page, bestie!! π this was Network UPS Tools 2.8.5, dated 06/21/2026 β literally go drink some water and iterate responsibly, mwah ππ§ββοΈ
π¦ where this page comes from
- arch rolling: nut 2.8.5-2 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms