Browse Source

apply patch for order-persistent matching of flows

Ralf S. Engelschall 21 years ago
parent
commit
9e1b84efa9
2 changed files with 19 additions and 0 deletions
  1. 17 0
      flow2rrd/flow2rrd.patch
  2. 2 0
      flow2rrd/flow2rrd.spec

+ 17 - 0
flow2rrd/flow2rrd.patch

@@ -0,0 +1,17 @@
+cvs diff: Diffing .
+Index: flow2rrd.pl
+===================================================================
+RCS file: /u/rse/arc/cvs/ossp/ossp-pkg/flow2rrd/flow2rrd.pl,v
+retrieving revision 1.11
+diff -u -d -u -d -r1.11 flow2rrd.pl
+--- flow2rrd.pl	26 Dec 2004 20:03:35 -0000	1.11
++++ flow2rrd.pl	27 Dec 2004 12:57:33 -0000
+@@ -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};

+ 2 - 0
flow2rrd/flow2rrd.spec

@@ -38,6 +38,7 @@ Release:      20041227
 
 
 #   list of sources
 #   list of sources
 Source0:      ftp://ftp.ossp.org/pkg/tool/flow2rrd/flow2rrd-%{version}.tar.gz
 Source0:      ftp://ftp.ossp.org/pkg/tool/flow2rrd/flow2rrd-%{version}.tar.gz
+Patch0:       flow2rrd.patch
 
 
 #   build information
 #   build information
 Prefix:       %{l_prefix}
 Prefix:       %{l_prefix}
@@ -65,6 +66,7 @@ AutoReqProv:  no
 
 
 %prep
 %prep
     %setup -q
     %setup -q
+    %patch -p0
 
 
 %build
 %build
     #   build the program
     #   build the program