Project

General

Profile

Actions

Bug #1725

closed

DHCPv6 non-common bitmask shows incorrect range

Added by Chris Buechler over 12 years ago. Updated about 12 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

Actions #1

Updated by Seth Mos over 12 years ago

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.

Actions #2

Updated by Seth Mos over 12 years ago

  • 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.

Actions #3

Updated by Seth Mos about 12 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF