diff options
author | Ermal <eri@pfsense.org> | 2013-01-31 20:25:29 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-31 20:26:07 +0000 |
commit | b686e5d0ceff87525319a900b078fd41faede9b4 (patch) | |
tree | e96154f3276bc05a311d86390e9c149ec1d157fd /etc | |
parent | d1878053835646323fe62e0a6ec277d99026d80b (diff) | |
download | pfsense-b686e5d0ceff87525319a900b078fd41faede9b4.zip pfsense-b686e5d0ceff87525319a900b078fd41faede9b4.tar.gz |
Load if_stf module if has not been done
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 240a567..da8f99c 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3212,6 +3212,8 @@ function interface_6rd_configure($interface = "wan", $wancfg) { $rd6prefix = convert_128bit_to_ipv6($rd6prefixbin); /* XXX: need to extend to support variable prefix size for v4 */ + if (!is_module_loaded("if_stf")) + mwexec("/sbin/kldload if_stf.ko"); $stfiface = "{$interface}_stf"; if (does_interface_exist($stfiface)) pfSense_interface_destroy($stfiface); @@ -3306,6 +3308,8 @@ function interface_6to4_configure($interface = "wan", $wancfg){ $stflan = Net_IPv6::compress(implode(":", $stflanarr)); /* setup the stf interface */ + if (!is_module_loaded("if_stf")) + mwexec("/sbin/kldload if_stf.ko"); $stfiface = "{$interface}_stf"; if (does_interface_exist($stfiface)) pfSense_interface_destroy($stfiface); |