Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-09-15 | Enclose repeated buffer draining code in a new msgbuf_drain() | Jacek Masiulaniec | |
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@ | |||
2009-08-14 | SENSOR_WATTS; ok reyk deraadt | Constantine A. Murenin | |
2009-08-08 | Make imsg_clear close and free any fds in the received fd queue as well as | Nicholas Marriott | |
freeing the msgbuf. While here also remove an unnecessary while loop. ok eric pyr | |||
2009-07-23 | make buf_write() behave like msgbuf_write(): send out only the | Eric Faurot | |
bytes that were filled, not the whole buffer. ok pyr@ gilles@ | |||
2009-06-25 | Another kroute.c needing RTM_VERSION checks. Looked over by sthen@ and henning@ | Claudio Jeker | |
2009-06-08 | revert this change by eric@: | David Gwynne | |
Make the imsg protocol network-safe. it might be network safe, but half the imsg based daemons on my firewalls dont run anymore. | |||
2009-06-07 | Change the way fds passed over a socket are retreived on the receiving side. | Eric Faurot | |
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@ | |||
2009-06-07 | Make the imsg protocol network-safe. | Eric Faurot | |
ok pyr@ | |||
2009-06-06 | change the imsg header fields a bit to prepare for upcoming changes. | Eric Faurot | |
add a flag field, use u_int32_t for pid_t and extend type to 32 bits for padding. ok pyr@ | |||
2009-06-06 | this one missed the last batch. | Pierre-Yves Ritschard | |
2009-06-06 | sync snmpd with the common imsg code, making it lib ready as well. | Pierre-Yves Ritschard | |
ok eric@ | |||
2009-06-05 | rtm->rtm_hdrlen conversion | Chris Cappuccio | |
ok claudio@, henning@ | |||
2009-06-04 | Make the types of ber_read() decl match the prototype. | Jonathan Gray | |
'looks good' pyr@ | |||
2009-04-16 | fix a few more typos found by spell(1); rectify a double "with" pointed out | Igor Sobrado | |
by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part) | |||
2009-03-31 | Fixed memory leaks which would occur if the second of two memory | Tobias Stoeckmann | |
allocations fails. looks right deraadt, krw ok henning | |||
2009-02-25 | Fix 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-03 | Sync with ypldap. Add ber_{add,get}_enumerated. | aschrijver | |
OK reyk@ | |||
2008-12-23 | Link the directory containing the MIB definitions for snmpd(8). | Reyk Floeter | |
2008-12-23 | export the livelock counter in a private mib openBSD.5. | Reyk Floeter | |
discussed with dlg@ | |||
2008-12-19 | fix IF-MIB element and implementation ifInUnknownErrors -> ifInUnknownProtos | Reyk Floeter | |
2008-12-08 | report memory and swap in hrStorage, and implement hrProcessor to report | Reyk 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-05 | add a few HOST-RESOURCES-MIB types (just names, no functionality yet) | Reyk Floeter | |
2008-12-05 | fix a possible crash in debugging mode (if compiled for with -DDEBUG) | Reyk Floeter | |
found by Alexander Sabourenkov | |||
2008-11-04 | word better than number here. | Igor Sobrado | |
2008-11-03 | use colon before a list. | Igor Sobrado | |
2008-11-03 | improve description in .Nd macros. | Igor Sobrado | |
ok reyk@ | |||
2008-10-17 | bring in the findeol() fix from pfctl. list of affected parsers by sthen | Henning Brauer | |
2008-10-09 | plug memleak by calling ber_free() after sending a trap to cleanup the | Reyk Floeter | |
BER write buffer. | |||
2008-10-03 | Unify code between the various flavors of imsg buffer.c. | Eric Faurot | |
Use unsigned int for msg_iovlen. ok henning@ claudio@ | |||
2008-09-26 | allow to add an additional restricted control socket for trap sending | Reyk 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-03 | Missing breaks. | Jonathan Gray | |
ok pyr@ | |||
2008-07-24 | reserve a few OpenBSD MIBs that might be implemented later or to avoid | Reyk Floeter | |
conflicts wird 3rd parties. | |||
2008-07-18 | merge host_v6 with relayd's version to use getaddrinfo instead of | Reyk 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-18 | merge log_host with relayd's version using getnameinfo and rename it | Reyk Floeter | |
to print_host. | |||
2008-06-29 | Use C99, not gcc-specific variadics. Ok miod@. | Anders Magnusson | |
2008-06-13 | correction from Tamas TEVESZ; | Jason McIntyre | |
2008-05-22 | - fix a bug in msgbuf_write() that caused a descriptor to stay in the fd | Gilles 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-12 | Error out with usage line if additional arguments are given after the | Pierre-Yves Ritschard | |
option parsing. Found out the hard way by jdixon on ifstated. ok sobrado@, jdixon@, millert@ | |||
2008-03-30 | .Xr snmpctl | Martin Reindl | |
ok jmc@ | |||
2008-03-24 | msg_controllen has to be CMSG_SPACE so that the kernel can account for | Theo 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-20 | Fix HISTORY. OK reyk@ | Todd C. Miller | |
2008-03-18 | remove ber_add_astring and make it the default behaviour in | Reyk 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-18 | fix bug that ber_oid2ber skips the first byte when encoding powers of | Reyk Floeter | |
128. E.g., it will encode 128 as 0x00 instead of 0x81 0x00. From Matthew at Dempsky dot org | |||
2008-03-17 | convert more strings to use the new ber_add_astring() function which | Reyk Floeter | |
simplifies the code. | |||
2008-03-17 | another sizeofa instead of sizeof fix | Reyk Floeter | |
2008-03-17 | fix incorrect use of sizeof() where there sizeofa() macro should be used | Reyk Floeter | |
ok dlg@ | |||
2008-03-16 | implement the hrSWRun portion of the HOST-RESOURCES mib. you can see whats | David Gwynne | |
running now, which is another thing my nms at work likes. ok reyk@ | |||
2008-03-16 | usage statements are preceeded with usage: | David Gwynne | |
ok reyk@ | |||
2008-03-15 | provide sizeofa for counting the number of elements in an array. use it for | David Gwynne | |
passing the length of the mib in all these sysctl calls. ok reyk@ | |||
2008-03-15 | Repair the simple cases for msg_controllen where it should just be | Theo de Raadt | |
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer |