components/net-snmp/patches/043.16634190.kernel_sunos5.patch
author Ronald Jordan <ron.jordan@oracle.com>
Tue, 10 Jun 2014 04:08:50 -0700
branchs11u1sru20-backport
changeset 3173 c059623861df
parent 3109 1940d0927363
permissions -rw-r--r--
18889686 problem in UTILITY/OPENSSL 18889720 problem in UTILITY/OPENSSL 18889740 problem in UTILITY/OPENSSL 18889837 problem in UTILITY/OPENSSL 18889844 problem in UTILITY/OPENSSL 18889862 problem in UTILITY/OPENSSL 18924227 Upgrade OpenSSL to 1.0.0m 18924454 OpenSSL 1.0.0m upgrade requires removal of patch fix for CVE-2014-0076 18924292 Build failure caused by OpenSSL 1.0.0m upgrade

This patch fixes a Solaris specific issue related to incorrect
reporting of network interface speed inside a zone. The patch has 
been submitted to the community but has not been accepted yet.

The details can be found in the following location
https://sourceforge.net/p/net-snmp/patches/1277/
--- net-snmp-5.4.1.old/agent/mibgroup/kernel_sunos5.c	2014-03-28 14:54:11.259600880 -0400
+++ net-snmp-5.4.1/agent/mibgroup/kernel_sunos5.c	2014-03-28 14:52:32.837130820 -0400
@@ -1908,8 +1908,10 @@
          * this is good 
          */
 	havespeed = B_TRUE;
+    } else if ((getKstatInt("link", name, "ifspeed", &ifp->ifSpeed) == 0) ||
+               (getKstatInt("link", name, "ifSpeed", &ifp->ifSpeed) == 0)) {
+        havespeed = B_TRUE;
     }
-
     /* make ifOperStatus depend on link status if available */
     if (ifp->ifAdminStatus == 1) {
         int i_tmp;