Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenVPN w/ IPv6 fails to set ifconfig-ipv6 value in conf #2991 #634

Merged
merged 1 commit into from
May 14, 2013
Merged

OpenVPN w/ IPv6 fails to set ifconfig-ipv6 value in conf #2991 #634

merged 1 commit into from
May 14, 2013

Conversation

phil-davis
Copy link
Contributor

Net_IPv6::compress returns "" when the IPv6 address is already compressed!!! That is a bug in Net_IPv6, but might be more difficult to correct right now. The way to make sure things are OK is to call uncompress first, to always make sure an uncompressed IPv6 addres is passed to compress. Note: uncompress works fine if the address is already uncompressed - it returns what it was given.
I will search later for other uses of Net_IPv6::compress in pfSense code, as they will all have the potential for this kind of error.

$ipv6 = "fe80::1";
$ipv6_1 = Net_IPv6::compress($ipv6);
var_dump($ipv6_1);
string(0) ""

$ipv6_1 = Net_IPv6::compress(Net_IPv6::uncompress($ipv6));
var_dump($ipv6_1);
string(7) "fe80::1"

cbuechler pushed a commit that referenced this pull request May 14, 2013
OpenVPN w/ IPv6 fails to set ifconfig-ipv6 value in conf #2991
@cbuechler cbuechler merged commit d68c18b into pfsense:master May 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants