16634190 net-snmp not reporting ifSpeed values correctly inside zones s11-update
authorLijo George<lijo.x.george@oracle.com>
Mon, 07 Apr 2014 10:22:09 -0700
branchs11-update
changeset 3055 f05d09d6683f
parent 3054 6c3d483b5807
child 3056 1adb204c55f4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
components/net-snmp/patches/042.16634190.kernel_sunos5.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/042.16634190.kernel_sunos5.patch	Mon Apr 07 10:22:09 2014 -0700
@@ -0,0 +1,20 @@
+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;