Project

General

Profile

Actions

Bug #1725

closed
CB

DHCPv6 non-common bitmask shows incorrect range

Bug #1725: DHCPv6 non-common bitmask shows incorrect range

Added by Chris Buechler about 15 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv4)
Target version:
Start date:
07/29/2011
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1-IPv6
Affected Architecture:

Description

On the DHCPv6 page, when you have a non-common bitmask, showed range is incorrect. Example:

Address XXXX:XXXX:XXXX:XXXX::1
Subnet mask 65 bits
Available range XXXX:XXXX:XXXX:XXXX:0:0:0:1 - XXXX:XXXX:XXXX:XXXX:ffff:ffff:ffff:ffff

The available range should be :
Available range XXXX:XXXX:XXXX:XXXX:0:0:0:1 - XXXX:XXXX:XXXX:XXXX:7fff:ffff:ffff:ffff

SM Updated by Seth Mos about 15 years ago Actions #1

The function that calculates this is currently a string operated function instead of proper math. We need to have this function rewritten by someone whom is better at calculus.

That rules me out.

SM Updated by Seth Mos about 15 years ago Actions #2

  • Status changed from New to Feedback

I've been able to create a new gen_subnetv6_max() function in about a hour or 2 of coding and testing. Should be resolved.

SM Updated by Seth Mos over 14 years ago Actions #3

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom