summaryrefslogtreecommitdiffstats
path: root/usr.sbin/snmpd (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* add SENSOR_HUMIDITY to sensor framework to handle humidity valuesyuo2010-04-151-1/+2
| | | | ok kettenis@ xsa@ sobrado@ krw@ deraadt@
* Remove XXX comment and just close received fd if calloc() fails.nicm2010-04-071-2/+2
| | | | | | | | | If this happens the imsg may no longer be usable as there may be queued messages, but this is a) already the case with the code now, and b) would be the case if recvmsg() fails anyway, so we can document that -1 from imsg_read() invalidates the struct imsgbuf. discussed with and ok eric
* Track blackhole and reject flags since the MIB knows about them.claudio2010-04-012-30/+27
| | | | | Remove an unneeded stack storage as well. OK jsg@
* After syncing kroute with bgpd sync now against ospfd's so that this codeclaudio2010-04-011-130/+45
| | | | | | uses only one rtm parser instead of three different ones. Fixes problems with priorities that were not handled everywhere correctly. Found by and OK jsg@
* Track interface addresses in a AF independent way. This is needed to supportclaudio2010-03-313-130/+109
| | | | | | | 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@
* Sync kroute.c code with bgpd so that snmpd is able to track INET6 addrs asclaudio2010-03-293-327/+558
| | | | | | well. First big sync, the interface address tree still needs to be made AF independent but that will be done in a second step. OK jsg@
* a little cleanup;jmc2010-02-251-5/+6
|
* manual pages should not have blank lines outside literal context,schwarze2010-02-241-10/+1
| | | | | | and .Pp is not needed before or after .Sh; found by mandoc -Tlint; "please fix" jmc@
* match code and doc; ok claudiojmc2010-02-242-11/+9
|
* Fix .Oo .Xo .Oc .Xc mis-nesting by just dropping the .Xo and .Xc which,schwarze2010-02-231-5/+5
| | | | | | | in these cases, is useless anyway. Found by and fixing the build with mandoc; still fine with both old and new groff. ok jmc@
* Do not use after free kif->if_index; discovered with claudioderaadt2010-01-111-4/+5
| | | | ok dlg
* use calloc() instead of multiplying for malloc(); ok reykderaadt2010-01-111-2/+2
|
* knf and unused variablesderaadt2009-12-164-13/+12
|
* log_warn() consistency.mk2009-12-021-2/+2
| | | | `OK' claudio
* sync snmp_imsg_hdr with imsg_hdr and unbreak the snmp trap interfacereyk2009-11-262-4/+6
|
* accessses 1 entry too far, found by parfait, ok jsg claudioderaadt2009-11-121-2/+2
|
* Enclose repeated buffer draining code in a new msgbuf_drain()jacekm2009-09-152-26/+25
| | | | | | | | | function, which is additionally exported for use by others. It will be needed by smtpd's SSL module when the SMTP client code is changed to replace libevent's evbuffers with our msgbuf_* API. ok gilles@ henning@ guenther@ eric@
* SENSOR_WATTS; ok reyk deraadtcnst2009-08-141-1/+2
|
* Make imsg_clear close and free any fds in the received fd queue as well asnicm2009-08-081-3/+6
| | | | | | | | freeing the msgbuf. While here also remove an unnecessary while loop. ok eric pyr
* make buf_write() behave like msgbuf_write(): send out only theeric2009-07-231-4/+4
| | | | | | bytes that were filled, not the whole buffer. ok pyr@ gilles@
* Another kroute.c needing RTM_VERSION checks. Looked over by sthen@ and henning@claudio2009-06-251-1/+5
|
* revert this change by eric@:dlg2009-06-081-11/+4
| | | | | | | | Make the imsg protocol network-safe. it might be network safe, but half the imsg based daemons on my firewalls dont run anymore.
* Change the way fds passed over a socket are retreived on the receiving side.eric2009-06-072-5/+19
| | | | | | | | | | | | | | | Currently the receiver fetches an imsg via imsg_get() and if he expects an fd, he then calls imsg_get_fd() to fetch the next fd queued on the imsgbuf from which the imsg came. This changes hides the fd queueing mechanism to the API user. When closing an imsg with an fd, the message is flagged so that the receiving end knows it must dequeue the fd in imsg_get() and return it with the imsg structure. This way there is no (less) possible screw up from imsg_get_fd() not being called directly after imsg_get() by the user. The retreived imsg is self-contained. ok pyr@, "I like that" henning@
* Make the imsg protocol network-safe.eric2009-06-071-3/+11
| | | | ok pyr@
* change the imsg header fields a bit to prepare for upcoming changes.eric2009-06-062-10/+12
| | | | | | | add a flag field, use u_int32_t for pid_t and extend type to 32 bits for padding. ok pyr@
* this one missed the last batch.pyr2009-06-061-2/+2
|
* sync snmpd with the common imsg code, making it lib ready as well.pyr2009-06-068-205/+298
| | | | ok eric@
* rtm->rtm_hdrlen conversionchris2009-06-051-3/+3
| | | | ok claudio@, henning@
* Make the types of ber_read() decl match the prototype.jsg2009-06-041-2/+2
| | | | 'looks good' pyr@
* fix a few more typos found by spell(1); rectify a double "with" pointed outsobrado2009-04-161-3/+3
| | | | | | by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part)
* Fixed memory leaks which would occur if the second of two memorytobias2009-03-311-3/+7
| | | | | | | allocations fails. looks right deraadt, krw ok henning
* Fix an invalid pointer dereference in control_close(). If control_connbyfd()claudio2009-02-251-2/+4
| | | | | | fails -- which should never happen -- the function does not return and is accession the NULL set control pointer later on. Found by Matthew Haub. OK deraadt@
* Sync with ypldap. Add ber_{add,get}_enumerated.aschrijver2009-01-032-2/+57
| | | | OK reyk@
* Link the directory containing the MIB definitions for snmpd(8).reyk2008-12-231-3/+6
|
* export the livelock counter in a private mib openBSD.5.reyk2008-12-233-3/+58
| | | | discussed with dlg@
* fix IF-MIB element and implementation ifInUnknownErrors -> ifInUnknownProtosreyk2008-12-192-7/+7
|
* report memory and swap in hrStorage, and implement hrProcessor to reportreyk2008-12-085-22/+381
| | | | | | | hrProcessorLoad (where load means the percentage of time the system was not idle during the last minute). based on HOST-RESOURCES-MIB. ok dlg@
* add a few HOST-RESOURCES-MIB types (just names, no functionality yet)reyk2008-12-051-1/+69
|
* fix a possible crash in debugging mode (if compiled for with -DDEBUG)reyk2008-12-051-2/+3
| | | | found by Alexander Sabourenkov
* word better than number here.sobrado2008-11-041-3/+3
|
* use colon before a list.sobrado2008-11-031-2/+2
|
* improve description in .Nd macros.sobrado2008-11-032-6/+6
| | | | ok reyk@
* bring in the findeol() fix from pfctl. list of affected parsers by sthenhenning2008-10-171-3/+5
|
* plug memleak by calling ber_free() after sending a trap to cleanup thereyk2008-10-091-1/+2
| | | | BER write buffer.
* Unify code between the various flavors of imsg buffer.c.eric2008-10-031-4/+8
| | | | | | Use unsigned int for msg_iovlen. ok henning@ claudio@
* allow to add an additional restricted control socket for trap sendingreyk2008-09-265-44/+87
| | | | | | | only (not even show commands). this allows to place a socket for traps in another daemon's chroot. (based on restricted socket support from bgpd)
* Missing breaks.jsg2008-09-031-1/+2
| | | | ok pyr@
* reserve a few OpenBSD MIBs that might be implemented later or to avoidreyk2008-07-241-1/+4
| | | | conflicts wird 3rd parties.
* merge host_v6 with relayd's version to use getaddrinfo instead ofreyk2008-07-181-14/+22
| | | | | | inet_pton. host_v4, host_v6, and host_dns could be merged into one function using getaddrinfo but i keep it in multiple functions to keep it in sync with the other daemons using this common code.
* merge log_host with relayd's version using getnameinfo and rename itreyk2008-07-183-17/+15
| | | | to print_host.