summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter_log.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc
index d989fa1..974dcdf 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -170,7 +170,17 @@ function parse_filter_line($line) {
$flags = preg_split('/[, ]/', $leftovers);
$flent['tcpflags'] = str_replace(".", "A", substr($flags[1], 1, -1));
} elseif ($flent['proto'] == "Options") {
- $flent['proto'] = "none";
+ /* Then there must be some info we missed */
+ if (!(strpos($leftovers, 'sum ok] ') === FALSE)) {
+ preg_match("/.*\ssum ok]\s(.*)\,\s.*/", $leftovers, $proto);
+ } elseif (!(strpos($line, 'sum ok] ') === FALSE)) {
+ preg_match("/.*\ssum ok]\s(.*)\,\s.*/", $line, $proto);
+ }
+ $proto = explode(" ", trim($proto[1]));
+ $flent['proto'] = rtrim($proto[0], ",");
+ /* If it's still 'Options', then just ignore it. */
+ if ($flent['proto'] == "Options")
+ $flent['proto'] = "none";
}
/* If there is a src, a dst, and a time, then the line should be usable/good */
OpenPOWER on IntegriCloud