[Bug 217763] [patch] [bsnmpd] MIBIF_ALIAS_SIZE is too low breaking ifXTable

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 25 09:49:14 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217763

--- Comment #6 from commit-hook at freebsd.org ---
A commit references this bug:

Author: eugen
Date: Sat Aug 25 09:48:18 UTC 2018
New revision: 338310
URL: https://svnweb.freebsd.org/changeset/base/338310

Log:
  MFC 338013: 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
  Differential Revision:        https://reviews.freebsd.org/D16459

Changes:
_U  stable/11/
  stable/11/contrib/bsnmp/snmp_mibII/mibII.c
  stable/11/contrib/bsnmp/snmp_mibII/mibII.h
  stable/11/contrib/bsnmp/snmp_mibII/mibII_interfaces.c
  stable/11/contrib/bsnmp/snmp_mibII/snmp_mibII.h

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-net mailing list