components/mrtg/patches/mrtg-2.16.2-cfgmaker-ifhighspeed.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Fri, 15 Jan 2016 01:22:16 -0800
changeset 5297 e9b84fd24a41
parent 5239 a4bfde1dd226
permissions -rw-r--r--
15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5239
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     1
Upstream patches:
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     2
https://bugzilla.redhat.com/show_bug.cgi?id=836197
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     3
5297
e9b84fd24a41 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5239
diff changeset
     4
--- mrtg-2.17.4/bin/cfgmaker	2016-01-07 06:23:10.755091799 -0800
e9b84fd24a41 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5239
diff changeset
     5
+++ mrtg-2.17.4/bin/cfgmaker	2016-01-07 06:22:46.534894374 -0800
e9b84fd24a41 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5239
diff changeset
     6
@@ -224,7 +224,7 @@ sub InterfaceInfo($$$$$) {
5239
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     7
 #            maximum value (4,294,967,295) and ifHighSpeed must be used
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     8
 #            to report the interace's speed.  For a sub-layer which has
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     9
 #            no concept of bandwidth, this object should be zero."
5297
e9b84fd24a41 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5239
diff changeset
    10
-            if ( (not defined $value) || ($value == 2**32-1) ) {
e9b84fd24a41 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5239
diff changeset
    11
+            if ( (not defined $value) || ($value == 2**32-1) || ($value == 2**32-2) ) {
5239
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    12
                 ($if, $value) = split /:/, $ifHighSpeed[$i], 2;
a4bfde1dd226 22369771 Move MRTG to Userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    13
 	        $value = $value * 1000000;  # highSpeed = contador * 10^6
5297
e9b84fd24a41 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5239
diff changeset
    14
                 debug('base',"Speed: $if - $value");