components/net-snmp/patches/042.16634190.kernel_sunos5.patch
author Petr Nyc <Petr.Nyc@Oracle.COM>
Wed, 30 Apr 2014 01:05:43 -0700
branchs11u1-sru
changeset 3103 f0ad806e26ab
parent 3060 33f1f38298d4
permissions -rw-r--r--
Added tag 0.175.1.19.0.5.0, S11.1SRU19.5 for changeset 3855f970a9cc

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;