summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/lib/snmpclient.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r315641,r315642:ngie2017-03-271-2/+4
| | | | | | | | | | | | | 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(..).
* MFC r311263:ngie2017-02-041-3/+3
| | | | | | | | | | | | | | 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
* MFC r311390:ngie2017-01-131-1/+4
| | | | | | snmp_table_fetch_async: don't leak `work` if snmp_pdu_send(..) fails CID: 1017276
* MFC r310931,r310942,r310988:ngie2017-01-071-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* MFC r310500,r310660:ngie2016-12-311-4/+4
| | | | | | | | | | | | | | | 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(..)
* MFC r310648:ngie2016-12-311-6/+6
| | | | style(9): clean up trailing whitespace
* MFC r310662:ngie2016-12-311-3/+3
| | | | style(9): snmp_send_packet(..): fix whitespace
* MFC r310202:ngie2016-12-261-25/+25
| | | | | | Clean up trailing and leading whitespace Fix variable type alignment in snmp_dialog(..)
* Bring in a SNMP module that allows configuration of SNMPv3 Notification targets.syrinx2010-12-201-7/+10
| | | | | | Sponsored by: The FreeBSD Foundation Reviewed by: philip Approved by: philip
* In bsnmpd(1) add support for SNMPv3 message processing model, including ↵syrinx2010-12-081-1/+130
| | | | | | | | message authentication, packet encryption & view-based access control (RFC 3412, 3414, 3415). Sponsored by: The FreeBSD Foundation Reviewed by: philip@ (mostly) Approved by: philip@
* Virgin import of bsnmpd 1.12harti2006-02-271-9/+1
|
* Vendor fix for the build problem of snmp_pf. Move the fallback definitionsharti2005-10-051-0/+8
| | | | | for U?INT32_{MAX,MIN} from asn1.h into the .c files that actually require them (the .h file doesn't refer to these macros).
* Virgin import of bsnmpd 1.11harti2005-10-041-3/+7
|
* Virgin import of bsnmpd 1.10harti2005-05-231-58/+192
|
* Virgin import of bsnmpd 1.7harti2004-08-061-38/+50
|
* Virgin import of bsnmpd 1.5aharti2004-01-231-7/+23
|
* Virgin import of bsnmp 1.4harti2003-11-101-0/+1658
OpenPOWER on IntegriCloud