summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-20 20:40:45 +0000
committerErmal <eri@pfsense.org>2013-03-20 20:41:16 +0000
commit733c6f893e9c76cabcef917e785bc43626295ba6 (patch)
treef60a7332204fced7a77bbe10a350c8dbc40f7891 /etc/inc/pfsense-utils.inc
parenta1776dcfabd3c1233c241164d28603ae95388c37 (diff)
downloadpfsense-733c6f893e9c76cabcef917e785bc43626295ba6.zip
pfsense-733c6f893e9c76cabcef917e785bc43626295ba6.tar.gz
The default gateway for 6rd type is $prefix|$wanv4::$wanv4gw. Also add support for variable length v4 prefix for 6rd
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index c5cce67..f172b58 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -2531,11 +2531,7 @@ function return_hex_ipv4($ipv4) {
/* we need the hex form of the interface IPv4 address */
$ip4arr = explode(".", $ipv4);
- $hexwanv4 = "";
- foreach($ip4arr as $octet)
- $hexwanv4 .= sprintf("%02x", $octet);
-
- return($hexwanv4);
+ return (sprintf("%02x%02x%02x%02x", $ip4arr[0], $ip4arr[1], $ip4arr[2], $ip4arr[3]));
}
function convert_ipv6_to_128bit($ipv6) {
OpenPOWER on IntegriCloud