freebsd-dev/contrib/bsnmp/snmp_mibII
Eugene Grosbein 1a498d2e68 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
2018-08-18 10:58:44 +00:00
..
BEGEMOT-IP-MIB.txt Add a REVISION section to track changes for the BEGEMOT-IP-MIB MIB file 2017-01-09 03:21:21 +00:00
BEGEMOT-MIB2-MIB.txt
mibII_begemot.c Remove unnecessary __unused attribute attached to ctx in op_begemot_mibII(..) 2017-01-06 07:57:45 +00:00
mibII_ifmib.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_ifstack.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_interfaces.c bsnmpd(8): fix and optimize interface description processing 2018-08-18 10:58:44 +00:00
mibII_ip.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_ipaddr.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_nettomedia.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_rcvaddr.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_route.c Update bsnmp to version 1.13. This does not bring user-visible changes. 2018-07-03 08:44:40 +00:00
mibII_tcp.c Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
mibII_tree.def style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_udp.c Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
mibII.c bsnmpd(8): fix and optimize interface description processing 2018-08-18 10:58:44 +00:00
mibII.h bsnmpd(8): fix and optimize interface description processing 2018-08-18 10:58:44 +00:00
snmp_mibII.3 snmp_mibII(3) requires net/if.h and net/if_mib.h 2017-01-04 10:08:18 +00:00
snmp_mibII.h bsnmpd(8): fix and optimize interface description processing 2018-08-18 10:58:44 +00:00