History log of /freebsd-current/contrib/bsnmp/lib/snmp.c
Revision Date Author Comments
# 6c9b7542 28-Dec-2016 Enji Cooper <ngie@FreeBSD.org>

Prevent improper memory accesses after calling snmp_pdu_free and snmp_value_free

snmp_pdu_free: set pdu->nbindings to 0 to limit the damage that
could happen if a pdu was reused after calling the function, and
as both stack and heap allocation types are used in contrib/bsnmp
and usr.sbin/bsnmpd.

snmp_value_free: NULL out value->v.octetstring.octets after calling
free on it to prevent a double-free from occurring.

MFC after: 2 weeks


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

style(9): fix whitespace in pdu_encode_secparams(..)

MFC after: 3 days


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

style(9): clean up trailing whitespace

MFC after: 3 weeks


# 6521e5f8 24-Dec-2016 Enji Cooper <ngie@FreeBSD.org>

Be more strict about IpAddress type in snmp_value_parse(..)

- Use inet_pton with AF_INET instead of doing longhand with sscanf.
- Use gethostbyname2 with AF_INET to ensure that the hostname isn't
accidentally parsed with another address family, e.g. AF_INET6.

NB: IpAddress per RFC-2578 is IPv4 only. Work is in progress to add
the InetAddress type and friends documented in RFC-4001 and
elsewhere (which supports IPv4, IPv6, and more).

MFC after: 2 weeks


# 84615743 24-Dec-2016 Enji Cooper <ngie@FreeBSD.org>

Sort #includes

No functional change

MFC after: 3 days


# 1108712c 24-Oct-2016 Shteryana Shopova <syrinx@FreeBSD.org>

Fix a regression introduced in SVN r256678 that breaks USM header parsing

Reviewed by: bz@


# 06983448 17-Oct-2013 Shteryana Shopova <syrinx@FreeBSD.org>

Fix SNMP Error response PDUs and properly encode them when using v3 auth/encryption.

Reported by: harti@


# 72cd7a52 20-Dec-2010 Shteryana Shopova <syrinx@FreeBSD.org>

Bring in a SNMP module that allows configuration of SNMPv3 Notification targets.

Sponsored by: The FreeBSD Foundation
Reviewed by: philip
Approved by: philip


# 2b802662 16-Dec-2010 Shteryana Shopova <syrinx@FreeBSD.org>

Silence the compiler warnings in libbsnmp by removing several (now)
unsed parameters.

Sponsored by: The FreeBSD Foundation
Reviewed by: philip@


# 135f7de5 08-Dec-2010 Shteryana Shopova <syrinx@FreeBSD.org>

In bsnmpd(1) add support for SNMPv3 message processing model, including message authentication, packet encryption & view-based access control (RFC 3412, 3414, 3415).

Sponsored by: The FreeBSD Foundation
Reviewed by: philip@ (mostly)
Approved by: philip@


# 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.


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

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


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

Virgin import of bsnmpd 1.11


# 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