* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. ea40188f66d78c16956cdeb6d5c806bb7117c7f1
@ 2015-03-11 13:05 git
0 siblings, 0 replies; only message in thread
From: git @ 2015-03-11 13:05 UTC (permalink / raw)
To: ipfire-scm
[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via ea40188f66d78c16956cdeb6d5c806bb7117c7f1 (commit)
from b8a97bd9436f3494745b95868dc5b0774d0c40e8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ea40188f66d78c16956cdeb6d5c806bb7117c7f1
Author: Bernhard Bitsch <bbitsch(a)ipfire.org>
Date: Tue Mar 10 18:48:34 2015 +0100
BUG10502: Fix wrong interfaces in firewall.log
Fix from BeBiMa
-----------------------------------------------------------------------
Summary of changes:
html/cgi-bin/logs.cgi/firewalllog.dat | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
Difference in files:
diff --git a/html/cgi-bin/logs.cgi/firewalllog.dat b/html/cgi-bin/logs.cgi/firewalllog.dat
index 8bb4900..7525626 100644
--- a/html/cgi-bin/logs.cgi/firewalllog.dat
+++ b/html/cgi-bin/logs.cgi/firewalllog.dat
@@ -334,13 +334,14 @@ foreach $_ (@log)
my $comment = $3;
my $packet = $4;
- $packet =~ /IN=(\w+)/; my $iface=$1; if ( $1 =~ /2./ ){ $iface="";}
- $packet =~ /SRC=([\d\.]+)/; my $srcaddr=$1;
- $packet =~ /DST=([\d\.]+)/; my $dstaddr=$1;
- $packet =~ /MAC=([\w+\:]+)/; my $macaddr=$1;
- $packet =~ /PROTO=(\w+)/; my $proto=$1;
- $packet =~ /SPT=(\d+)/; my $srcport=$1;
- $packet =~ /DPT=(\d+)/; my $dstport=$1;
+ my ($iface, $srcaddr, $dstaddr, $macaddr, $proto, $srcport, $dstport);
+ $iface=$1 if $packet =~ /IN=(\w+)/;
+ $srcaddr=$1 if $packet =~ /SRC=([\d\.]+)/;
+ $dstaddr=$1 if $packet =~ /DST=([\d\.]+)/;
+ $macaddr=$1 if $packet =~ /MAC=([\w+\:]+)/;
+ $proto=$1 if $packet =~ /PROTO=(\w+)/;
+ $srcport=$1 if $packet =~ /SPT=(\d+)/;
+ $dstport=$1 if $packet =~ /DPT=(\d+)/;
my $gi = Geo::IP::PurePerl->new();
my $ccode = $gi->country_code_by_name($srcaddr);
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-11 13:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-11 13:05 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. ea40188f66d78c16956cdeb6d5c806bb7117c7f1 git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox