Project

General

Profile

Actions

Bug #4435

closed

Invalid increment in DHCP6 server address range check

Added by Daniel Becker about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
DHCP (IPv6)
Target version:
Start date:
02/16/2015
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.2
Affected Architecture:
All

Description

When computing the start IP for the 'available range' field, services_dhcpv6.php attempts to increment a colon-formatted v6 address:

$range_from = gen_subnetv6($ifcfgip, $ifcfgsn);
$range_from++;

Since increment on a non-numeric value fails, range_from retains the un-incremented value.

Actions #1

Updated by Daniel Becker about 9 years ago

Note that this is actually matches the behavior of the range checks that services_dhcpv6.php performs: The actual check uses the range from gen_subnetv6() to gen_subnetv6_max(), which does include the first (= all-zeroes host part) v6 address in the prefix.

Actions #2

Updated by Daniel Becker about 9 years ago

Actions #3

Updated by Chris Buechler about 9 years ago

  • Assignee set to Chris Buechler
  • Target version set to 2.2.1
Actions #4

Updated by Daniel Becker about 9 years ago

Are there any issues with my pull request that would prevent it from being accepted?

Actions #5

Updated by Renato Botelho about 9 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Merged

Actions #6

Updated by Chris Buechler about 9 years ago

  • Status changed from Feedback to Resolved

fixed. Thanks Daniel for the contributions!

Actions

Also available in: Atom PDF