summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-04-16 18:29:42 +0000
committerErmal Luçi <eri@pfsense.org>2008-04-16 18:29:42 +0000
commit6dd9b0154e4da222d12b814e4338b1181296df77 (patch)
treed34a26d986f99f74a09f4b184150fa6b1c12df62 /etc/inc/interfaces.inc
parent6a74c90e9d12a5ad6e8b16e8c22fa60b658f0a85 (diff)
downloadpfsense-6dd9b0154e4da222d12b814e4338b1181296df77.zip
pfsense-6dd9b0154e4da222d12b814e4338b1181296df77.tar.gz
First try to cope with the new ability of mpd to rename its interfaces.
This is just a s/ng0/typeof connection0/ for now. The major work should be done to allow all optX and lan to be pppoe or pptp interafaces and take just assign the network interface accordingly. It simplifies a lot o things but this has to be done. This would propperly identifying interfaces and not hardcoding names around.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 80a2052..c473d76 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1311,7 +1311,7 @@ function interfaces_wan_pppoe_configure() {
$mpdconf = <<<EOD
startup:
pppoeclient:
- new -i ng0 pppoeclient pppoeclient
+ new -i pppoe0 pppoeclient pppoeclient
set iface route default
set iface {$ondemand} on-demand
set iface idle {$idle}
@@ -1470,7 +1470,7 @@ function interfaces_wan_pptp_configure() {
$mpdconf = <<<EOD
pptp:
- new -i ng0 pptp pptp
+ new -i pptp0 pptp pptp
set iface route default
set iface {$ondemand} on-demand
set iface idle {$idle}
@@ -1633,9 +1633,10 @@ function get_real_wan_interface() {
$wancfg = $config['interfaces']['wan'];
$wanif = $wancfg['if'];
- if (($wancfg['ipaddr'] == "pppoe") || ($wancfg['ipaddr'] == "pptp")) {
- $wanif = $g['pppoe_interface'];
- }
+ if ($wancfg['ipaddr'] == "pppoe")
+ $wanif = "pppoe0";
+ if ($wancfg['ipaddr'] == "pptp")
+ $wanif = "pptp0";
return $wanif;
}
@@ -1836,4 +1837,4 @@ function get_interface_mac($interface) {
return $mac;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud