author | Jesse Butler <jesse.butler@oracle.com> |
Tue, 18 Oct 2016 05:50:50 -0700 | |
changeset 7121 | 02252aa4d56c |
parent 5867 | 445e2cf1c845 |
permissions | -rw-r--r-- |
5867
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
1965
diff
changeset
|
1 |
# This patch fixes a Solaris specific issue related to incorrect |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
1965
diff
changeset
|
2 |
# reporting of network interface speed inside a zone. The patch has |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
1965
diff
changeset
|
3 |
# been submitted to the community but has not been accepted yet. |
1812
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
4 |
|
5867
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
1965
diff
changeset
|
5 |
# The details can be found in the following location |
445e2cf1c845
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1
Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
parents:
1965
diff
changeset
|
6 |
# https://sourceforge.net/p/net-snmp/patches/1277/ |
1812
c26fc4516fc4
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 |
c26fc4516fc4
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 |
c26fc4516fc4
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 @@ |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
10 |
* this is good |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
11 |
*/ |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
12 |
havespeed = B_TRUE; |
c26fc4516fc4
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) || |
c26fc4516fc4
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)) { |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
15 |
+ havespeed = B_TRUE; |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
16 |
} |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
17 |
- |
c26fc4516fc4
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 */ |
c26fc4516fc4
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) { |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
20 |
int i_tmp; |