summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-01-29 22:55:27 +0545
committerErmal LUÇI <eri@pfsense.org>2015-01-31 10:17:01 +0100
commit7790dacceddfccbbd8c9c5ca13235a313b81d80f (patch)
treea274fe1b330556b9d13ca9f2dd02b4543ee9adc3
parent95c93bc3f6a281bd525d72925ea54dfa6ec2709b (diff)
downloadpfsense-7790dacceddfccbbd8c9c5ca13235a313b81d80f.zip
pfsense-7790dacceddfccbbd8c9c5ca13235a313b81d80f.tar.gz
Firewall Log does not display logged IGMP packets
If IGMP packets are logged (either pass or block) then parse_filter_line did not set their src and dst IP. Later in the subroutine, it zapped the filter line because it did not have a src and dst. This fixes it. Now the IGMP lines in /var/log/filter.log appear on the Firewall Log GUI.
-rw-r--r--etc/inc/filter_log.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc
index 073d44f..46c9b13 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -238,6 +238,9 @@ function parse_filter_line($line) {
break;
}
+ } else if ($flent['protoid'] == '2') { // IGMP
+ $flent['src'] = $flent['srcip'];
+ $flent['dst'] = $flent['dstip'];
} else if ($flent['protoid'] == '112') { // CARP
$flent['type'] = $rule_data[$field++];
$flent['ttl'] = $rule_data[$field++];
OpenPOWER on IntegriCloud