Skip to content

Commit

Permalink
tools/nut-scanner/nut-scanner.c: comment some TODO for IPv6 netmask p…
Browse files Browse the repository at this point in the history
…roper support [networkupstools#2244]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jul 4, 2024
1 parent acfc878 commit d7c2d40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/nut-scanner/nutscan-ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ int nutscan_cidr_to_ip(const char * cidr, char ** start_ip, char ** stop_ip)
char * mask;
char * saveptr = NULL;
nutscan_ip_iter_t ip;
/* TODO: There can be up to 128-bit CIDR mask for IPv6... */
int mask_val;
int mask_byte;
int ret;
Expand Down Expand Up @@ -302,6 +303,7 @@ int nutscan_cidr_to_ip(const char * cidr, char ** start_ip, char ** stop_ip)
upsdebugx(5, "%s: parsed cidr=%s into first_ip=%s and mask=%s",
__func__, cidr, first_ip, mask);

/* TODO: check if mask is also an IP address or a bit count */
mask_val = atoi(mask);
upsdebugx(5, "%s: parsed mask value %d",
__func__, mask_val);
Expand Down

0 comments on commit d7c2d40

Please sign in to comment.