OSSP CVS Repository

ossp - Check-in [4929]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4929
Date: 2004-Dec-27 14:06:19 (local)
2004-Dec-27 13:06:19 (UTC)
User:rse
Branch:
Comment: Match flows against targets in the same order the targets occur in the configuration file to allow overlapping networks (where the first matching one is taken).
Tickets:
Inspections:
Files:
ossp-pkg/flow2rrd/ChangeLog      1.7 -> 1.8     5 inserted, 0 deleted
ossp-pkg/flow2rrd/THANKS      1.3 -> 1.4     1 inserted, 0 deleted
ossp-pkg/flow2rrd/flow2rrd.pl      1.11 -> 1.12     1 inserted, 1 deleted

ossp-pkg/flow2rrd/ChangeLog 1.7 -> 1.8

--- ChangeLog    2004/12/26 20:03:35     1.7
+++ ChangeLog    2004/12/27 13:06:19     1.8
@@ -10,6 +10,11 @@
 
   Changes between 0.9.1 and 0.9.2 (26-Dec-2004 to 27-Dec-2004):
 
+    *) Match flows against targets in the same order the targets
+       occur in the configuration file to allow overlapping
+       networks (where the first matching one is taken).
+       [Ralf S. Engelschall, Christoph Schug]
+
     *) Small source tree cleanups.
        [Ralf S. Engelschall]
 


ossp-pkg/flow2rrd/THANKS 1.3 -> 1.4

--- THANKS       2004/12/26 20:03:35     1.3
+++ THANKS       2004/12/27 13:06:19     1.4
@@ -11,6 +11,7 @@
   Credit has to be given to the following people who contributed ideas,
   stuff, bugfixes, hints etc. (in alphabetical order):
 
+  o Christoph Schug          <chris@schug.net>
   o Thomas Lotterer          <thomas@lotterer.net>
 
   ...and all other OSSP flow2rrd users who gave me feedback but I've forgot.


ossp-pkg/flow2rrd/flow2rrd.pl 1.11 -> 1.12

--- flow2rrd.pl  2004/12/26 20:03:35     1.11
+++ flow2rrd.pl  2004/12/27 13:06:19     1.12
@@ -370,7 +370,7 @@
         #   the flow matches them...
         my $matched_total = 0;
         LOOP: foreach my $host (@{$cfg->{'Host'}}) {
-            foreach my $target (grep { $_ !~ m/^-/ } keys(%{$host->{-target}})) {
+            foreach my $target (@{$host->{-target}->{-order}}) {
                 my $matched = 0;
                 my $inbound; $inbound = undef;
                 my $np = $ctx->{-network}->{$host->{-name}.":".$target};

CVSTrac 2.0.1