diff --git a/html/pages/device/routing/bgp.inc.php b/html/pages/device/routing/bgp.inc.php
index 1aa000957..945634613 100644
--- a/html/pages/device/routing/bgp.inc.php
+++ b/html/pages/device/routing/bgp.inc.php
@@ -6,18 +6,41 @@
print_optionbar_start();
echo("
-
-
No Graphs |
-
Updates");
+
");
-echo(" | Prefixes:
-
IPv4 |
-
VPNv4 |
-
IPv6
- ");
+ if (!isset($_GET['optb'])) { echo(""); }
-echo("| Traffic:
-
Mac Accounting");
+ echo(" | ");
+
+ if ($_GET['optb'] == "updates") { echo(""); }
+
+ echo(" | Prefixes: ");
+
+ if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "ipv4.unicast") { echo(""); }
+
+ echo(" | ");
+
+ if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "vpnv4.unicast") { echo(""); }
+
+ echo(" | ");
+
+ if ($_GET['optb'] == "prefixes" && $_GET['optc'] == "ipv6.unicast") { echo(""); }
+
+ echo(" | Traffic: ");
+
+ if ($_GET['optb'] == "macaccounting") { echo(""); }
echo("
");
@@ -71,7 +94,7 @@ while ($peer = mysql_fetch_assoc($peer_query))
}
else
{
- $peername = gethostbyaddr($peer['bgpPeerIdentifier']);
+ #$peername = gethostbyaddr($peer['bgpPeerIdentifier']); ## FFffuuu DNS
if ($peername == $peer['bgpPeerIdentifier'])
{
unset($peername);