From b686e5d0ceff87525319a900b078fd41faede9b4 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 31 Jan 2013 20:25:29 +0000 Subject: Load if_stf module if has not been done --- etc/inc/interfaces.inc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.1