summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2016-09-04The smtpd processes are not expected to ever leave their event loop.Eric Faurot
So stop pretending that the *_shutdown() functions could ever be called in this context, and just fatal() if event_dispatch() returns. ok gilles@ sunil@ giovanni@
2016-09-04forgot to regenFlorian Obser
2016-09-04Add format attribute to logger functions.Florian Obser
Add syslog_debug to keep in sync with others. Input & OK benno@
2016-09-04Add format attribute to logger functions.Florian Obser
Fix format string while here. Input & OK benno@
2016-09-04Add format attribute to logger functions.Florian Obser
Input & OK benno@
2016-09-04put signify errors alongside ftpMarc Espie
2016-09-04signature tracking bases: stored signed status inside object, so thatMarc Espie
we don't erroneously get "signature" comments from unsigned packages. force the gzip object to get its header. So if it can't something wrong happened. for now, we just know shit happened...
2016-09-04basic scaffolding to ask signify to check stuffMarc Espie
still missing some proper error reporting
2016-09-04Avoid double negations in tests.Jeremie Courreges-Anglas
ok krw@
2016-09-04A few bits of stray leading/embedded/trailing whitespace spotted whileKenneth R Westerback
stealing code.
2016-09-04Remove the "smtpctl stop" command.Eric Faurot
The daemon is stopped with kill(1). ok gilles@
2016-09-03log IP/hostname for all SMTP operations.Giovanni Bechis
patch from Pavel Korovin, thanks ok gilles@
2016-09-03remove dead codeGilles Chehade
2016-09-03rearrange code: traceroute.c now only contains main() and usage(),Sebastian Benoit
worker.c contains all other functions, and i tracked down which global variables are used in which file and marked them accordingly with static (or not). No functional change, just the basis of further work. ok florian@, deraadt@
2016-09-03Some .h files are not neededTheo de Raadt
2016-09-03partial rewrite of the tcp/tls option parts: the trouble wasJason McIntyre
with options which accepted a "no" prefix, it was difficult to see what was enabled and what was disabled; ok reyk (claudio ok'd an earlier version of the diff too)
2016-09-03typosJeremie Courreges-Anglas
2016-09-03Simplify shutdown process.Renato Westphal
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
2016-09-03Rework the sending of address messages.Renato Westphal
* Respect the session's negotiated maximum pdu length and split the sending of our local addresses into multiple messages if necessary; * Log sent/received addresses; * Add new wrappers to send only one address (send_address_single) and to send all addresses of the given address-family (send_address_all). These wrappers create a temporary list of addresses to be sent, and send_address() then acts on this last.
2016-09-03get rid of the type-checking system on internal messages.Eric Faurot
bump all imsg protocol versions since message format changed. ok gilles@ sunil@
2016-09-03in lka specifically, use initgroups() so that users may share files betweenGilles Chehade
smtpd and another daemon by adding supplementary groups ok eric@
2016-09-03Fix pasto; zero ka->dstbrd instead of clobbering ka->mask.Jeremie Courreges-Anglas
Diff from Jan Klemkow, ok mikeb@
2016-09-03Replace [RELAY|SERVER]_MAXPROC with the new PROC_MAX_INSTANCESReyk Floeter
variable and limit it from 128 to 32 instances (the old value). While here, move a few PROC_ defines around. OK rzalamena@
2016-09-03switch from EVP_{En,De}cryptInit & EVP_{En,De}cryptFinal to their _exGilles Chehade
counterparts, as suggested by bcook ok bcook@, sunil@, eric@
2016-09-03Use the fork+exec privsep model in relayd; based on rzalamena@'s workReyk Floeter
for httpd with some (current and previous) changes for relayd. Once again, both daemons now share the same proc.c where most of the privsep "magic" happens. OK benno@ rzalamena@
2016-09-03Retire zaurus, as it hasn't made the EABI jump and will be permanently brokenPhilip Guenther
shortly when we use the hardware thread register in userland
2016-09-03Update to 4.1.12Florian Obser
----------------------------------------------------------------- BUG FIXES: - Fix malformed edns query assertion failure, reported by Michal Kepien (NASK). ----------------------------------------------------------------- Does not effect OpenBSD since we are not running configure with --enable-checking OK sthen@
2016-09-03Remove the oh so funny "LOSS OF MIND" from the diclaimer that was notReyk Floeter
part of the original ISC license that we use in OpenBSD. Done for files were Henning is the original author. OK henning@ deraadt@
2016-09-03As vmm(4) can now exit to vmd at any time to process pending interrupts,Mike Larkin
don't kill the VM if we are presented with an exit type that is not something we directly need to handle. Instead, simply re-enter the guest, possibly injecting an interrupt along the way. Still exit the process if presented with a triple fault, until we implement reboot support. ok stefan@
2016-09-03fix some wrong interrupt code that doesn't fit with the new modelMike Larkin
ok stefan@
2016-09-03Adding a clean up block to vioblk_notifyq() and vionet_enq_rx()Nayden Markatchev
OK mlarkin@
2010-01-15NSD v3.2.4Jakob Schlyter
2016-09-03Simplify shutdown process.Renato Westphal
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
2016-09-03Simplify shutdown process.Renato Westphal
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
2016-09-03Simplify shutdown process.Renato Westphal
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
2016-09-03Make error handling in config_getvm() more robustStefan Kempf
Open all fds first before sending messages to the vmm process. This prevents some intermediate state from being generated that will confuse vmm if it gets further messages. Also make sure that vmctl gets the right error reason later by saving errno upon a failure. ok reyk@ mlarkin@
2016-09-03Use DPRINTF instead of #ifdef DEBUG + log_debug().Reyk Floeter
Pointed out by benno@
2016-09-02work on making log.c similar in all daemons:Sebastian Benoit
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@
2016-09-02Fix small memleak on error path.Renato Westphal
2016-09-02Make tcpdump print details about association requests in verbose mode.Stefan Sperling
Refactor such that we can share some of the code for beacon printing. ok sthen@
2016-09-02lde() and ldpe() should return void.Renato Westphal
Remove these leftovers from the pre-fork+exec era. Spotted by and ok rzalamena@ ok claudio@
2016-09-02Process incoming com data asynchronously to running VCPUStefan Kempf
This registers a handler with libevent that is triggered on incoming data on the com port. ok mlarkin@
2016-09-02Process incoming host->guest packets asynchronously to running VCPUStefan Kempf
This registers a handler with libevent that is called on incoming packets for the guest. If they cannot be handled immediately (because the virtq is full), make sure they are handled on VCPU exits. ok mlarkin@
2016-09-02Improve logging of sent and received messages.Renato Westphal
* Standardize the logging format of sent and received messages: "msg-[in|out]: message type: lsr-id A.B.C.D [additional info]"; * Log sent label messages as well, not only the received ones; * Move the logging of sent notification messages from send_notification_nbr() to send_notification_full(), this way notification triggered by the lde process are logged as well; * Minor clean-up.
2016-09-02Reevaluate received mappings upon receipt of address message.Renato Westphal
If a neighbor was a nexthop for a given set of prefixes but it's not anymore, then we should uninstall the associated label mappings (if any) from the kernel. The same applies for the other way round (neighbor wasn't a nexthop for a given set of prefixes but now is). This issue is only evident when we have multiple links between a pair of LSRs. Generally, when a link is shut down, the whole LDP is torn down and all label mappings uninstalled automatically. ok claudio@
2016-09-02Simplify shutdown process.Renato Westphal
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok claudio@
2016-09-02Minor tweaksRenato Westphal
2016-09-02Make functions and variables static whenever possible.Renato Westphal
style(9) says: "Function prototypes for private functions (i.e., functions not used elsewhere) go at the top of the first source module. In userland, functions local to one source module should be declared 'static'". The benefits of doing so include: * clean up of the eigrpd global namespace; * improved readability; * more hints to the compiler/linker to generate more efficient code. Additional changes: * Declare all extern variables in header files; * Clean up the indentation of all function prototypes and global variables. ok claudio@ benno@
2016-09-02Use static local variables instead of global variables whenever possible.Renato Westphal
Also, there's no need to zero initialize global and static variables, that's done automatically by the compiler. ok claudio@ benno@
2016-09-02Merge the recv_packet_v[46] functions into one.Renato Westphal
This reduces some code duplication and makes it easier to see the difference between the IPv4 and IPv6 raw sockets API. tweak + ok claudio@, ok benno@