summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-20 16:47:00 +0000
committerErmal <eri@pfsense.org>2010-12-20 16:47:00 +0000
commit3d04de612edaab4a8ec8d9756a2f6b9129106872 (patch)
treead8eb008c6730d64ba563598839f309213061e22 /etc
parent92a1c8e6caca910ae1f8c54751bffebd45d87682 (diff)
downloadpfsense-3d04de612edaab4a8ec8d9756a2f6b9129106872.zip
pfsense-3d04de612edaab4a8ec8d9756a2f6b9129106872.tar.gz
attach to ng_ether(4) only on pppoe/l2tp/pptp links no others.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 8687635..db20f56 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1156,11 +1156,11 @@ function interface_ppps_configure($interface) {
to obtain an address first so we can write it in the mpd .conf file for PPTP and L2TP configs
*/
foreach($ports as $pid => $port){
- pfSense_ngctl_attach(".", $port);
switch ($ppp['type']) {
case "pppoe":
/* Bring the parent interface up */
interfaces_bring_up($port);
+ pfSense_ngctl_attach(".", $port);
break;
case "pptp":
case "l2tp":
@@ -1191,6 +1191,7 @@ function interface_ppps_configure($interface) {
log_error("Could not get a PPTP/L2TP Remote IP address from {$dhcp_gateway} for {$gway} in interfaces_ppps_configure.");
return 0;
}
+ pfSense_ngctl_attach(".", $port);
break;
case "ppp":
if (!file_exists("{$port}")) {
OpenPOWER on IntegriCloud