summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-22 22:32:50 +0000
committerErmal <eri@pfsense.org>2010-12-22 22:32:50 +0000
commitc513c30900f98d47dfa77dcf03d42382fae34cd7 (patch)
tree987cbdf20e2aeed9e489b7a5d474b3831f857c52 /etc/inc/vpn.inc
parentcd3346e205ad0f818977b7ccd0bd7259ed2f2e4e (diff)
downloadpfsense-c513c30900f98d47dfa77dcf03d42382fae34cd7.zip
pfsense-c513c30900f98d47dfa77dcf03d42382fae34cd7.tar.gz
Prevent other types of interface for being added to ng_ether(4). It might be the cause of panics reported here http://forum.pfsense.org/index.php/topic,31404.0.html
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 713e72d..a3b681a 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -968,7 +968,9 @@ function vpn_netgraph_support() {
foreach ($iflist as $iface) {
$realif = get_real_interface($iface);
/* Get support for netgraph(4) from the nic */
- pfSense_ngctl_attach(".", $realif);
+ $ifinfo = pfSense_get_interface_addresses($realif);
+ if (!empty($ifinfo) && in_array($ifinfo['iftype'], array("ether", "vlan", "bridge")))
+ pfSense_ngctl_attach(".", $realif);
}
}
@@ -1746,4 +1748,4 @@ function vpn_ipsec_configure_preferoldsa() {
mwexec("/sbin/sysctl net.key.preferred_oldsa=0");
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud