components/net-snmp/patches/043.16634190.kernel_sunos5.patch
author Tomas Klacko <tomas.klacko@oracle.com>
Fri, 02 May 2014 12:23:29 +0200
branchs11u1-sru
changeset 3109 1940d0927363
parent 3060 components/net-snmp/patches/[email protected]
permissions -rw-r--r--
17758422 50 or more exec options in snmpd.conf results in errors
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3060
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     1
This patch fixes a Solaris specific issue related to incorrect
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     2
reporting of network interface speed inside a zone. The patch has 
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     3
been submitted to the community but has not been accepted yet.
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     4
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     5
The details can be found in the following location
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     6
https://sourceforge.net/p/net-snmp/patches/1277/
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     7
--- net-snmp-5.4.1.old/agent/mibgroup/kernel_sunos5.c	2014-03-28 14:54:11.259600880 -0400
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     8
+++ net-snmp-5.4.1/agent/mibgroup/kernel_sunos5.c	2014-03-28 14:52:32.837130820 -0400
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
     9
@@ -1908,8 +1908,10 @@
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    10
          * this is good 
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    11
          */
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    12
 	havespeed = B_TRUE;
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    13
+    } else if ((getKstatInt("link", name, "ifspeed", &ifp->ifSpeed) == 0) ||
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    14
+               (getKstatInt("link", name, "ifSpeed", &ifp->ifSpeed) == 0)) {
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    15
+        havespeed = B_TRUE;
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    16
     }
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    17
-
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    18
     /* make ifOperStatus depend on link status if available */
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    19
     if (ifp->ifAdminStatus == 1) {
33f1f38298d4 16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff changeset
    20
         int i_tmp;