summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-09 13:04:14 -0400
committerjim-p <jimp@pfsense.org>2012-05-09 13:25:50 -0400
commitca88c37ed57f761d0766968d76d78b29cde2171f (patch)
treed3c159974011d9c753782812f7e134d4a5aae280 /usr/local/bin
parent49ddf9a10ff3379162d437622f664cfe924b4552 (diff)
downloadpfsense-ca88c37ed57f761d0766968d76d78b29cde2171f.zip
pfsense-ca88c37ed57f761d0766968d76d78b29cde2171f.tar.gz
Include TCP flags in CLI filter parser output (if present)
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/filterparser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/bin/filterparser.php b/usr/local/bin/filterparser.php
index 3460e3e..730d728 100755
--- a/usr/local/bin/filterparser.php
+++ b/usr/local/bin/filterparser.php
@@ -73,8 +73,9 @@ while(!feof($log)) {
dstip - Destination IP
dstport - Destination Port
*/
+ $flags = (($flent['proto'] == "TCP") && !empty($flent['tcpflags'])) ? ":" . $flent['tcpflags'] : "";
if ($flent != "") {
- echo "{$flent['time']} {$flent['act']} {$flent['realint']} {$flent['proto']} {$flent['src']} {$flent['dst']}\n";
+ echo "{$flent['time']} {$flent['act']} {$flent['realint']} {$flent['proto']}{$flags} {$flent['src']} {$flent['dst']}\n";
$flent = "";
}
}
OpenPOWER on IntegriCloud