summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
Commit message (Collapse)AuthorAgeFilesLines
* Import patch to fix hostres high CPU usageRenato Botelho2017-10-161-1/+2
| | | | Imported from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209368
* MFC r310666,r310675:ngie2016-12-311-1/+1
| | | | | | | | | | | | | | | | r310666: style(9) fixes - Clean up trailing whitespace - Fix variable type alignment in storage_OS_get_swap(..) r310675: Fix the build by moving the initializers for len/nswapdev down below the declarations Pointyhat to: ngie
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* Use full buffer size in read(2) call, there is no need to preserve theae2011-07-111-11/+5
| | | | | | | | | | | | | | | | last byte of the buffer. Since we call refresh_device_tbl() for any devctl event types - no need to check the first byte of buffer. Remove these checks. Also remove logging for the case of unknown devd message. It incorrectly triggers when all devctl events are not fit into one buffer and part of unread data will be read in the next pass. When length of data readed from devctl is equal to sizeof(buf), then try to read from socket again, to read full data. MFC after: 2 weeks
* Collapse devinfo_state_t with device_state_t in order to avoid aattilio2009-11-151-4/+4
| | | | | | | structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
* ! is a generic info messagexride2007-03-091-0/+1
| | | | | | Reviewed by: harti Approved by: harti MFC after: 2 weeks
* Reduce the memory requirements for the tables by (1) using malloced stringsharti2006-07-141-33/+110
| | | | | | | | | 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@>
* msgharti2006-01-091-0/+612
OpenPOWER on IntegriCloud