summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-04 21:48:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-04 21:48:31 +0000
commit3c961255f5509d12952fe32740c2aafecfd6c136 (patch)
tree9ec43b72708c879183e5ffd18688154c557baa8e /usr
parentb8467d8e8f93c8be6e40d13ac5cc9a3486d7d775 (diff)
downloadpfsense-3c961255f5509d12952fe32740c2aafecfd6c136.zip
pfsense-3c961255f5509d12952fe32740c2aafecfd6c136.tar.gz
Handle other protocols besides tcp and udp.
Ticket #657
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_logs_filter.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index 196ea04..e6dc4f0 100755
--- a/usr/local/www/diag_logs_filter.php
+++ b/usr/local/www/diag_logs_filter.php
@@ -68,6 +68,9 @@ 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}\.[0-9]{1,7})\s([\<|\>])\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,7}):.*/",$logent,$log_split);
+ if($log_split[5] == "")
+ 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);
+
$flent['proto'] = "TCP";
if(stristr($logent, "UDP") == true)
$flent['proto'] = "UDP";
OpenPOWER on IntegriCloud