author | Lijo George<lijo.x.george@oracle.com> |
Wed, 02 Apr 2014 17:02:48 -0400 | |
changeset 1812 | c26fc4516fc4 |
permissions | -rw-r--r-- |
1812
c26fc4516fc4
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 |
c26fc4516fc4
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 |
c26fc4516fc4
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. |
c26fc4516fc4
16634190 net-snmp not reporting ifSpeed values correctly inside zones
Lijo George<lijo.x.george@oracle.com>
parents:
diff
changeset
|
4 |
|
c26fc4516fc4
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 |
c26fc4516fc4
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/ |
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; |