From 29bb9ce0403f3aa21d10b4dc01e81719dcaf0d41 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 7 Jan 2006 21:21:01 +0000 Subject: Allow TCP protocol to work as well. --- usr/local/www/diag_logs_filter.php | 3 ++- 1 file changed, 2 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 af3ad61..58faac2 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -73,9 +73,10 @@ function conv_clog($logfile, $tail = 50) { preg_match("/(.*)\s(.*)\spf:.*rule.*\(match\):\s(\w+)\sin\son\s(\w+:)\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s([\<|\>])\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}):.*/",$logent,$log_split); $do_not_display = false; - $flent['proto'] = "TCP"; if(stristr($logent, "UDP") == true) $flent['proto'] = "UDP"; + else if(stristr($logent, "TCP") == true) + $flent['proto'] = "TCP"; else if(stristr($logent, "ICMP") == true) $flent['proto'] = "ICMP"; else if(stristr($logent, "HSRP") == true) -- cgit v1.1