summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_qinq.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-11-28 10:47:30 +0000
committerErmal Luçi <eri@pfsense.org>2009-11-28 10:47:30 +0000
commit4400ad66dca98efa3bbd5d4935cc6ff821eece8b (patch)
tree66fff20bb549de7e5428baa322a158fcef90bd77 /usr/local/www/interfaces_qinq.php
parenta726c0e83af3313c797726cdff3f3fd727467a78 (diff)
downloadpfsense-4400ad66dca98efa3bbd5d4935cc6ff821eece8b.zip
pfsense-4400ad66dca98efa3bbd5d4935cc6ff821eece8b.tar.gz
Rework qinq a bit. Make it use a vlan(4) as the firt Q and a ng_vlan(4) for the second Q in QinQ.
Diffstat (limited to 'usr/local/www/interfaces_qinq.php')
-rwxr-xr-xusr/local/www/interfaces_qinq.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/interfaces_qinq.php b/usr/local/www/interfaces_qinq.php
index b285fd9..84be902 100755
--- a/usr/local/www/interfaces_qinq.php
+++ b/usr/local/www/interfaces_qinq.php
@@ -68,10 +68,10 @@ if ($_GET['act'] == "del") {
$delmembers = explode(" ", $qinq['members']);
if (count($delmembers) > 0) {
foreach ($delmembers as $tag)
- mwexec("/usr/sbin/ngctl shutdown vlan{$qinq['tag']}h{$tag}:");
+ mwexec("/usr/sbin/ngctl shutdown {$qinq['vlanif']}h{$tag}:");
}
- mwexec("/usr/sbin/ngctl shutdown vlanh{$qinq['tag']}:");
- mwexec("/usr/sbin/ngctl shutdown {$qinq['if']}qinq:");
+ mwexec("/usr/sbin/ngctl shutdown {$qinq['vlanif']}qinq:");
+ mwexec("/usr/sbin/ngctl shutdown {$qinq['vlanif']}:");
unset($a_qinqs[$id]);
write_config();
@@ -127,7 +127,7 @@ include("head.inc");
<td class="listr">
<?php
if (strlen($qinq['members']) > 20)
- echo substr(htmlspecialchars($qinq['members']), 1, 20) . "...";
+ echo substr(htmlspecialchars($qinq['members']), 0, 20) . "...";
else
echo htmlspecialchars($qinq['members']);
?>
OpenPOWER on IntegriCloud