History log of /freebsd-current/contrib/bsnmp/snmp_mibII/mibII.h
Revision Date Author Comments
# 1a498d2e 18-Aug-2018 Eugene Grosbein <eugen@FreeBSD.org>

bsnmpd(8): fix and optimize interface description processing

* correctly prepare a buffer to obtain interface description from a kernel and
truncate long description instead of dropping it altogether and
spamming logs;
* skip calling strlen() for each description and each SNMP request
for MIB-II/ifXTable's ifAlias.
* teach bsnmpd to allocate memory dynamically for interface descriptions
to decrease memory usage for common case and not to break
if long description occurs;

PR: 217763
Reviewed by: harti and others
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D16459


# e1d581b2 27-Dec-2016 Enji Cooper <ngie@FreeBSD.org>

style(9): clean up trailing whitespace

MFC after: 3 weeks


# 54902c0a 22-Jan-2016 Bjoern A. Zeeb <bz@FreeBSD.org>

Change the variable to a #define in order to make gcc happy which
otherwise will complain about "variably modified 'alias' at file scope".
Unbreaks the build on gcc platforms.


# 5edd0d3a 21-Jan-2016 Hartmut Brandt <harti@FreeBSD.org>

Fill the ifAlias leaf of the ifXTable with the interface description
if there is one available and it fits into the maximum size (64 characters).


# aa21cf78 17-Oct-2012 Maksim Yevmenkin <emax@FreeBSD.org>

fix build

MFC after: 1 week


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 08f0b3c5 10-Dec-2009 Shteryana Shopova <syrinx@FreeBSD.org>

MFC r200063

Fix a problem with high CPU consumption (up to 30%) by bsnmpd on a loaded system.
Instead of constantly calling the mibII_idle function when the server is not busy
call the function only once every 10 seconds to avoid bsnmpd constantly doing
gettimeofday syscalls. Make the idle polling interval confugurable via
begemotIfDataPoll.


# bd96183d 03-Dec-2009 Shteryana Shopova <syrinx@FreeBSD.org>

Fix a problem with high CPU consumption (up to 30%) by bsnmpd on a loaded system.
Instead of constantly calling the mibII_idle function when the server is not busy
call the function only once every 10 seconds to avoid bsnmpd constantly doing
gettimeofday syscalls. Make the idle polling interval confugurable via
begemotIfDataPoll.

Reported and tested by: misho (at) aitbg (dot) com
Oked by: harti
MFC after: 1 week


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 748b5b1e 27-Feb-2006 Hartmut Brandt <harti@FreeBSD.org>

Virgin import of bsnmpd 1.12


# c6a4e658 13-Feb-2006 Hartmut Brandt <harti@FreeBSD.org>

Vendor fix: make mibII HC counters really 64-bit on 32-bit platforms by polling
the kernel periodically.

Submitted by: glebius (partly)


# 165c5d31 04-Oct-2005 Hartmut Brandt <harti@FreeBSD.org>

Virgin import of bsnmpd 1.11


# 69292ced 23-May-2005 Hartmut Brandt <harti@FreeBSD.org>

Virgin import of bsnmpd 1.10


# 896052c1 06-Aug-2004 Hartmut Brandt <harti@FreeBSD.org>

Virgin import of bsnmpd 1.7


# 70af00a1 23-Jan-2004 Hartmut Brandt <harti@FreeBSD.org>

Virgin import of bsnmpd 1.5a


# f06ca4af 10-Nov-2003 Hartmut Brandt <harti@FreeBSD.org>

Virgin import of bsnmp 1.4