diff options
author | Ermal <eri@pfsense.org> | 2010-12-20 16:47:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-20 16:47:00 +0000 |
commit | 3d04de612edaab4a8ec8d9756a2f6b9129106872 (patch) | |
tree | ad8eb008c6730d64ba563598839f309213061e22 | |
parent | 92a1c8e6caca910ae1f8c54751bffebd45d87682 (diff) | |
download | pfsense-3d04de612edaab4a8ec8d9756a2f6b9129106872.zip pfsense-3d04de612edaab4a8ec8d9756a2f6b9129106872.tar.gz |
attach to ng_ether(4) only on pppoe/l2tp/pptp links no others.
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
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}")) { |