summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
AgeCommit message (Collapse)Author
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-06-21Bzero() the whole key before doing an RB_FIND() because smi_oid_cmp()Gerhard Roth
looks at more members than just 'o_id'. ok reyk@
2013-03-30previous had one backslash too many;Jason McIntyre
2013-03-29Patch from Ilya Bakulin that allows to put snmpd(8) into read-only modeGerhard Roth
so that all "set" requests will be rejected. ok reyk@
2013-03-11Report new PF "translation" counter, indicating that address translationStuart Henderson
has failed due to no free ports in the configured range. ok mikeb@
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2013-03-06as done in ospf{,6}d/relayd, sync yyerror in various other daemons withStuart Henderson
that from bgpd, so that it logs to syslog when daemonized.
2013-03-04Fix compiler warnings about casts discarding const qualifiers andAlexander Bluhm
comparison between signed and unsigned. No binary change. OK reyk@ joel@ gerhard@
2013-01-24Even if there's no special seclevel required in snmpd.conf, we have toGerhard Roth
validate the user of a received SNMPv3 request. If the configured user has a certain security level (i.e. authentication and maybe encryption), the received message must fulfill this security requirements, too. ok reyk
2013-01-14sm_usmerr should be initialized with OIDVAL, not MIB; ok reyk@Miod Vallat
2012-12-18We no longer use struct eproc for kinfo_proc in sysctl.h so thereTodd C. Miller
is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
2012-11-29Wrong argument was passed to control_dispatch_imsg(). Use alwaysYASUOKA Masahiko
(struct imsgev *)->data for the argument of imsgev handlers. ok reyk
2012-11-29export ipintrq drops as ifInDiscards; ok reykMike Belopuhov
2012-11-13pasto in log messageFlorian Obser
ok henning
2012-10-01Add some fairly random PEN (private enterprise numbers).Reyk Floeter
2012-10-01Support the 0.0.0.0 and 255.255.255.255 IPv4 addresses in the ipAddrTable.Reyk Floeter
This fixes an issue which aborted the address traversal / SNMP walk when an "any"/0.0.0.0 address was configured on an interface. The problem was found with a pppoe(4) device that is typically configured with 0.0.0.0 on startup. Found and fix tested by Gerhard Roth
2012-09-28sync manpage with codeCamiel Dobbelaar
ok reyk
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-20add more sensor types to sensor framework.Yojiro Uo
- Pressure (10^-3 Pa) - distance (10^-6 m) - acceleration (10^-6 m/s^2) ok deraadt@ reyk@
2012-09-18update the standards and RFCsReyk Floeter
2012-09-18Add SNMPv3 in the EXAMPLES section.Reyk Floeter
2012-09-18sync mask2prefixlen6() with the nicer version from bgpd/kroute.c:Reyk Floeter
"Instead of doing a poor mans offsetof() implementation change the code to use an end pointer to compare against. Looks less scary and makes gcc4 happy. OK henning@" (bgpd/kroute.c commit 1.182)
2012-09-18knfReyk Floeter
2012-09-17tweak previous;Jason McIntyre
2012-09-17let the debug message look like the configuration syntaxReyk Floeter
2012-09-17silence gccReyk Floeter
2012-09-17Update copyright and my email address in snmpd while I'm here.Reyk Floeter
2012-09-17Add initial SNMPv3 support to snmpd(8).Reyk Floeter
Traps are still sent via SNMPv2 protocol. They can neither be authenticated nor encrypted. - Transport mode is still UDP. Not additional transport subsystems were added. - Only the User-based Security Model (USM, RFC3414) is supported. View-Based Access Control (VACM, RFC3415) is not included. - Configuration is described in snmpd.conf(5). This diff includes a few minor changes to ber.c/h adding a necessary callback for the USM HMAC calculation and merging it with other minor changes from ldapd's ber code. From Gerhard Roth at genua ok claudio@ reyk@
2012-08-18within Rs/Re reference blocks, use %U instead of %O (or any otherJason McIntyre
variants) for URLs, allowing mandoc -Thtml to properly generate links; (sendmail.8 changes are simply using Lk, which i somehow missed in previous) ingo reminded me to verify that gnu groff recognises %U: 1.20.1 does not, but 1.21 does;
2012-07-08a -> an in a commentBret Lambert
ok phessler@
2012-06-19Use calloc() instead of malloc() for allocating the disk stats.Matthew Dempsky
Requested by deraadt.
2012-06-14Add support for UCD-DISKIO-MIB.Matthew Dempsky
ok sthen
2012-06-10kr_init() now returns void so don't try to return 0Jonathan Gray
2012-05-28Plug a couple more fd leaks. As part of the fix, make all the *initJoel Knight
functions return void. ok krw@
2012-05-26Plug some leaks when certain error conditions are met.Joel Knight
From Gerhard Roth via tech@ ok krw@ sthen@
2012-05-14use the size of the struct not the size of the pointer for memsetJonathan Gray
ok joel@
2012-04-24take a stab at documenting when arguments need quoted, and valid macroJason McIntyre
characters; prompted by a diff from robert peichaer org thanks gilles and henning for feedback ok deraadt zinke
2012-04-11delete excessive evtimer_pending; ok claudioTheo de Raadt
2012-04-08add the evtimout rate-limiting code for accept() here too.Theo de Raadt
eyed a little by joel
2012-03-20New OIDs hrSystemUptime, hrSystemDate, hrSystemProcesses andJoel Knight
hrSystemMaxProcesses. ok sthen@
2012-02-27Use correct Counter32 type for following MIBs. They only return dummy dataStuart Henderson
but we should use the correct type anyway. BRIDGE-MIB::dot1dBasePortDelayExceededDiscards BRIDGE-MIB::dot1dBasePortMtuExceededDiscards OK joel@
2012-02-23Bring in PF-MIB to snmpd.Joel Knight
ok krw@, sthen@
2012-02-01Variable bindings need instance identifiers, for scalars this is always .0.Camiel Dobbelaar
At least NetSNMP and HPOV now understand it. ok joel@
2012-01-31Document relayd(8)'s use of the openBSD.3 OID; move the CARP MIB toJoel Knight
openBSD.6 to avoid a conflict with relayd. ok camield@
2012-01-31Add the OPENBSD-CARP-MIB to snmpdJoel Knight
ok camield@, "start committing" deraadt@
2012-01-30If a kernel sensor doesn't have a description, come up with somethingJoel Knight
useful rather than leaving that field empty. ok sthen@ deraadt@
2011-09-16reorder SENSOR_* in switch() and add missing cases.Yojiro Uo
ok deraadt@
2011-09-16apply following changes to sensor framework:Yojiro Uo
- change accuracy of SENSOR_FREQ from Hz to muHz - add SENSOR_VOLTS_AC entry to userland programs ok deraadt@
2011-07-04LINK_STATE_IS_UP() cleanup userland part. There is no need to specialClaudio Jeker
case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.
2011-06-23Use a common text explaining how the various configuration parsers usingStuart Henderson
the standard OpenBSD-style parse.y handle continuing lines with backslashes, paying particular attention to how comments are handled (which can cause nasty side-effects if you're not expecting it). Most wording from jmc@, with suggestions from fgsch@, marc@, Richard Toohey, patrick keshishian and Florian Obser, ok jmc@.