From c8d3249ec765e54c505087d0db5b8f18c40f43c7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 16 Dec 2005 18:11:18 +0000 Subject: handle all protocols Ticket #734 --- usr/local/www/diag_logs_filter.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'usr/local/www/diag_logs_filter.php') diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 0952457..ee54888 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -76,8 +76,22 @@ function conv_clog($logfile, $tail = 50) { $flent['proto'] = "TCP"; if(stristr($logent, "UDP") == true) $flent['proto'] = "UDP"; - if(stristr($logent, "ICMP") == true) + else if(stristr($logent, "ICMP") == true) $flent['proto'] = "ICMP"; + else if(stristr($logent, "HSRP") == true) + $flent['proto'] = "HSRP"; + else if(stristr($logent, "ESP") == true) + $flent['proto'] = "ESP"; + else if(stristr($logent, "AH") == true) + $flent['proto'] = "AH"; + else if(stristr($logent, "GRE") == true) + $flent['proto'] = "GRE"; + else if(stristr($logent, "IGMP") == true) + $flent['proto'] = "IGMP"; + else if(stristr($logent, "CARP") == true) + $flent['proto'] = "CARP"; + else if(stristr($logent, "PFSYNC") == true) + $flent['proto'] = "PFSYNC"; $flent['time'] = $log_split[1]; $flent['act'] = $log_split[3]; -- cgit v1.1