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 (NULL is returned);
  • the structure pointer's ip_range list is NULL (NULL is returned);
  • the structure pointer's ip_range_iter pointer is NULL (NULL is 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 ⭐

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