Project

General

Profile

Actions

Bug #4207

closed

IPv6 - PHP error "Warning: inet_pton(): Unrecognized address" in DHCPv6/RA (possibly due to bad format of IPv6 address?)

Added by Overand IRC-Priv almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv6)
Target version:
-
Start date:
01/12/2015
Due date:
% Done:

0%

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

Description

Short Version

I received the following error while trying to configure DHCPv6/RA.

Details

Error

Warning: inet_pton(): Unrecognized address 2001:470:XXXX:YYYY:ffff:ffff:ffff:ffff in /etc/inc/util.inc on line 710 Warning: inet_pton(): Unrecognized address 2001:470:XXXX:YYYY:ffff:ffff:ffff:ffff in /etc/inc/util.inc on line 710 Warning: inet_pton(): Unrecognized address 2001:470:XXXX:YYYY:ffff:ffff:ffff:ffff in /usr/local/www/services_dhcpv6.php on line 238 Warning: inet_pton(): Unrecognized address 2001:470:XXXX:YYYY:ffff:ffff:ffff:ffff in /usr/local/www/services_dhcpv6.php on line 250

Behaviour

Entering various IPv6 addresses for the Start Range and End Range fields, hitting save. At some point (I'm not sure if it happened more than once) I got the error above, dumped as a PHP inline error, not a "pfSense error"

It is quite possible that the screenshot below shows an invalidly formatted IPv6 address; I'm an absolute beginner with IPv6.

I've attached a screenshot (probably awkward to read due to 2560 screen, sorry) screenshot of my setup at the time of getting the error.

All the times I'd hit "save" Various entries I'd made in the 'range start' field likely included (at least) the following:

  • 2001:470:XXXX:YYYY::60
  • 2001:470:XXXX:YYYY::::60
  • 2001:470:XXXX:YYYY::
  • 2001:470:XXXX:YYYY::1
  • 2001:470:XXXX:YYYY:ffff:ffff:ffff:0000

I also had initially left a space at the end of the End Range field.


Files

2015-01-12-165922_2519x1212_scrot-munge.png (208 KB) 2015-01-12-165922_2519x1212_scrot-munge.png Screenshot of PHP error in DHCPv6/RA Overand IRC-Priv, 01/12/2015 04:22 PM
2015-01-12-165922_2519x1212_scrot.png (243 KB) 2015-01-12-165922_2519x1212_scrot.png Overand IRC-Priv, 01/13/2015 11:11 AM
Actions

Also available in: Atom PDF