summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_assign.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-27 00:05:37 +0000
committerErmal <eri@pfsense.org>2010-03-27 00:05:37 +0000
commit611ae8521469576569a8d9c0d306668fe1b20dfe (patch)
treef16b941d545194ba2db9a794dc66080cc5b4895f /usr/local/www/interfaces_assign.php
parent3ad5fd63f0b5a7fa7b1f291b44ba37c0ccf88cd1 (diff)
downloadpfsense-611ae8521469576569a8d9c0d306668fe1b20dfe.zip
pfsense-611ae8521469576569a8d9c0d306668fe1b20dfe.tar.gz
Redo most of the ppp interface handling to be consistent with the other mpd5 configurations. This way there is no more special handling for ppp around.
Diffstat (limited to 'usr/local/www/interfaces_assign.php')
-rwxr-xr-xusr/local/www/interfaces_assign.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 71b4a70..6d485a4 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -127,11 +127,11 @@ if (is_array($config['qinqs']['qinqentry']) && count($config['qinqs']['qinqentry
/* add PPP interfaces */
if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
- foreach ($config['ppps']['ppp'] as $ppp) {
- $portname = "ppp{$ppp['pppid']}";
- log_error("portname = " . $portname);
+ foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
+ $portname = "ppp{$pppid}";
$portlist[$portname] = $ppp;
$portlist[$portname]['isppp'] = true;
+ $portlist[$portname]['descr'] = "PPP {$ppp['port']}";
}
}
@@ -202,12 +202,8 @@ if ($_POST['apply']) {
}
$config['interfaces'][$ifname]['if'] = $ifport;
if (preg_match('/^ppp[0-9]+/',$ifport)){
- $config['interfaces'][$ifname]['serialport'] = basename($portlist[$ifport]['port']);
- $config['interfaces'][$ifname]['pointtopoint'] = true;
+ $config['interfaces'][$ifname]['if'] = basename($portlist[$ifport]['port']);
$config['interfaces'][$ifname]['ipaddr'] = "ppp";
- } else {
- unset($config['interfaces'][$ifname]['pointtopoint']);
- unset($config['interfaces'][$ifname]['serialport']);
}
/* check for wireless interfaces, set or clear ['wireless'] */
OpenPOWER on IntegriCloud