summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Build static netent and hostent structure in a nicer and hopefully noteric2012-08-191-95/+100
| | | | | broken way. Make it almost trivial to implement gethostby*_r() family of functions when needed.
* When building dynamic hostent and netent, allocate a single linear buffer toeric2012-08-196-104/+88
| | | | | | 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.
* fix smtpctl schedule-all and schedule-id <msgid>chl2012-08-192-13/+55
| | | | | | with help from eric@ ok eric@
* avoid crash when removing non-existing envelopechl2012-08-191-2/+2
| | | | | | from eric, ok eric@ cvs: ----------------------------------------------------------------------
* coding style: replace all occurences of u_int* with uint*chl2012-08-1922-266/+266
| | | | ok eric@
* Fix ranges in the method description.martynas2012-08-191-5/+5
|
* kill dead file that must die.eric2012-08-191-0/+0
| | | | ok chl@
* Stefan Unterweger pointed out that, contrary to the man page,jmc2012-08-191-11/+17
| | | | | | dc exited after processing any expressions and/or files; this is the doc fix, as requested by (and ok) otto
* Let the scheduler return all schedulable envelopes for the same messageeric2012-08-191-4/+2
| | | | | | | 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@
* Kill envelope_{dump,load}_file() and replace them with envelope_{dump,load}_buffer().chl2012-08-193-64/+81
| | | | | | with input from eric@ ok eric@
* Add warnings on io errors to help diagnosis.eric2012-08-191-2/+10
| | | | ok gilles@ chl@
* add missing IMSG_* in imsg_to_str()chl2012-08-191-2/+8
| | | | ok eric@
* fix an issue where too long lines were not spot properly.chl2012-08-191-3/+3
| | | | | | issue reported by todd@ ok eric@
* zap trailing whitespace;jmc2012-08-191-3/+3
|
* document ocaml_native and ocaml_native_dynlink propertiesavsm2012-08-181-6/+11
| | | | ok espie@
* zap struct mta_batch. Only pass ids where needed.eric2012-08-183-31/+17
| | | | ok gilles@
* - introduce stat_backend, an API for pluggable statistic backendsgilles2012-08-1816-349/+472
| | | | | | | | | | > 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@
* Don't store a time_t into an int. Make the variable time_t.krw2012-08-181-2/+2
| | | | Part of larger time_t rectification diff from guenther@.
* ensure that async_run() and async_run_sync() always preserve errno.eric2012-08-183-13/+27
|
* RFC updates:jmc2012-08-185-18/+19
| | | | | | 5322 obsoletes 2822 5321 obsoletes 821 and 2821 6409 obsoletes 2476 and 4409
* Disallow empty domain/address sent after HELO/EHLO command.chl2012-08-181-3/+3
| | | | ok gilles@ eric@
* glxpcib(4) invokes pcibattach assuming pcib doesn't need more than amiod2012-08-181-15/+38
| | | | | | | | | | `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.
* Major update of the mta internals.eric2012-08-183-373/+599
| | | | | | | | | | | | | | | | | | | | | | 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@
* RFCs 2461 and 2462 have been replaced by, respectively, RFCs 4861 and 4862;jmc2012-08-183-17/+20
|
* Limit the number of bounce sessions running at the same time. Wheneric2012-08-181-19/+55
| | | | | | | | | | | | | 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@
* Don't try to printf() a time_t value with %d. Cast to (int) justkrw2012-08-181-4/+4
| | | | | | | 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@.
* getrrsetyname() only uses ERRSET_* and is not supposed to set errno.eric2012-08-182-12/+12
| | | | make sure to save and restore errno properly.
* Simplify error reporting in hostaddr_async(). Only use EAI_* error codes.eric2012-08-181-11/+2
|
* Improve error reporting in getnameinfo_async() and getaddrinfo_async().eric2012-08-183-57/+46
| | | | | | | | | | They do not have to deal with h_errno at all. Also, errno is only kept for EAI_SYSTEM. Small code cleanup while there. Adapt getnameinfo() and getaddrinfo() wrappers to correctly save errno and overwrite it in the EAI_SYSTEM case. General errno handling issue reported by mikeb@.
* allow other targets to work like install -> realinstallespie2012-08-181-2/+2
| | | | | | (to be used in xenocara for build) okay matthieu@
* within Rs/Re reference blocks, use %U instead of %O (or any otherjmc2012-08-1836-125/+125
| | | | | | | | | variants) for URLs, allowing mandoc -Thtml to properly generate links; (sendmail.8 changes are simply using Lk, which i somehow missed in previous) ingo reminded me to verify that gnu groff recognises %U: 1.20.1 does not, but 1.21 does;
* forgot to document llvm property.espie2012-08-181-1/+5
|
* be more explicit about what mono is.espie2012-08-181-2/+4
|
* document default changeespie2012-08-181-5/+5
|
* Fix http resume without out auth, which I broke on the last commit,haesbaert2012-08-181-3/+6
| | | | | | spotted by bluhm. ok bluhm.
* Remove unused field 'next' from struct timeout. There's only onekrw2012-08-181-2/+1
| | | | timeout now, not a list.
* Update global cur_time after exiting poll() and before calling thekrw2012-08-182-4/+6
| | | | | | | state engine for packet processing. Time may have passed! Use cur_time in routing message processing. Makes sense to todd@
* make sure mycreate uses -DSHARED_LIBS=1 (for now), gets a lot of tests toespie2012-08-171-1/+2
| | | | succeed as they should...
* fix after signatures changeespie2012-08-171-2/+2
|
* oops, shouldn't go interactive (found by matthew@)espie2012-08-171-2/+2
|
* ouch, this should not workespie2012-08-173-1/+15
|
* Native mdoc versions of the sudo manuals, back-ported from sudo trunk.millert2012-08-1711-3208/+5409
|
* Properly initialize the IOMMU control and status register for pyro(4).kettenis2012-08-172-3/+14
| | | | Fixes DMA problems spotted on the v445.
* Turns out interrupts for Ebus devices are wired to the *other* PCI Expres leafkettenis2012-08-172-35/+34
| | | | | on the v445 (compared to the v215/v245). Generalize the code to allow for arbitrary wirings. Makes the serial console on the v445 work.
* Don't forget to byteswap the state_flags since it's a uint16_t now.mikeb2012-08-171-3/+3
| | | | From Hrvoje Popovski via Florian Obser, ok henning
* cleanup mpii_get_ioc_pg8 mess, no functional changemikeb2012-08-171-51/+26
|
* Fix typos in DPRINTF() so error messages refer to correct *hci.krw2012-08-172-4/+4
| | | | Spotted by Artturi Alm. Thanks!
* Don't need this anymore, we have it in bsd.own.mk now.haesbaert2012-08-171-11/+1
|
* Don't need this anymore, we have them in bsd.own.mk.haesbaert2012-08-171-11/+0
|
* Add a default CDIAGFLAGS, so that programs may be enable warnings byhaesbaert2012-08-171-3/+9
| | | | | | | making "make WARNINGS=Yes" without having to add a bunch of CDIAGFLAGS to its makefile. sure deraadt@