components/net-snmp-57/patches/039.17002960.kernel_sunos5.patch
author Danek Duvall <danek.duvall@oracle.com>
Thu, 15 Sep 2016 14:25:24 -0700
changeset 6951 deaf66c90a34
parent 5867 445e2cf1c845
permissions -rw-r--r--
24676059 {GIT,HG}_HASH lines not replaced properly
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1748
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     1
--- net-snmp-5.4.1.old/agent/mibgroup/kernel_sunos5.c	2014-02-26 05:32:10.697219080 -0500
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     2
+++ net-snmp-5.4.1/agent/mibgroup/kernel_sunos5.c	2014-02-26 05:31:28.588532860 -0500
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     3
@@ -296,7 +296,7 @@
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     4
 	goto Return;
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     5
     }
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     6
    
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     7
-    if ((ks = kstat_lookup(ksc, statname, 0, "link")) != NULL)
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     8
+    if ((ks = kstat_lookup(ksc, statname, -1, "link")) != NULL)
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
     9
     {
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
    10
         kid = kstat_read(ksc, ks, NULL);
5b1802fcf350 16032482 Net-SNMP ifOperStatus on solaris11 VM guest domain is not correct.
Lijo George - Oracle Corporation - Bangalore India <lijo.x.george@oracle.com>
parents:
diff changeset
    11
         if (kid == -1) {