Return correct memory size when over 2G.
PR: ports/35352 Submitted by: Steve Shorter <steve@nomad.tor.lets.net>
This commit is contained in:
parent
94af2756c1
commit
54efd30dae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55662
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ucd-snmp
|
||||
PORTVERSION= 4.2.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
ftp://ucd-snmp.ucdavis.edu/ \
|
||||
|
11
net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
Normal file
11
net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
|
||||
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
|
||||
@@ -232,7 +232,7 @@
|
||||
size_t total_size = sizeof (total);
|
||||
int total_mib[] = { CTL_VM, VM_METER };
|
||||
|
||||
- long phys_mem;
|
||||
+ u_long phys_mem;
|
||||
size_t phys_mem_size = sizeof(phys_mem);
|
||||
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ucd-snmp
|
||||
PORTVERSION= 4.2.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
ftp://ucd-snmp.ucdavis.edu/ \
|
||||
|
11
net-mgmt/net-snmp/files/patch-memory_freebsd2.c
Normal file
11
net-mgmt/net-snmp/files/patch-memory_freebsd2.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
|
||||
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
|
||||
@@ -232,7 +232,7 @@
|
||||
size_t total_size = sizeof (total);
|
||||
int total_mib[] = { CTL_VM, VM_METER };
|
||||
|
||||
- long phys_mem;
|
||||
+ u_long phys_mem;
|
||||
size_t phys_mem_size = sizeof(phys_mem);
|
||||
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ucd-snmp
|
||||
PORTVERSION= 4.2.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
ftp://ucd-snmp.ucdavis.edu/ \
|
||||
|
11
net-mgmt/net-snmp4/files/patch-memory_freebsd2.c
Normal file
11
net-mgmt/net-snmp4/files/patch-memory_freebsd2.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
|
||||
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
|
||||
@@ -232,7 +232,7 @@
|
||||
size_t total_size = sizeof (total);
|
||||
int total_mib[] = { CTL_VM, VM_METER };
|
||||
|
||||
- long phys_mem;
|
||||
+ u_long phys_mem;
|
||||
size_t phys_mem_size = sizeof(phys_mem);
|
||||
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ucd-snmp
|
||||
PORTVERSION= 4.2.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
ftp://ucd-snmp.ucdavis.edu/ \
|
||||
|
11
net-mgmt/net-snmp53/files/patch-memory_freebsd2.c
Normal file
11
net-mgmt/net-snmp53/files/patch-memory_freebsd2.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
|
||||
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
|
||||
@@ -232,7 +232,7 @@
|
||||
size_t total_size = sizeof (total);
|
||||
int total_mib[] = { CTL_VM, VM_METER };
|
||||
|
||||
- long phys_mem;
|
||||
+ u_long phys_mem;
|
||||
size_t phys_mem_size = sizeof(phys_mem);
|
||||
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ucd-snmp
|
||||
PORTVERSION= 4.2.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
ftp://ucd-snmp.ucdavis.edu/ \
|
||||
|
11
net/net-snmp/files/patch-memory_freebsd2.c
Normal file
11
net/net-snmp/files/patch-memory_freebsd2.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
|
||||
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
|
||||
@@ -232,7 +232,7 @@
|
||||
size_t total_size = sizeof (total);
|
||||
int total_mib[] = { CTL_VM, VM_METER };
|
||||
|
||||
- long phys_mem;
|
||||
+ u_long phys_mem;
|
||||
size_t phys_mem_size = sizeof(phys_mem);
|
||||
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ucd-snmp
|
||||
PORTVERSION= 4.2.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
ftp://ucd-snmp.ucdavis.edu/ \
|
||||
|
11
net/net-snmp4/files/patch-memory_freebsd2.c
Normal file
11
net/net-snmp4/files/patch-memory_freebsd2.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Mon Sep 17 06:16:16 2001
|
||||
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Mon Mar 4 10:00:56 2002
|
||||
@@ -232,7 +232,7 @@
|
||||
size_t total_size = sizeof (total);
|
||||
int total_mib[] = { CTL_VM, VM_METER };
|
||||
|
||||
- long phys_mem;
|
||||
+ u_long phys_mem;
|
||||
size_t phys_mem_size = sizeof(phys_mem);
|
||||
int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
|
||||
|
Loading…
Reference in New Issue
Block a user