diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-07 21:21:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-07 21:21:01 +0000 |
commit | 29bb9ce0403f3aa21d10b4dc01e81719dcaf0d41 (patch) | |
tree | d10cf9ebe50530e27c18ac86b6a0bb6c05e12e25 /usr | |
parent | ed1320e7f6ae5a5337c81abbb4aac14256167d4e (diff) | |
download | pfsense-29bb9ce0403f3aa21d10b4dc01e81719dcaf0d41.zip pfsense-29bb9ce0403f3aa21d10b4dc01e81719dcaf0d41.tar.gz |
Allow TCP protocol to work as well.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 3 |
1 files changed, 2 insertions, 1 deletions
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) |