History log of /freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 325396 04-Nov-2017 pfg

MFC r325067:
bsnmpd: Only refresh devtree if devd event is a new or removed device.

It makes sense to refresh the tree only when a device is inserted or
removed, otherwise bsnmpd needlessly wastes lots of CPU.

PR: 209368


# 310900 31-Dec-2016 ngie

MFstable/11 r310899:

MFC r310666,r310675:

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


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 228990 30-Dec-2011 uqs

Spelling fixes for usr.sbin/


# 223933 11-Jul-2011 ae

Use full buffer size in read(2) call, there is no need to preserve the
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


# 199291 15-Nov-2009 attilio

Collapse devinfo_state_t with device_state_t in order to avoid a
structure replication and improve manteneability.

Reviewed by: jhb, imp
Tested by: Riccardo Torrini <riccardo at torrini dot org>


# 167369 09-Mar-2007 xride

! is a generic info message

Reviewed by: harti
Approved by: harti
MFC after: 2 weeks


# 160341 14-Jul-2006 harti

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@>


# 154137 09-Jan-2006 harti

Forced commit because I lost the commit message in the previous commit:

This is the implementation of the HOSTRES MIB that was developed by
Victor during SoC 2005 with some stylification by philip@ and harti@.

Submitted by: Victor Cruceru <soc-victor@freebsd.org>
Reviewed by: philip, harti


# 154133 09-Jan-2006 harti

msg