Date: Fri, 14 Jul 2006 09:07:56 +0000 (UTC) From: Hartmut Brandt <harti@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org 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 Message-ID: <200607140907.k6E97urd059401@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <soc-victor@>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607140907.k6E97urd059401>
