summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/mib.c
AgeCommit message (Collapse)Author
2012-11-29export ipintrq drops as ifInDiscards; ok reykMike Belopuhov
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-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-18knfReyk 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-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-05-26Plug some leaks when certain error conditions are met.Joel Knight
From Gerhard Roth via tech@ ok krw@ sthen@
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-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-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@
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-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@
2010-06-11Implement IP-FORWARD-MIB, ipv4 only for now.Jonathan Gray
ok reyk@ claudio@
2010-04-27Correct sensor logic so we don't get stuck in a loop.Jonathan Gray
ok deraadt@
2010-04-20Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledTheo de Raadt
by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
2010-04-20Add "frequency" type for sensors. (and teach userland how to print thatOwain Ainsworth
type). Measured in Hz. ok deraadt@
2010-04-15add SENSOR_HUMIDITY to sensor framework to handle humidity valuesYojiro Uo
ok kettenis@ xsa@ sobrado@ krw@ deraadt@
2010-03-31Track interface addresses in a AF independent way. This is needed to supportClaudio Jeker
the AF independent MIBs like RFC4292 in the future. Additionally count number of routes (also needed by some MIBs) and do not track the state of routes since the MIB do not require it and it is expensive. OK jsg@
2010-01-11Do not use after free kif->if_index; discovered with claudioTheo de Raadt
ok dlg
2010-01-11use calloc() instead of multiplying for malloc(); ok reykTheo de Raadt
2009-12-16knf and unused variablesTheo de Raadt
2009-08-14SENSOR_WATTS; ok reyk deraadtConstantine A. Murenin
2008-12-23export the livelock counter in a private mib openBSD.5.Reyk Floeter
discussed with dlg@
2008-12-19fix IF-MIB element and implementation ifInUnknownErrors -> ifInUnknownProtosReyk Floeter
2008-12-08report memory and swap in hrStorage, and implement hrProcessor to reportReyk Floeter
hrProcessorLoad (where load means the percentage of time the system was not idle during the last minute). based on HOST-RESOURCES-MIB. ok dlg@
2008-03-18remove ber_add_astring and make it the default behaviour inReyk Floeter
ber_add_string, ber_add_nstring, and ber_add_bitstring to allocate and copy the provided buffer instead of just attaching it to the ber element. this may add some overhead but fixes and avoids some bugs with static buffers and simplifies the ber api again. From Matthew at Dempsky dot org With input from claudio@
2008-03-17convert more strings to use the new ber_add_astring() function whichReyk Floeter
simplifies the code.
2008-03-17another sizeofa instead of sizeof fixReyk Floeter
2008-03-17fix incorrect use of sizeof() where there sizeofa() macro should be usedReyk Floeter
ok dlg@
2008-03-16implement the hrSWRun portion of the HOST-RESOURCES mib. you can see whatsDavid Gwynne
running now, which is another thing my nms at work likes. ok reyk@
2008-03-15provide sizeofa for counting the number of elements in an array. use it forDavid Gwynne
passing the length of the mib in all these sysctl calls. ok reyk@
2008-03-15move zerodotzero up so more stuff can use itDavid Gwynne
this is an ok bit of a bigger diff that reyk wanted split up
2008-03-10provide a partial implementation of the HOST-RESOURCES-MIB. this implementsDavid Gwynne
the hrStorage part, which is enough to see how much space is used on your filesystems. makes my nms happy. ok reyk@
2008-01-30spacingReyk Floeter
2008-01-18implement very basic support of the BRIDGE-MIB which is enough to getReyk Floeter
recognized as a network device by some NMS.
2008-01-16bump copyrightReyk Floeter
2007-12-29add the IP-MIB ipAddrTable. it requires to encode the ipv4 addressesReyk Floeter
in the OIDs as the table index. the next step is to simplify the common mib implementation regarding the special requirements of these strange snmp tables.
2007-12-28split code handling the "structure of management information" and theReyk Floeter
"message processing subsystem" into separate files smi.c and mps.c
2007-12-28split the MIB declarations (names) from the definitions (implementation).Reyk Floeter
2007-12-28use the snmp camelCase for MIB definitions, this allows to simplifyReyk Floeter
the code a bit and is mostly a stylistic change.