Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2018 10:59:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 217763] [patch] [bsnmpd] MIBIF_ALIAS_SIZE is too low breaking ifXTable
Message-ID:  <bug-217763-7501-804wKKIlQC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217763-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217763-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217763

--- Comment #5 from commit-hook@freebsd.org ---
A commit references this bug:

Author: eugen
Date: Sat Aug 18 10:58:46 UTC 2018
New revision: 338013
URL: https://svnweb.freebsd.org/changeset/base/338013

Log:
  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

Changes:
  head/contrib/bsnmp/snmp_mibII/mibII.c
  head/contrib/bsnmp/snmp_mibII/mibII.h
  head/contrib/bsnmp/snmp_mibII/mibII_interfaces.c
  head/contrib/bsnmp/snmp_mibII/snmp_mibII.h

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217763-7501-804wKKIlQC>