diff options
author | jim-p <jimp@pfsense.org> | 2012-05-09 13:04:14 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-09 13:25:50 -0400 |
commit | ca88c37ed57f761d0766968d76d78b29cde2171f (patch) | |
tree | d3c159974011d9c753782812f7e134d4a5aae280 /usr/local | |
parent | 49ddf9a10ff3379162d437622f664cfe924b4552 (diff) | |
download | pfsense-ca88c37ed57f761d0766968d76d78b29cde2171f.zip pfsense-ca88c37ed57f761d0766968d76d78b29cde2171f.tar.gz |
Include TCP flags in CLI filter parser output (if present)
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/bin/filterparser.php | 3 |
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 = ""; } } |