From 58d6b254e29bed752b67a70071a5185efaf0e820 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sat, 21 Apr 2012 19:49:12 +0000 Subject: [PATCH] add searching for MAC addresses (#30 Mike Stupalov) git-svn-id: http://www.observium.org/svn/observer/trunk@3073 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-menubar.php | 1 + html/pages/search.inc.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 3c7781138f..3b30a99550 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -39,6 +39,7 @@ if (isset($config['enable_bgp']) && $config['enable_bgp'])
  • IPv4 Search
  • IPv6 Search
  • MAC Search
  • +
  • ARP Tables
  • diff --git a/html/pages/search.inc.php b/html/pages/search.inc.php index 2ca49b0502..2dcebd3801 100644 --- a/html/pages/search.inc.php +++ b/html/pages/search.inc.php @@ -2,7 +2,7 @@ $pagetitle[] = "Search"; -$sections = array('ipv4' => 'IPv4 Address', 'ipv6' => 'IPv6 Address', 'mac' => 'MAC Address'); +$sections = array('ipv4' => 'IPv4 Address', 'ipv6' => 'IPv6 Address', 'mac' => 'MAC Address', 'arp' => 'ARP Table'); if (!isset($vars['search'])) { $vars['search'] = "ipv4"; } @@ -35,6 +35,7 @@ switch ($vars['search']) case 'ipv4': case 'ipv6': case 'mac': + case 'arp': include('pages/search/'.$vars['search'].'.inc.php'); break; default: