components/net-snmp/patches/042.16634190.kernel_sunos5.patch
changeset 1965 374a90784fdd
parent 1964 aaaf769f15a7
child 1966 16b1df9b66d4
equal deleted inserted replaced
1964:aaaf769f15a7 1965:374a90784fdd
     1 This patch fixes a Solaris specific issue related to incorrect
       
     2 reporting of network interface speed inside a zone. The patch has 
       
     3 been submitted to the community but has not been accepted yet.
       
     4 
       
     5 The details can be found in the following location
       
     6 https://sourceforge.net/p/net-snmp/patches/1277/
       
     7 --- net-snmp-5.4.1.old/agent/mibgroup/kernel_sunos5.c	2014-03-28 14:54:11.259600880 -0400
       
     8 +++ net-snmp-5.4.1/agent/mibgroup/kernel_sunos5.c	2014-03-28 14:52:32.837130820 -0400
       
     9 @@ -1908,8 +1908,10 @@
       
    10           * this is good 
       
    11           */
       
    12  	havespeed = B_TRUE;
       
    13 +    } else if ((getKstatInt("link", name, "ifspeed", &ifp->ifSpeed) == 0) ||
       
    14 +               (getKstatInt("link", name, "ifSpeed", &ifp->ifSpeed) == 0)) {
       
    15 +        havespeed = B_TRUE;
       
    16      }
       
    17 -
       
    18      /* make ifOperStatus depend on link status if available */
       
    19      if (ifp->ifAdminStatus == 1) {
       
    20          int i_tmp;