diff options
author | Phil Davis <phil.davis@inf.org> | 2015-01-29 22:55:27 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-01-29 22:55:27 +0545 |
commit | 091195f09e627f575bb195006d255ad4e85dfef7 (patch) | |
tree | 70ff03851bcbc23b5420ad395ef2d33e0f14d3b1 /etc/inc/filter_log.inc | |
parent | f5b23288160aebd53e5d983ab872b468c09934ed (diff) | |
download | pfsense-091195f09e627f575bb195006d255ad4e85dfef7.zip pfsense-091195f09e627f575bb195006d255ad4e85dfef7.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.
Diffstat (limited to 'etc/inc/filter_log.inc')
-rw-r--r-- | etc/inc/filter_log.inc | 3 |
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++]; |