summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
AgeCommit message (Collapse)Author
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@.
2011-04-21no need to escape `|';Jason McIntyre
2011-04-21Add a "filter-routes" option; when set, snmpd asks the kernel not toStuart Henderson
send route updates. If you aren't interested in examining routing tables over SNMP (e.g. if you only use it for sensors or interface stats) this reduces cpu use during heavy route updates. Makes my full-table bgp routers happier when a major peer bounces. ok reyk@
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenthe
that we've got name we want for the API we want "ZAP!" deraadt@
2011-03-16fix trap sending in snmpd by adjusting snmpctl to the imsg libutilReyk Floeter
change and fixing the ber element handling in snmpd itself. tested by jsg@
2011-03-07continguous -> contiguousHenning Brauer
From: "Anthony J. Bentley" <anthonyjbentley at gmail dot com>
2010-10-18Missing ; to appease yyextract, ok martinh@Stuart Henderson
2010-10-15return numeric 0 rather than attempting to return a null string,Stuart Henderson
fixes a segfault when walking memiftable. seems sane to phessler, ok dlg@
2010-10-15typo in commentStuart Henderson
2010-09-23tweak the mclgeti algorithm to behave better under load.David Gwynne
instead of letting hardware rings grow on every interrupt, restrict it so it can only grow once per softclock tick. we can only punish the rings on softclock ticks, so it make sense to only grow on softclock tick boundaries too. the rings are now punished after >1 lost softclock tick rather than >2. mclgeti is now more aggressive at detecting livelock. the rings get punished by an 8th, rather than by half. we now allow the rings to be punished again even if the system is already considered in livelock. without this diff a livelocked system will have its rx ring sizes scale up and down very rapidly, while holding the rings low for too long. this affected throughput significantly. discussed and tested heavily at j2k10. there are still some games with softnet we can play, but this is a good first step. "put it in" and ok deraadt@ ok claudio@ krw@ henning@ mcbride@ if we find out that it sucks we can pull it out again later. till then we'll run with it and see how it goes.
2010-09-20fix-up the sysORTable by using the same name (sensorsMIBObjects) as usedStuart Henderson
in the MIB, rather than a different spelling (sensorMIBObjects). ok martinh@