]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
There are more than 20 and 27 parsings for local interface in the firwall log.
authorChristian Schmidt <maniacikarus@ipfire.org>
Sun, 23 Jan 2011 08:59:37 +0000 (09:59 +0100)
committerChristian Schmidt <maniacikarus@ipfire.org>
Sun, 23 Jan 2011 08:59:37 +0000 (09:59 +0100)
html/cgi-bin/logs.cgi/firewalllog.dat

index 2c4fb14f03aa04dc72513c2249567d9c0c79ed48..c2888c39a7ec8d408ef339f23e7825acdc042e01 100644 (file)
@@ -333,7 +333,7 @@ foreach $_ (@log)
         my $comment = $3; 
         my $packet = $4;
 
-        $packet =~ /IN=(\w+)/;       my $iface=$1; if ( $1 eq "27" || $1 eq "20"){ $iface="";}
+        $packet =~ /IN=(\w+)/;       my $iface=$1; if ( $1 $1 =~ /2./ ){ $iface="";}
         $packet =~ /SRC=([\d\.]+)/;  my $srcaddr=$1;
         $packet =~ /DST=([\d\.]+)/;  my $dstaddr=$1;
         $packet =~ /MAC=([\w+\:]+)/; my $macaddr=$1;