summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-20Add support for .openbsd.randomdata sections and PT_OPENBSD_RANDOMIZEMatthew Dempsky
segments to the kernel, ld (2.15), and ld.so. Tested on alpha, amd64, i386, macppc, and sparc64 (thanks naddy, mpi, and okan!). Idea discussed for some time; committing now for further testing. ok deraadt
2012-08-20MAX_LINE_SIZE is supposed to define the max length of a SMTP line ...Gilles Chehade
... but SMTP_LINE_MAX *also* defines it ... with a different value ... and did I mention both were too small anyway ? quick fix until we kill one or the other: bump MAX_LINE_SIZE and define SMTP_LINE_MAX to be MAX_LINE_SIZE. this fixes the immediate issue while we decide which one bites the dust. fixes the crashes and "line too long" errors spotted by todd@ ok todd@, ok chl@
2012-08-20add -Wdeclaration-after-statement to the default CDIAGFLAGS (used whenStuart Henderson
WARNINGS=yes is set) on gcc4 arch. ok haesbaert@ deraadt@.
2012-08-20rfc 4291 replaces rfcs 2373 and 3513;Jason McIntyre
2012-08-20Sync GCC 3's libpthread specs with GCC 4's. Not currently used byMatthew Dempsky
anything, but might as well as long as GCC 3's still in tree. From Brad.
2012-08-20syncTheo de Raadt
2012-08-20Do not send more bytes than necessary with IMSG_STAT_*. The INCREMENTEric Faurot
and DECREMENT messages just contain the key with the ending zero. For IMSG_STAT_SET, the value is found at the beginning of the message, and the rest is the key. ok gilles@
2012-08-20- fix the example filter to match current APIGilles Chehade
spotted by todd@ ;-)
2012-08-20start iterating from min, not root.Eric Faurot
ok gilles@
2012-08-20MISs work on Oberon as well.Mark Kettenis
2012-08-20Explicitely set local variables as such.Antoine Jacoutot
Remove unused DBFILE. from robert at peichaer dot org
2012-08-20wire up the bits for tftp-proxy, which is called tftpproxy from rc.d'sDavid Gwynne
point of view. mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the start_daemons chunk
2012-08-20make use of __only_inline to ask for gnu inline semanticsJonathan Gray
ok espie@
2012-08-20chroot scheduler in /var/empty instead of /var/spool/smtpd now that eric@ ↵Charles Longeau
fixed the initialization layer violation committing on behalf of gilles@ ok gilles@ chl@
2012-08-20consensus says this should be an errorMarc Espie
2012-08-20add support for chaining a scatter gather list off a request frame if itDavid Gwynne
runs out of space for entries.
2012-08-20Don't unset NEED_NEWALIASES too soon or we will not get the warning.Antoine Jacoutot
from robert at peichaer dot org
2012-08-20mention V445Jonathan Gray
2012-08-19decls before codeTheo de Raadt
2012-08-19document some more disabled tests.Federico G. Schwindt
2012-08-19Switch to -lpthread.Federico G. Schwindt
2012-08-19Update version to 3.7.13 to match reality.Landry Breuil
ok espie@
2012-08-19Skip putting a port in sleep mode when it is used as serial console. In thatMark Kettenis
case the kernel will still be using the port even after the last process closes it. And on machines like the v445 the firmware won't be happy if the console port is in sleep mode when the kernel reboots or halts. ok miod@
2012-08-19Build static netent and hostent structure in a nicer and hopefully notEric Faurot
broken way. Make it almost trivial to implement gethostby*_r() family of functions when needed.
2012-08-19When building dynamic hostent and netent, allocate a single linear buffer toEric Faurot
hold both the structure and the data. The freehostent() and freenetent() API functions are not needed anymore. While there, ensure that the constructed addr and alias lists are really NULL terminated.
2012-08-19fix smtpctl schedule-all and schedule-id <msgid>Charles Longeau
with help from eric@ ok eric@
2012-08-19avoid crash when removing non-existing envelopeCharles Longeau
from eric, ok eric@ cvs: ----------------------------------------------------------------------
2012-08-19coding style: replace all occurences of u_int* with uint*Charles Longeau
ok eric@
2012-08-19Fix ranges in the method description.Martynas Venckus
2012-08-19kill dead file that must die.Eric Faurot
ok chl@
2012-08-19Stefan Unterweger pointed out that, contrary to the man page,Jason McIntyre
dc exited after processing any expressions and/or files; this is the doc fix, as requested by (and ok) otto
2012-08-19Let the scheduler return all schedulable envelopes for the same messageEric Faurot
as a single batch. The route for each envelope is sorted out by the mta properly, so they are grouped as a single MAIL on each route. ok gilles@ chl@
2012-08-19Kill envelope_{dump,load}_file() and replace them with ↵Charles Longeau
envelope_{dump,load}_buffer(). with input from eric@ ok eric@
2012-08-19Add warnings on io errors to help diagnosis.Eric Faurot
ok gilles@ chl@
2012-08-19add missing IMSG_* in imsg_to_str()Charles Longeau
ok eric@
2012-08-19fix an issue where too long lines were not spot properly.Charles Longeau
issue reported by todd@ ok eric@
2012-08-19zap trailing whitespace;Jason McIntyre
2012-08-18document ocaml_native and ocaml_native_dynlink propertiesAnil Madhavapeddy
ok espie@
2012-08-18zap struct mta_batch. Only pass ids where needed.Eric Faurot
ok gilles@
2012-08-18- introduce stat_backend, an API for pluggable statistic backendsGilles Chehade
> statistics are no longer static structures in shared memory > statistics are only set, smtpd never uses them in its logic > each statistic is a key/value where key can be any (dynamic) string - convert all uses of the former API to use the new one - implement stat_ramstat that keeps non-persistent stats in ram structure ok eric@, ok chl@
2012-08-18Don't store a time_t into an int. Make the variable time_t.Kenneth R Westerback
Part of larger time_t rectification diff from guenther@.
2012-08-18ensure that async_run() and async_run_sync() always preserve errno.Eric Faurot
2012-08-18RFC updates:Jason McIntyre
5322 obsoletes 2822 5321 obsoletes 821 and 2821 6409 obsoletes 2476 and 4409
2012-08-18Disallow empty domain/address sent after HELO/EHLO command.Charles Longeau
ok gilles@ eric@
2012-08-18glxpcib(4) invokes pcibattach assuming pcib doesn't need more than aMiod Vallat
`struct device' as its softc. This is not the case on loongson, and the glxpcib softc gets subtly corrupted, causing a kernel panic when attempting to select the glxpcib timecounter as the current timecounter. Skirt this by not using the pcib softc fields if we are invoked from glxpcib - it is not really worth putting pcib_softc in a header for the sake of MI glxpcib code.
2012-08-18Major update of the mta internals.Eric Faurot
Add a mta_route structure which describes a route through which outgoing mails are to be sent. This structure holds connection parameters and limits. When an envelope is received in a batch, the route for it is looked up, and the envelope is added to the a list of envelope to be sent for this message on that route: a task. When the batch is closed, each task is added to the list of tasks for their respective route. The routes are drained when new work can happen. The route will create new mta sessions if necessary. When a session is up and ready, it picks the first pending task on the route if any. In the other case, it just closes the connection. Errors on the connection are reported to the route, so that the route could be flagged as broken. Currently, three errors on a an attempt to open a route is reported as a failure for all pen- ding tasks. ok gilles@
2012-08-18RFCs 2461 and 2462 have been replaced by, respectively, RFCs 4861 and 4862;Jason McIntyre
2012-08-18Limit the number of bounce sessions running at the same time. WhenEric Faurot
committed, a bounce is put on a runnable list of bounces. This list is drained to enqueue as much bounces as possible within the limit. This avoids DoS'ing the server when lots of bounces are enqueued at startup. While there, allow new envelopes to be added to a bounce until the the very last moment (i.e. when the list of recipients is written). ok gilles@ chl@
2012-08-18Don't try to printf() a time_t value with %d. Cast to (int) justKenneth R Westerback
in case time_t ever changes size. Values in these cases are intervals, i.e. (time_t - time_t) so int/%d will be fine. Part of larger time_t rectification diff from guenther@.
2012-08-18getrrsetyname() only uses ERRSET_* and is not supposed to set errno.Eric Faurot
make sure to save and restore errno properly.