summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2011-01-23 09:49:51 +0700
committergnhb <gnoahb@gmail.com>2011-01-23 09:49:51 +0700
commit3eb00b491f82d048837bb93a5558e2edf6062e2e (patch)
tree9f6c724e87fe35b2645c19698d6a2df3362ff13d /etc/inc
parente9d6c27f64d12fdb26514fcbda1b741a58845afa (diff)
downloadpfsense-3eb00b491f82d048837bb93a5558e2edf6062e2e.zip
pfsense-3eb00b491f82d048837bb93a5558e2edf6062e2e.tar.gz
We don't want to detach netgraph nodes from interfaces that are used by
any PPPoE/PPTP/L2TP configurations.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index a414bd7..59f74c2 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -126,6 +126,13 @@ function interface_netgraph_needed($interface = "wan") {
$found = true;
break;
}
+ $ports = explode(',',$ppp['ports']);
+ foreach($ports as $pid => $port){
+ if ($realif == $port) {
+ $found = true;
+ break;
+ }
+ }
}
}
}
OpenPOWER on IntegriCloud