Project

General

Profile

Actions

Bug #6852

closed

Commit 8f86722 breaks DHCPv6 leases status page

Added by Nick Venenga over 7 years ago. Updated over 4 years ago.

Status:
Duplicate
Priority:
Normal
Category:
DHCP (IPv6)
Target version:
-
Start date:
10/11/2016
Due date:
% Done:

0%

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

Description

The commit in question changed the awk pattern used when getting DHCPv6 information from the lease file. The pattern was changed:

From: $splitpattern = "'BEGIN { RS=\"}\";} {for (i=1; i<=NF; i++) printf \"%s \", \$i; printf \"}\\n\";}'";
To: $splitpattern = "'{printf $0}; $0 ~ /^\}/ {printf \"\\n\"}'";

Commit in question: https://github.com/pfsense/pfsense/commit/8f867225f4c2d3e61863f8d87d4ddb4143d5dda6#diff-b48bdab1db8f78638fbf6c7d98a01172

See images below. Leases file is attached for reference (I don't really care about exposed information)


Files

DHCPv6_Error.PNG (19 KB) DHCPv6_Error.PNG Nick Venenga, 10/11/2016 08:55 PM
DHCPv6_Correct.PNG (37.9 KB) DHCPv6_Correct.PNG Nick Venenga, 10/11/2016 08:55 PM
dhcpd6.leases (5.52 KB) dhcpd6.leases Nick Venenga, 10/11/2016 08:55 PM
dhcpd6.leases (3.08 KB) dhcpd6.leases Michael Kellogg, 12/17/2016 06:15 AM
dhcpd6.leases~ (5.02 KB) dhcpd6.leases~ Michael Kellogg, 12/17/2016 06:15 AM
Actions

Also available in: Atom PDF