From owner-cvs-all@FreeBSD.ORG Fri Jul 14 09:07:57 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C79916A4DA; Fri, 14 Jul 2006 09:07:57 +0000 (UTC) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C555743D4C; Fri, 14 Jul 2006 09:07:56 +0000 (GMT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6E97uHM059402; Fri, 14 Jul 2006 09:07:56 GMT (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6E97urd059401; Fri, 14 Jul 2006 09:07:56 GMT (envelope-from harti) Message-Id: <200607140907.k6E97urd059401@repoman.freebsd.org> From: Hartmut Brandt Date: Fri, 14 Jul 2006 09:07:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/bsnmpd/modules/snmp_hostres hostres_device_tbl.c hostres_diskstorage_tbl.c hostres_fs_tbl.c hostres_network_tbl.c hostres_partition_tbl.c hostres_printer_tbl.c hostres_processor_tbl.c hostres_snmp.h hostres_storage_tbl.c hostres_swinstalled_tbl.c hostres_swrun_tbl.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2006 09:07:57 -0000 harti 2006-07-14 09:07:56 UTC FreeBSD src repository Modified files: usr.sbin/bsnmpd/modules/snmp_hostres hostres_device_tbl.c hostres_diskstorage_tbl.c hostres_fs_tbl.c hostres_network_tbl.c hostres_partition_tbl.c hostres_printer_tbl.c hostres_processor_tbl.c hostres_snmp.h hostres_storage_tbl.c hostres_swinstalled_tbl.c hostres_swrun_tbl.c Log: Reduce the memory requirements for the tables by (1) using malloced strings instead of maximum sized arrays embedded in the table structures and (2) using pointers to constant oids instead of copying the oid into each table structure. This also fixes indexing in the case when a string used for indexing is longer than the maximum size allowed in the MIB. Submitted by: Victor Cruceru Revision Changes Path 1.3 +110 -33 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c 1.5 +16 -5 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c 1.3 +66 -34 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c 1.3 +2 -2 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_network_tbl.c 1.4 +132 -42 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c 1.3 +2 -2 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c 1.6 +7 -6 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c 1.3 +42 -19 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h 1.3 +68 -48 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c 1.3 +79 -52 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c 1.5 +80 -39 src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c