freebsd-dev/usr.sbin/bsnmpd
Andrey V. Elsukov 8f64015c0e 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
2011-07-11 12:51:35 +00:00
..
bsnmpd Bring in a SNMP module that allows configuration of SNMPv3 Notification targets. 2010-12-20 17:13:14 +00:00
gensnmptree The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
modules Use full buffer size in read(2) call, there is no need to preserve the 2011-07-11 12:51:35 +00:00
tools Remove unnecessary debug/error CFLAGS. 2010-12-11 13:24:01 +00:00
Makefile Add bsnmpd(1)'s SNMP client tools (including SNMPv3 support) to the base system. 2010-12-08 14:30:25 +00:00
Makefile.inc