summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/snmpd
Commit message (Collapse)AuthorAgeFilesLines
* Re-do r240271:glebius2012-09-202-8/+17
| | | | | | | | | | | - Set IP_RECVDSTADDR sockopt on the socket only in case if it is INADDR_ANY bound. - Supply IP_SENDSRCADDR control message only if we did receive IP_RECVDSTADDR control message. This fixes operation of snmpd bound to a specific local IP address. PR: bin/171279
* For UDP transport set IP_RECVDSTADDR sockopt on the socket, and provideglebius2012-09-092-6/+41
| | | | | | | | IP_SENDSRCADDR control with datagram message we reply with. This makes bsnmpd reply from exactly same address that request was sent to, thus successfully bypassing stateful firewalls or other kinds of strict checking. PR: bin/171279
* The first part of check_priv() function, that attempts to obtain credsglebius2012-09-082-43/+40
| | | | | | | | | | | | | | | | | | | | | | | | | from the control message, actually never worked. This means check_priv() didn't work for local dgram sockets. The SCM_CREDS control messages is received only in two cases: 1) If we did setsockopt(LOCAL_CREDS) on our socket, and in this case the message is struct sockcred. 2) If sender did supplied SCM_CREDS control message in his sendmsg() syscall. In this case the message is struct cmsgcred. We can't rely on 2), so we will use 1) for dgram sockets. For stream sockets it is more reliable to obtain accept-time credentials, since SCM_CREDS control message is attached only on first read. Thus: o Do setsockopt(LOCAL_CREDS) on local dgram sockets. o Split check_priv() into check_priv_stream() and check_priv_dgram(), and call them from recv_stream() and recv_dgram() respectively. o Don't provide space for SCM_CREDS control message in recv_stream(). o Provide space for SCM_CREDS control message in recv_dgram(), but there is no need to initialize anything in it. o In recv_dgram() do not blindly expect that first message is SCM_CREDS, instead use correct search cycle through control messages.
* Fully initialize the stack-allocated "struct sockaddr_in sa" structure.kevlo2012-09-071-1/+2
|
* memset() wants the size of the structure to clear, not the sizeharti2012-03-181-1/+1
| | | | | | of the pointer to it. Submitted by: Pawel Worach
* Include sys/queue.h: snmpmod.h uses TAILQ.trociny2011-12-111-0/+1
| | | | | PR: bin/153153 MFC after: 2 weeks
* Don't spam syslog with "inet_ntop(): Address family not supportedru2011-04-201-2/+3
| | | | | | | by protocol family" when processing requests received from the UNIX domain socket. MFC after: 3 days
* Unbreak the build by temprorarily not using include directives insyrinx2010-12-201-1/+10
| | | | | bsnmpd(1)' def files, until bsd.snmpmod.mk & Makefiles are fixed to pass proper include path flags to gensnmptree.
* Bring in a SNMP module that allows configuration of SNMPv3 Notification targets.syrinx2010-12-205-37/+731
| | | | | | Sponsored by: The FreeBSD Foundation Reviewed by: philip Approved by: philip
* In bsnmpd(1) add support for SNMPv3 message processing model, including ↵syrinx2010-12-0813-42/+1356
| | | | | | | | message authentication, packet encryption & view-based access control (RFC 3412, 3414, 3415). Sponsored by: The FreeBSD Foundation Reviewed by: philip@ (mostly) Approved by: philip@
* Remove mention of non-existant -o flag for debugging options.uqs2010-10-231-5/+3
| | | | MFC after: 3 days
* Fix two minor typos.joel2010-08-161-2/+2
|
* Bump document date after content changes.uqs2010-08-161-1/+1
| | | | Pointy hat to: uqs
* Wordsmithing of bsnmpd.1uqs2010-08-161-18/+16
| | | | | | PR: docs/149157 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 1 week
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-242-4/+4
| | | | | Reviewed by: ru Approved by: harti
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2010-03-271-1/+1
| | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. Approved by: harti@
* Fix typo in macro name and macro usage.uqs2010-03-121-1/+2
| | | | | | Found by: make manlint Reviewed by: ru Approved by: harti, philip (mentor)
* This commit was generated by cvs2svn to compensate for changes in r176892,syrinx2008-03-071-0/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor patch: Prevent bsnmpd from dumping core when a module's init hooksyrinx2008-03-071-0/+2
| | | | | | | | | | | | returns an error. Approved by: bz (mentor), harti
* | This commit was generated by cvs2svn to compensate for changes in r163820,harti2006-10-312-28/+63
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor patch: synthesize the initial value for sysObjectId from the valueharti2006-10-312-28/+63
| | | | | | | | | | | | | | of uname -r in FreeBSD. This value can be overwritten in the configuration file. Suggested by: phk
* | This commit was generated by cvs2svn to compensate for changes in r156066,harti2006-02-277-17/+26
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of bsnmpd 1.12harti2006-02-277-17/+26
| |
* | This commit was generated by cvs2svn to compensate for changes in r155429,harti2006-02-072-0/+25
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor patch: string_get_max() function to return strings with a maximumharti2006-02-072-0/+25
| | | | | | | | SNMP string length.
* | This commit was generated by cvs2svn to compensate for changes in r155094,harti2006-01-311-1/+3
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor patch: prevent a core dump when the trace option is not followedharti2006-01-311-1/+3
| | | | | | | | | | | | by an option value. Submitted by: Shteryana Shopova <shteryana@yahoo.com>
* | This commit was generated by cvs2svn to compensate for changes in r154180,harti2006-01-102-3/+17
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor fix: make the default read and write communities NULL. Thisharti2006-01-102-3/+17
| | | | | | | | | | | | basically disables any access unless other strings are set in the config file. Note, that there is no way to set the communities back to NULL once they're set to something not NULL.
* | This commit was generated by cvs2svn to compensate for changes in r154178,harti2006-01-101-3/+4
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor patch: fix a bug when parsing the include path.harti2006-01-101-3/+4
| |
* | This commit was generated by cvs2svn to compensate for changes in r150974,harti2005-10-051-0/+4
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor fix for the build problem of snmp_pf. Move the fallback definitionsharti2005-10-051-0/+4
| | | | | | | | | | 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).
* | These files are not needed and were imported by accident in theharti2005-10-042-44/+0
|/ | | | previous import.
* Virgin import of bsnmpd 1.11harti2005-10-048-132/+369
|
* Virgin import of bsnmpd 1.10harti2005-05-233-22/+28
|
* Vendor patch: fix a bug that was introduced when moving from libisc toharti2005-04-291-14/+4
| | | | | libbegemot: the rpoll_start_timer function needs the timeout value in milli-seconds, not the absolute time when the timer should tick.
* Virgin import of bsnmp 1.9harti2005-04-261-1/+39
|
* Virgin import of bsnmpd 1.8harti2005-02-285-31/+41
|
* Vendor patch: don't dump core when the config file cannot be opened.harti2004-08-121-1/+6
| | | | Submitted by: Maxim Konovalov <maxim@macomnet.ru>
* Virgin import of bsnmpd 1.7harti2004-08-0619-455/+388
|
* Import of bsnmpd 1.6harti2004-04-149-95/+69
|
* Virgin import of bsnmpd 1.5aharti2004-01-2319-596/+1933
|
* Virgin import of bsnmp 1.4harti2003-11-1016-0/+8126
OpenPOWER on IntegriCloud