summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
AgeCommit message (Collapse)Author
2009-04-16fix a few more typos found by spell(1); rectify a double "with" pointed outIgor Sobrado
by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part)
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-02-25Fix an invalid pointer dereference in control_close(). If control_connbyfd()Claudio Jeker
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@
2009-01-03Sync with ypldap. Add ber_{add,get}_enumerated.aschrijver
OK reyk@
2008-12-23Link the directory containing the MIB definitions for snmpd(8).Reyk Floeter
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-12-05add a few HOST-RESOURCES-MIB types (just names, no functionality yet)Reyk Floeter
2008-12-05fix a possible crash in debugging mode (if compiled for with -DDEBUG)Reyk Floeter
found by Alexander Sabourenkov
2008-11-04word better than number here.Igor Sobrado
2008-11-03use colon before a list.Igor Sobrado
2008-11-03improve description in .Nd macros.Igor Sobrado
ok reyk@
2008-10-17bring in the findeol() fix from pfctl. list of affected parsers by sthenHenning Brauer
2008-10-09plug memleak by calling ber_free() after sending a trap to cleanup theReyk Floeter
BER write buffer.
2008-10-03Unify code between the various flavors of imsg buffer.c.Eric Faurot
Use unsigned int for msg_iovlen. ok henning@ claudio@
2008-09-26allow to add an additional restricted control socket for trap sendingReyk Floeter
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)
2008-09-03Missing breaks.Jonathan Gray
ok pyr@
2008-07-24reserve a few OpenBSD MIBs that might be implemented later or to avoidReyk Floeter
conflicts wird 3rd parties.
2008-07-18merge host_v6 with relayd's version to use getaddrinfo instead ofReyk Floeter
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.
2008-07-18merge log_host with relayd's version using getnameinfo and rename itReyk Floeter
to print_host.
2008-06-29Use C99, not gcc-specific variadics. Ok miod@.Anders Magnusson
2008-06-13correction from Tamas TEVESZ;Jason McIntyre
2008-05-22- fix a bug in msgbuf_write() that caused a descriptor to stay in the fdGilles Chehade
list even after being sent successfully. this has imsg_get_fd() keep returning the first fd. no impact in snmpd. "go for it" pyr@, "yeah someone screwed up in the copy" henning@
2008-05-12Error out with usage line if additional arguments are given after thePierre-Yves Ritschard
option parsing. Found out the hard way by jdixon on ifstated. ok sobrado@, jdixon@, millert@
2008-03-30.Xr snmpctlMartin Reindl
ok jmc@
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-20Fix HISTORY. OK reyk@Todd C. Miller
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-18fix bug that ber_oid2ber skips the first byte when encoding powers ofReyk Floeter
128. E.g., it will encode 128 as 0x00 instead of 0x81 0x00. From Matthew at Dempsky dot org
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-16usage statements are preceeded with usage:David Gwynne
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-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
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-14add a new ber function ber_add_astring() that strdups the string andReyk Floeter
sets the be_free flag (which is required in some cases). this will make it easier because it is done manually at some places in the code. discussed with dlg
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-03-12remove noisy warning messageReyk Floeter
ok claudio@
2008-03-12fix a memleak in the ber_read_elements() error case.Reyk Floeter
ok claudio@
2008-03-12Check that the current ber element is a sequence or a set when '{' or '('Claudio Jeker
is used. OK reyk@
2008-03-12mostly stylistic - always print the client host name in snmpe errorReyk Floeter
messages and make sure that the host string is initialized.
2008-03-12if (class != BER_CLASS_UNIVERSAL || type != BER_TYPE_SEQUENCE)Claudio Jeker
not if (class != BER_CLASS_UNIVERSAL && type != BER_TYPE_SEQUENCE) the class and type need to be of correct. OK reyk@
2008-03-12SNMP has a restricted BER encoding especially all encodings use theClaudio Jeker
definite-length from. So bail out with an error if this is not the case. OK cloder@, reyk@ cvs: ----------------------------------------------------------------------
2008-03-12Return an error if more data is requested even though the buffer is empty.Claudio Jeker
Fixes an infinite loop seen by cloder@. OK cloder@, reyk@
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-02-27Unbreak parser by initializing topfile correctly.Marco Pfatschbacher
I got fooled by patch(1). Sorry. Found by and OK thib@.
2008-02-27Have popfile() also close the main config file,Marco Pfatschbacher
but only do the final popfile call after yyparse() is done. This also fixes config reload on SIGHUP for some daemons. Spotted by otto@. OK deraadt@