Bug 110969

Summary: [patch] net-snmp 5.4
Product: Ports & Packages Reporter: Valerio Daelli <valerio.daelli>
Component: Individual Port(s)Assignee: Jun Kuriyama <kuriyama>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
PATCH-SNMP-5.4 none

Description Valerio Daelli 2007-03-28 14:30:02 UTC
        Patch for net-snmp 5.3.1 -> 5.4
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2007-03-28 17:06:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Over to maintainer.
Comment 2 Valerio Daelli 2007-04-05 13:45:37 UTC
Maintainer ping
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-03-27 10:55:52 UTC
kuriyama    2008-03-27 10:55:45 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt             Makefile 
    net-mgmt/net-snmp    Makefile distinfo pkg-plist 
    net-mgmt/net-snmp/files patch-Makefile.in patch-freebsd5.h 
                            patch-hr_storage.c patch-ipv6.c 
                            patch-net-snmp-config.h.in 
                            patch-snmpUCDIPv6Domain.c 
                            patch-snmpUDPDomain.c 
                            patch-transform_oids.h 
                            patch-ucd_snmp.h 
    net-mgmt/net-snmp53  Makefile 
  Added files:
    net-mgmt/net-snmp/files patch-generic.h 
  Log:
  - Repocopy from net-mgmt/net-snmp to net-mgmt/net-snmp53.
  - Add appropriate CONFLICTS, NO_LATEST_LINK.
  - Upgrade net-mgmt/net-snmp to 5.4.1 [1].
  
  PR:             ports/110969 [1]
  Submitted by:   valerio.daelli@gmail.com [1]
  
  This upgrade (5.3.x -> 5.4.1) includes various changes in original
  sources.
  
  If you find something strange (or missing/incorrect MIB values) than
  5.3.x, please let me know.  And you can choose net-mgmt/net-snmp53
  port for old 5.3.x version.
  
  Revision  Changes    Path
  1.154     +1 -0      ports/net-mgmt/Makefile
  1.150     +50 -21    ports/net-mgmt/net-snmp/Makefile
  1.35      +3 -3      ports/net-mgmt/net-snmp/distinfo
  1.10      +5 -5      ports/net-mgmt/net-snmp/files/patch-Makefile.in
  1.4       +8 -8      ports/net-mgmt/net-snmp/files/patch-freebsd5.h
  1.1       +14 -0     ports/net-mgmt/net-snmp/files/patch-generic.h (new)
  1.15      +6 -222    ports/net-mgmt/net-snmp/files/patch-hr_storage.c
  1.6       +42 -47    ports/net-mgmt/net-snmp/files/patch-ipv6.c
  1.2       +7 -7      ports/net-mgmt/net-snmp/files/patch-net-snmp-config.h.in
  1.6       +4 -6      ports/net-mgmt/net-snmp/files/patch-snmpUCDIPv6Domain.c
  1.4       +0 -11     ports/net-mgmt/net-snmp/files/patch-snmpUDPDomain.c
  1.2       +6 -6      ports/net-mgmt/net-snmp/files/patch-transform_oids.h
  1.4       +0 -11     ports/net-mgmt/net-snmp/files/patch-ucd_snmp.h
  1.51      +8 -4      ports/net-mgmt/net-snmp/pkg-plist
  1.150     +2 -1      ports/net-mgmt/net-snmp53/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 dfilter service freebsd_committer freebsd_triage 2008-03-27 10:56:17 UTC
kuriyama    2008-03-27 10:56:14 UTC

  FreeBSD ports repository

  Removed files:
    net-mgmt/net-snmp/files patch-snmpUDPDomain.c patch-ucd_snmp.h 
  Log:
  - Repocopy from net-mgmt/net-snmp to net-mgmt/net-snmp53.
  - Add appropriate CONFLICTS, NO_LATEST_LINK.
  - Upgrade net-mgmt/net-snmp to 5.4.1 [1].
  
  PR:             ports/110969 [1]
  Submitted by:   valerio.daelli@gmail.com [1]
  
  This upgrade (5.3.x -> 5.4.1) includes various changes in original
  sources.
  
  If you find something strange (or missing/incorrect MIB values) than
  5.3.x, please let me know.  And you can choose net-mgmt/net-snmp53
  port for old 5.3.x version.
  
  Revision  Changes    Path
  1.5       +0 -0      ports/net-mgmt/net-snmp/files/patch-snmpUDPDomain.c (dead)
  1.5       +0 -0      ports/net-mgmt/net-snmp/files/patch-ucd_snmp.h (dead)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Jun Kuriyama freebsd_committer freebsd_triage 2008-03-27 10:57:27 UTC
State Changed
From-To: open->closed

Finally upgraded to 5.4.1.  Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2008-03-27 10:58:09 UTC
kuriyama    2008-03-27 10:58:04 UTC

  FreeBSD ports repository

  Modified files:
    .                    modules 
  Log:
  - Repocopy from net-mgmt/net-snmp to net-mgmt/net-snmp53.
  - Add appropriate CONFLICTS, NO_LATEST_LINK.
  - Upgrade net-mgmt/net-snmp to 5.4.1 [1].
  
  PR:             ports/110969 [1]
  Submitted by:   valerio.daelli@gmail.com [1]
  
  This upgrade (5.3.x -> 5.4.1) includes various changes in original
  sources.
  
  If you find something strange (or missing/incorrect MIB values) than
  5.3.x, please let me know.  And you can choose net-mgmt/net-snmp53
  port for old 5.3.x version.
  
  Revision  Changes    Path
  1.19559   +1 -0      CVSROOT/modules
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Alex Vasylenko 2008-04-13 06:18:02 UTC
after upgrading to net-snmp-5.4.1_2, value of OID
.1.3.6.1.4.1.2021.4.14.0 (UCD-SNMP-MIB::memBuffer.0) is no longer available.

This is on FreeBSD 6.3-STABLE built on Fri Feb  8 09:44:44 EST 2008
Comment 8 Valerio Daelli 2008-04-14 16:47:00 UTC
>Submitter-Id:	Valerio Daelli
>Originator:	Valerio Daelli
>Organization:	IFOM IEO Campus
>Confidential:	no 
>Synopsis:	ports/110969: [patch] net-snmp 5.4
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		update
>Release:	FreeBSD 7.0-RELEASE i386
>Environment:
System: FreeBSD bsd7.ifom-ieo-campus.it 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Thu Feb 28 11:28:45 CET 2008 root@bsd7.ifom-ieo-campus.it:/usr/obj/usr/src/sys/BSD7 i386


	
>Description:
I think the problem is in the original code of net-snmp 5.4, not in our patches. Anyway my
patch fixes it on my FreeBSD 7.0.
>How-To-Repeat:
>Fix:

patch the port with this patch

--- NET-SNMP-MEMORY-BUFFER.patch begins here ---
diff -ruN /usr/ports/net-mgmt/net-snmp.orig/files/patch-memory_freebsd.c /usr/ports/net-mgmt/net-snmp/files/patch-memory_freebsd.c
--- /usr/ports/net-mgmt/net-snmp.orig/files/patch-memory_freebsd.c	1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/net-mgmt/net-snmp/files/patch-memory_freebsd.c	2008-04-14 17:03:37.000000000 +0200
@@ -0,0 +1,39 @@
+--- agent/mibgroup/hardware/memory/memory_freebsd.c.orig	2006-03-06 17:23:52.000000000 +0100
++++ agent/mibgroup/hardware/memory/memory_freebsd.c	2008-04-14 16:45:19.000000000 +0200
+@@ -47,6 +47,9 @@
+     int            phys_mem_mib[] = { CTL_HW, HW_PHYSMEM };
+     int            user_mem_mib[] = { CTL_HW, HW_USERMEM };
+ 
++    long            bufspace;
++
++
+     /*
+      * Retrieve the memory information from the underlying O/S...
+      */
+@@ -54,6 +57,7 @@
+     sysctl(phys_mem_mib, 2, &phys_mem, &mem_size,      NULL, 0);
+     sysctl(user_mem_mib, 2, &user_mem, &mem_size,      NULL, 0);
+     auto_nlist(SUM_SYMBOL,      (char *) &vmem,     sizeof(vmem));
++    auto_nlist(BUFSPACE_SYMBOL, (char *) &bufspace, sizeof(bufspace));
+ #ifndef freebsd4
+     pagesize = 1024;
+ #else
+@@ -129,6 +133,18 @@
+         mem->free  = -1;
+     }
+ 
++    mem = netsnmp_memory_get_byIdx( NETSNMP_MEM_TYPE_MBUF, 1 );
++    if (!mem) {
++        snmp_log_perror("No Memory Buffer info entry");
++    } else {
++        if (!mem->descr)
++             mem->descr = strdup("Memory Buffer");
++        mem->units = pagesize;
++        mem->size  = bufspace/pagesize;
++        mem->free  = -1;
++    }
++
++
+     nswap = swapmode(pagesize);
+     mem = netsnmp_memory_get_byIdx( NETSNMP_MEM_TYPE_SWAP, 1 );
+     if (!mem) {
--- NET-SNMP-MEMORY-BUFFER.patch ends here ---