From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. ea40188f66d78c16956cdeb6d5c806bb7117c7f1 Date: Wed, 11 Mar 2015 14:05:18 +0100 Message-ID: <20150311130518.F06A021F24@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7922953160629313570==" List-Id: --===============7922953160629313570== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Date: Tue Mar 10 18:48:34 2015 +0100 BUG10502: Fix wrong interfaces in firewall.log =20 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/fi= rewalllog.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 =3D $3;=20 my $packet =3D $4; =20 - $packet =3D~ /IN=3D(\w+)/; my $iface=3D$1; if ( $1 =3D~ /2./ )= { $iface=3D"";} - $packet =3D~ /SRC=3D([\d\.]+)/; my $srcaddr=3D$1; - $packet =3D~ /DST=3D([\d\.]+)/; my $dstaddr=3D$1; - $packet =3D~ /MAC=3D([\w+\:]+)/; my $macaddr=3D$1; - $packet =3D~ /PROTO=3D(\w+)/; my $proto=3D$1; - $packet =3D~ /SPT=3D(\d+)/; my $srcport=3D$1; - $packet =3D~ /DPT=3D(\d+)/; my $dstport=3D$1; + my ($iface, $srcaddr, $dstaddr, $macaddr, $proto, $srcport, $dstport); + $iface=3D$1 if $packet =3D~ /IN=3D(\w+)/; + $srcaddr=3D$1 if $packet =3D~ /SRC=3D([\d\.]+)/; + $dstaddr=3D$1 if $packet =3D~ /DST=3D([\d\.]+)/; + $macaddr=3D$1 if $packet =3D~ /MAC=3D([\w+\:]+)/; + $proto=3D$1 if $packet =3D~ /PROTO=3D(\w+)/; + $srcport=3D$1 if $packet =3D~ /SPT=3D(\d+)/; + $dstport=3D$1 if $packet =3D~ /DPT=3D(\d+)/; =20 my $gi =3D Geo::IP::PurePerl->new(); my $ccode =3D $gi->country_code_by_name($srcaddr); hooks/post-receive -- IPFire 2.x development tree --===============7922953160629313570==--