summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-20 21:53:09 +0000
committerErmal <eri@pfsense.org>2013-03-20 21:53:09 +0000
commitd93776088cc5da743feaae98c5cbd1edaef3a8d1 (patch)
tree56dc515b7ec1618ebf839215850a4307694605e9
parent733c6f893e9c76cabcef917e785bc43626295ba6 (diff)
downloadpfsense-d93776088cc5da743feaae98c5cbd1edaef3a8d1.zip
pfsense-d93776088cc5da743feaae98c5cbd1edaef3a8d1.tar.gz
Check lower bound as well
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 545d236..e889cad 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3347,7 +3347,7 @@ function interface_6rd_configure($interface = "wan", $wancfg) {
pfSense_interface_rename($tmpstfiface, $stfiface);
pfSense_interface_flags($stfiface, IFF_LINK2);
mwexec("/sbin/ifconfig {$stfiface} inet6 {$rd6prefix}/{$rd6prefixlen}");
- if ($wancfg['prefix-6rd-v4plen'] < 32)
+ if ($wancfg['prefix-6rd-v4plen'] > 0 && $wancfg['prefix-6rd-v4plen'] < 32)
mwexec("/sbin/ifconfig {$stfiface} stfv4net {$ip4address}/{$wancfg['prefix-6rd-v4plen']}");
if ($g['debug'])
log_error("Created 6rd interface {$stfiface} {$rd6prefix}/{$rd6prefixlen}");
OpenPOWER on IntegriCloud