diff options
-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 = ""; } } |