Bug #4207
closedIPv6 - PHP error "Warning: inet_pton(): Unrecognized address" in DHCPv6/RA (possibly due to bad format of IPv6 address?)
0%
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