aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/net-snmp53/files/patch-hr_storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/net-snmp53/files/patch-hr_storage.c')
-rw-r--r--net-mgmt/net-snmp53/files/patch-hr_storage.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/net-mgmt/net-snmp53/files/patch-hr_storage.c b/net-mgmt/net-snmp53/files/patch-hr_storage.c
index 0c538160296..3656d5a3a3d 100644
--- a/net-mgmt/net-snmp53/files/patch-hr_storage.c
+++ b/net-mgmt/net-snmp53/files/patch-hr_storage.c
@@ -1,11 +1,11 @@
---- agent/mibgroup/host/hr_storage.c.orig Fri Feb 8 19:42:25 2002
-+++ agent/mibgroup/host/hr_storage.c Sat Feb 16 23:37:31 2002
-@@ -583,7 +583,15 @@
- for (i = 0; i < sizeof(mbstat.m_mtypes)/sizeof(mbstat.m_mtypes[0]); i++)
- long_return += mbstat.m_mtypes[i];
+--- agent/mibgroup/host/hr_storage.c.orig Sat Apr 20 16:30:03 2002
++++ agent/mibgroup/host/hr_storage.c Wed Apr 24 01:37:29 2002
+@@ -604,7 +604,15 @@
+ i++)
+ long_return += mbstat.m_mtypes[i];
#elif defined(MBSTAT_SYMBOL)
+#if !defined(__FreeBSD__) || __FreeBSD_version < 500021
- long_return = mbstat.m_mbufs;
+ long_return = mbstat.m_mbufs;
+#elif __FreeBSD_version < 500024
+ /* mbuf stats disabled */
+ return NULL;
@@ -14,14 +14,14 @@
+ return NULL;
+#endif
#elif defined(NO_DUMMY_VALUES)
- return NULL;
+ return NULL;
#else
-@@ -634,7 +642,15 @@
- + (mclpool.pr_nget - mclpool.pr_nput)
- * mclpool.pr_size;
+@@ -654,7 +662,15 @@
+ * mbpool.pr_size + (mclpool.pr_nget - mclpool.pr_nput)
+ * mclpool.pr_size;
#elif defined(MBSTAT_SYMBOL)
+#if !defined(__FreeBSD__) || __FreeBSD_version < 500021
- long_return = mbstat.m_clusters - mbstat.m_clfree; /* unlikely, but... */
+ long_return = mbstat.m_clusters - mbstat.m_clfree; /* unlikely, but... */
+#elif __FreeBSD_version < 500024
+ /* mbuf stats disabled */
+ return NULL;
@@ -30,5 +30,5 @@
+ return NULL;
+#endif
#elif defined(NO_DUMMY_VALUES)
- return NULL;
+ return NULL;
#else