summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_filter.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-21 01:41:25 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-21 01:41:25 +0000
commit51fb86f5506b5ab648d10d96cf942c12607bfd83 (patch)
tree292d916b3c8c070aacddab1d5a0a00a1857bd32a /usr/local/www/diag_logs_filter.php
parentf469e606e0308355de0026eccb8bfa39aee317a5 (diff)
downloadpfsense-51fb86f5506b5ab648d10d96cf942c12607bfd83.zip
pfsense-51fb86f5506b5ab648d10d96cf942c12607bfd83.tar.gz
* Remove unused variable $do_not_display
* Do not add entry if we cannot deterimine the protocol
Diffstat (limited to 'usr/local/www/diag_logs_filter.php')
-rwxr-xr-xusr/local/www/diag_logs_filter.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index 0e7904f..092f6f2 100755
--- a/usr/local/www/diag_logs_filter.php
+++ b/usr/local/www/diag_logs_filter.php
@@ -91,8 +91,6 @@ function conv_clog($logfile, $tail = 50) {
$beforeupper = $logent;
$logent = strtoupper($logent);
- $do_not_display = false;
-
if(stristr(strtoupper($logent), "UDP") == true)
$flent['proto'] = "UDP";
else if(stristr(strtoupper($logent), "TCP") == true)
@@ -116,7 +114,7 @@ function conv_clog($logfile, $tail = 50) {
else if(stristr($logent, "sack") == true)
$flent['proto'] = "TCP";
else
- $do_not_display = true;
+ continue;
$flent['time'] = $log_split[1];
$flent['act'] = $log_split[3];
OpenPOWER on IntegriCloud