SF.net SVN: gar:[24717] csw/mgar/pkg/netsnmp/trunk

hjb001 at users.sourceforge.net hjb001 at users.sourceforge.net
Thu Mar 12 08:59:15 CET 2015


Revision: 24717
          http://sourceforge.net/p/gar/code/24717
Author:   hjb001
Date:     2015-03-12 07:59:14 +0000 (Thu, 12 Mar 2015)
Log Message:
-----------
netsnmp/trunk: patch added: reduced cache aging period to three seconds - used for IF-MIB 3s cache ttl

Modified Paths:
--------------
    csw/mgar/pkg/netsnmp/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/netsnmp/trunk/files/0053-three-seconds.patch

Modified: csw/mgar/pkg/netsnmp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/Makefile	2015-03-11 19:05:35 UTC (rev 24716)
+++ csw/mgar/pkg/netsnmp/trunk/Makefile	2015-03-12 07:59:14 UTC (rev 24717)
@@ -50,6 +50,9 @@
 # this CVE is already fixed in 5.7.3
 # PATCHFILES += 0051-CVE-2014-2285.patch
 PATCHFILES += 0052-dyn-cpu-cpu_kstat.patch
+# upstream patch https://sourceforge.net/p/net-snmp/patches/1297/
+# has been included upstream and can be removed when moving to next higher version
+PATCHFILES += 0053-three-seconds.patch
 
 VENDOR_URL = http://www.net-snmp.org/
 

Added: csw/mgar/pkg/netsnmp/trunk/files/0053-three-seconds.patch
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/files/0053-three-seconds.patch	                        (rev 0)
+++ csw/mgar/pkg/netsnmp/trunk/files/0053-three-seconds.patch	2015-03-12 07:59:14 UTC (rev 24717)
@@ -0,0 +1,27 @@
+--- a/agent/mibgroup/kernel_sunos5.c
++++ b/agent/mibgroup/kernel_sunos5.c
+@@ -82,7 +82,7 @@ kstat_ctl_t    *kstat_fd = 0;
+ static
+ mibcache        Mibcache[MIBCACHE_SIZE+1] = {
+     {MIB_SYSTEM, 0, (void *) -1, 0, 0, 0, 0},
+-    {MIB_INTERFACES, 128 * sizeof(mib2_ifEntry_t), (void *) -1, 0, 30, 0,
++    {MIB_INTERFACES, 128 * sizeof(mib2_ifEntry_t), (void *) -1, 0, 3, 0,
+      0},
+     {MIB_AT, 0, (void *) -1, 0, 0, 0, 0},
+     {MIB_IP, sizeof(mib2_ip_t), (void *) -1, 0, 60, 0, 0},
+@@ -257,14 +257,10 @@ void
+ init_kernel_sunos5(void)
+ {
+     static int creg   = 0;
+-    const  int period = 30;
++    const  int period = 3;
+     int    alarm_id   = 0;
+ 
+     if (creg == 0) {
+-	alarm_id = snmp_alarm_register(5, NULL, kernel_sunos5_cache_age,
+-                                       NULL);
+-	DEBUGMSGTL(("kernel_sunos5", "registered alarm %d with period 5s\n", 
+-		    alarm_id));
+ 	alarm_id = snmp_alarm_register(period, SA_REPEAT, 
+                                        kernel_sunos5_cache_age,
+                                        (void *)period);

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list