History log of /freebsd-10-stable/contrib/bsnmp/lib/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
360301 25-Apr-2020 dim

MFC r354834 (by jhibbits):

bsnmp: Fix operator precedence in error check in table_check_response

Summary:
The ?: operator has a lower precedence than == and &&, so the result will always
be recorded as true. Found by gcc8.

Reviewed by: ngie, ae
Differential Revision: https://reviews.freebsd.org/D22427

316044 27-Mar-2017 ngie

MFC r315641,r315642:

r315641:

bsnmp: don't leak snmp_client.fd in open_client_udp(..) on connect(2) failure

r315642:

bsnmp: explicitly test the return value for open_client_{local,udp} in snmp_open(..)

open_client_* returns -1 on failure; 0 on success. Ensure that the return value is
0 -- otherwise exit snmp_open(..).

313201 04-Feb-2017 ngie

MFC r311263:

Use calloc instead of malloc with buffers in snmp_{recv,send}_packet

This doesn't fix the issue noted in the PR, but at the very least it
cleans up the error so it looks a bit more sane, and in the event
that bsnmp did wander off into the weeds, the likelihood of it
crashing with more sensible output is greater, in my opinion

MFC counter set high so I have enough time to resolve the real
underlying bug in bsnmpwalk

PR: 215721

312052 13-Jan-2017 ngie

MFC r311390:

snmp_table_fetch_async: don't leak `work` if snmp_pdu_send(..) fails

CID: 1017276

312047 13-Jan-2017 ngie

MFC r310729:

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.

311603 07-Jan-2017 ngie

MFC r310501:

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

311593 07-Jan-2017 ngie

MFC r310931,r310942,r310988:

r310931:

Use strdup in snmp_parse_server(..) when possible instead of malloc+strcpy

This simplifies the code and mutes a Coverity warning about sc->cport being
improperly allocated

CID: 1018247

r310942:

Unbreak the build by passing the string to strdup, not its length

Pointyhat to: ngie

r310988:

snmp_discover_engine: fix up req/resp (PDU object) handling a bit

- Call snmp_pdu_free on req and resp when done with the objects
- Call snmp_pdu_free on req before calling snmp_pdu_create on it
again

311219 04-Jan-2017 ngie

MFstable/11 r311217:

MFC r311003:

Fix spelling errors; bump .Dd for the change

311216 04-Jan-2017 ngie

MFstable/11 r311213:

MFC r311001:

Bump .Dd for the spelling and .Nm updates

311208 04-Jan-2017 ngie

MFstable/11 r311207:

MFC r310099,r311000,r311002:

r311000:

Fix spelling errors

r311002:

Install bsnmpclient(3) as snmp_client_{init,set_host,set_port}(3)

310910 31-Dec-2016 ngie

MFstable/11 r310909:

MFC r310500,r310660:

r310500:

Minor style(9) fixes

- Trailing whitespace cleanup
- Sort variables in snmp_dialog(..) by alignment

No functional change

r310660:

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

310903 31-Dec-2016 ngie

MFstable/11 r310901:

MFC r310648:

style(9): clean up trailing whitespace


/freebsd-10-stable/contrib/bsnmp/gensnmpdef/gensnmpdef.1
/freebsd-10-stable/contrib/bsnmp/gensnmpdef/gensnmpdef.c
/freebsd-10-stable/contrib/bsnmp/gensnmptree/gensnmptree.1
/freebsd-10-stable/contrib/bsnmp/gensnmptree/gensnmptree.c
asn1.3
asn1.c
asn1.h
bsnmpagent.3
bsnmpclient.3
bsnmplib.3
snmp.c
snmp.h
snmpagent.c
snmpagent.h
snmpclient.c
snmpclient.h
snmpcrypto.c
snmppriv.h
support.c
support.h
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII.h
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_begemot.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_ifmib.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_ifstack.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_interfaces.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_ip.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_ipaddr.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_nettomedia.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_rcvaddr.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_route.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_tcp.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_tree.def
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/mibII_udp.c
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/snmp_mibII.3
/freebsd-10-stable/contrib/bsnmp/snmp_mibII/snmp_mibII.h
/freebsd-10-stable/contrib/bsnmp/snmp_ntp/NTP-MIB.txt
/freebsd-10-stable/contrib/bsnmp/snmp_ntp/NTP-PROXY-MIB.txt
/freebsd-10-stable/contrib/bsnmp/snmp_target/snmp_target.3
/freebsd-10-stable/contrib/bsnmp/snmp_usm/snmp_usm.3
/freebsd-10-stable/contrib/bsnmp/snmp_usm/usm_snmp.c
/freebsd-10-stable/contrib/bsnmp/snmp_vacm/snmp_vacm.3
/freebsd-10-stable/contrib/bsnmp/snmp_vacm/vacm_snmp.c
/freebsd-10-stable/contrib/bsnmp/snmpd/BEGEMOT-MIB.txt
/freebsd-10-stable/contrib/bsnmp/snmpd/BEGEMOT-SNMPD.txt
/freebsd-10-stable/contrib/bsnmp/snmpd/FOKUS-MIB.txt
/freebsd-10-stable/contrib/bsnmp/snmpd/action.c
/freebsd-10-stable/contrib/bsnmp/snmpd/config.c
/freebsd-10-stable/contrib/bsnmp/snmpd/export.c
/freebsd-10-stable/contrib/bsnmp/snmpd/main.c
/freebsd-10-stable/contrib/bsnmp/snmpd/snmpd.config
/freebsd-10-stable/contrib/bsnmp/snmpd/snmpd.h
/freebsd-10-stable/contrib/bsnmp/snmpd/snmpd.sh
/freebsd-10-stable/contrib/bsnmp/snmpd/snmpmod.3
/freebsd-10-stable/contrib/bsnmp/snmpd/snmpmod.h
/freebsd-10-stable/contrib/bsnmp/snmpd/trans_lsock.c
/freebsd-10-stable/contrib/bsnmp/snmpd/trans_lsock.h
/freebsd-10-stable/contrib/bsnmp/snmpd/trans_udp.c
/freebsd-10-stable/contrib/bsnmp/snmpd/trans_udp.h
/freebsd-10-stable/contrib/bsnmp/snmpd/trap.c
/freebsd-10-stable/contrib/bsnmp/snmpd/tree.def
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_atm/BEGEMOT-ATM-FREEBSD-MIB.txt
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_atm/atm_sys.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_bridge/BEGEMOT-BRIDGE-MIB.txt
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_bridge/snmp_bridge.3
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_hostres/snmp_hostres.3
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_pf/BEGEMOT-PF-MIB.txt
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_pf/Makefile
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_target/Makefile
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_usm/Makefile
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_vacm/Makefile
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.c
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_sys.c
/freebsd-10-stable/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
/freebsd-10-stable/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
/freebsd-10-stable/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
/freebsd-10-stable/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
/freebsd-10-stable/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
310673 28-Dec-2016 ngie

MFstable/11 r310672:

MFC r310499:

Sort #includes

No functional change

310566 26-Dec-2016 ngie

MFstable/11 r310565:

MFC r310202:

Clean up trailing and leading whitespace

Fix variable type alignment in snmp_dialog(..)

301661 08-Jun-2016 ngie

MFC r256678,r256680,r260986,r272878,r286402:

r256678 (by syrinx):

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

r256680 (by syrinx):

Fix the -Wconversion warnings produced when compiling the SNMP agent.

r260986 (by harti):

Fix a problem with OBJECT IDENTIFIER encoding: need to check the
second subid to be less than 40, not the first when the first
subid is 0 or 1.

r272878 (by syrinx):

Fix a bug in decoding string indexes in snmp_target(3), thus causing
bsnmpd(1) to not send v3 notifications properly; while here add two
missing return statements which could lead to abort() in case of a
rollback

r286402 (by araujo):

Fix variable 'old' is used uninitialized whenever '&&' condition is false.
Spotted by clang.

276677 05-Jan-2015 ngie

MFC r276319:

Fix the function signatures when MK_CRYPT == no for snmp_get_local_keys and
snmp_passwd_to_keys

Reported by: Beeblebrox <zaphod@berentweb.com>

260638 14-Jan-2014 delphij

MFC r260636:

Fix bsnmpd remote denial of service vulnerability.

Reported by: dinoex
Submitted by: harti
Security: FreeBSD-SA-14:01.bsnmpd
Security: CVE-2014-1452

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


245952 26-Jan-2013 pfg

Clean some 'svn:executable' properties in the tree.

Submitted by: Christoph Mallon
MFC after: 3 days


237194 17-Jun-2012 joel

Remove end of line whitespace.


237193 17-Jun-2012 joel

Minor mdoc fixes.


216594 20-Dec-2010 syrinx

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

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


216482 16-Dec-2010 syrinx

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

Sponsored by: The FreeBSD Foundation
Reviewed by: philip@


216299 08-Dec-2010 syrinx

Add a forgotten file from r216294 and unbreak the build.

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


216294 08-Dec-2010 syrinx

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@


214054 19-Oct-2010 uqs

mdoc: drop even more redundant .Pp calls

No change in rendered output, less mandoc lint warnings.

Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp


208483 24-May-2010 uqs

mdoc: consistently spell our email addresses <foo@FreeBSD.org>

Reviewed by: ru
Approved by: harti


156067 27-Feb-2006 harti

This commit was generated by cvs2svn to compensate for changes in r156066,
which included commits to RCS files with non-trunk default branches.


150975 05-Oct-2005 harti

This commit was generated by cvs2svn to compensate for changes in r150974,
which included commits to RCS files with non-trunk default branches.


150924 04-Oct-2005 harti

These files are not needed and were imported by accident in the
previous import.


150921 04-Oct-2005 harti

This commit was generated by cvs2svn to compensate for changes in r150920,
which included commits to RCS files with non-trunk default branches.


146526 23-May-2005 harti

This commit was generated by cvs2svn to compensate for changes in r146525,
which included commits to RCS files with non-trunk default branches.


142811 28-Feb-2005 harti

This commit was generated by cvs2svn to compensate for changes in r142810,
which included commits to RCS files with non-trunk default branches.


133212 06-Aug-2004 harti

This commit was generated by cvs2svn to compensate for changes in r133211,
which included commits to RCS files with non-trunk default branches.


128238 14-Apr-2004 harti

This commit was generated by cvs2svn to compensate for changes in r128237,
which included commits to RCS files with non-trunk default branches.


124862 23-Jan-2004 harti

This commit was generated by cvs2svn to compensate for changes in r124861,
which included commits to RCS files with non-trunk default branches.


122395 10-Nov-2003 harti

This commit was generated by cvs2svn to compensate for changes in r122394,
which included commits to RCS files with non-trunk default branches.