Project

General

Profile

Actions

Bug #5944

closed

Fixes for various issues in status_dhcpv6_leases.php and prefixes.php

Added by Anders Lind over 8 years ago. Updated over 8 years ago.

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

0%

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

Description

As a continuation of https://redmine.pfsense.org/issues/4206 I have made some bug fixes.
They address the following issues:

status_dhcpv6_leases.php
  • Fix indexing of $mappings: Remove "$entry['iaid'] . " from $mappings[] since the IAID of the IA_NA does not need to be equal to the IAID of the IA_PD, please see note in https://redmine.pfsense.org/issues/4206#note-9
    This makes sure that Routed To in Delegated Prefixes can be shown even when the IAID of the IA_NA != to the IAID of the IA_PD.
  • Fix column headers: Add table header for the icon in the Delegated Prefixes section to fix alignment of the column headers.
  • Fix lack of incrementation of index in parse_duid() when two characters have been combined and passed (meaning \\ and \") for use in the IAID and DUID strings.
  • Fix check in parse_duid() of $n so that the octal value is checked as an octal value and not with is_numeric($n).
prefixes.php
  • Fix substr mistake: I made a silly mistake in extract_duid() and overlooked an important difference between javascript substring() and php substr().
  • Tightened regex check for octal value in extract_duid().
  • Fix missing check for $active to avoid creating a route to a released lease.

I will link to the pull request in a moment.

Actions #1

Updated by Anders Lind over 8 years ago

Pull request for the mentioned issues are located here:
https://github.com/pfsense/pfsense/pull/2700

Many thanks for your time! :-)

Actions #2

Updated by Jim Thompson over 8 years ago

  • Assignee set to Chris Buechler
Actions #3

Updated by Jim Thompson over 8 years ago

  • Category set to DHCP (IPv6)
Actions #4

Updated by Chris Buechler over 8 years ago

  • Status changed from New to Feedback

Merged, seems fine. Leaving to feedback for more widespread testing once it hits a snapshot.

Thanks Anders!

Actions #5

Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

works

Actions

Also available in: Atom PDF