summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2012-07-12remove unused filesEric Faurot
ok gilles@
2012-07-12remove a double .includeJasper Lievisse Adriaanse
ok robert@
2012-07-12minor fixMarc Espie
2012-07-12add support for maildir tagging/folders.Charles Longeau
ok gilles@ ok eric@ on previous versions of this patch
2012-07-11enable back = char in address localpart, that is sometimes used by mailing ↵Charles Longeau
lists. ok gilles@ eric@
2012-07-11Respect RFC 5321, section 4.5.3.1.: it reduces our current max size forCharles Longeau
localpart, domainpart and text line. The sizeof struct envelope goes from 8k to 6k. ok gilles@ eric@
2012-07-11Don't respect RFC 5322, that allows some crazy characters in emailCharles Longeau
localpart, like !#$&'*/=?^`{|}~ ... and all the other ones that can be double quoted, just refuse them. ok gilles@ eric@
2012-07-11improve messages for suspend/hibernateTheo de Raadt
2012-07-11first go at a manpageDavid Gwynne
2012-07-11fix getopt to not eat tDavid Gwynne
2012-07-11-t pftag doesnt do anything, trim the getopt side of it until i get to it.David Gwynne
2012-07-11manpage is comingDavid Gwynne
2012-07-11bring in a persistent event driven tftp-proxy to replace the libexecDavid Gwynne
one run out of inetd. the libexec tftp-proxy had the same problems as the libexec tftpd, in that it didnt scale as well as we needed. it also had a bunch of interesting races with states and addresses on sockets. manpage is coming. ok deraadt@ sthen@ henning@ matthew@
2012-07-11Disable SSLv2 in OpenSSL. No objections from djm.Stuart Henderson
Brad, jasper and naddy helped with test builds, fixing ports, etc.
2012-07-11Unbreak the tree for gcc2 arches.Peter Hessler
Instead of having no limit for some arrays, limit them to the number of acceptable options. pointed out by miod@
2012-07-11cleanup offset argument in default_print_* functions, pointed out by Mike SmallStuart Henderson
ok theo
2012-07-11Limit "while(setsockopt(..SO_RCVBUF/SO_SNDBUF..))" loops to prevent themStuart Henderson
running away if the setsockopt call fails, as may happen if a peer bounces at the wrong time. OK claudio@ after tweaks to an earlier version which was OK phessler@.
2012-07-11Don't skip pipe, kqueue, crypto, or systrace files in pstat -f outputPhilip Guenthe
Also, cast to long to make printf formatting portable with help from matthew; ok deraadt@
2012-07-10backout the:Charles Longeau
- remove the /envelopes subdirectory, envelopes are at the same level than the message file - kill PATH_ENVELOPES define but keep the: - reduce the number of buckets from 0xfff to 0xff, this avoid performances of the queue to decrease when we start having tons of buckets ok eric@ gilles@
2012-07-10support -A to print the ascii text of captured packets. ok deraadt@Stuart Henderson
2012-07-10accept address literal for the recipient domain.Charles Longeau
while there, change valid_{local,domain}part() prototypes to use const char *. with input from gilles@ and eric@ ok gilles@ eric@
2012-07-10- simplify the scheduler loop logic further, it is ridiculously simple nowGilles Chehade
and I don't think we can do much better (at that level) :-p - always break out of the handler after processing an envelope, this will avoid a busy scheduler from not getting a chance to handle SIGTERM/SIGINT YES we can now ctrl-c a maaaaad scheduler ! ok eric@, ok chl@
2012-07-10fix the last outstanding functionality difference i could find betweenDavid Gwynne
libexec and usr.sbin tftpd. libexec waitied around after finishing a wrq in case our ack for the last write from a client got lost. this does the same dance, or an arguably better version of it compared to libexec tftpd.
2012-07-10libexec/tftpd handled the case where we'd get an ack for the previousDavid Gwynne
block by flushing the data on the socket and waiting for a retransmit by timeout to occur. my stuff (usr.sbin/tftpd) had XXXs and failure in those places. this diff fixes that. this should address the problems that sthen and jcs have been having (and which i was finally able to reproduce here). it also avoids reusing the clients buffer to both send and recv frames. we recv onto the stack now so retry always sends what we originally built for the peer. tested by and ok jcs@ sthen@
2012-07-09According to miod, KERNBASE used as a userland symbol should dieTheo de Raadt
in a fire. Start by removing the definitions, before we clean the headers later.
2012-07-09resolve conflictsStuart Henderson
2012-07-09NSD v3.2.11, ok phessler@Stuart Henderson
2012-07-09- introduce log_trace(TRACE_SCHEDULER, ...)Gilles Chehade
- simplify a tiny tiny bit the scheduler loop - no functional change (yet)
2012-07-09Remove generated files.Stuart Henderson
2012-07-09move to the new resolver implementation, with temporary glue to useEric Faurot
the relevant files from asr directly. ok gilles@
2012-07-09Fix the handling of the message read buf with regard to MSG_PROCESS_LIMIT.Claudio Jeker
The read buffer was only processed when new data came in. So on quiet sessions it could take minutes until the read buffer was processed at the end of a load. Nobody realized this in the last 7.5 years. Tested by sthen@ OK henning@
2012-07-09- runner is the terminology we used back when we had runqueues, we noGilles Chehade
longer have them and runner is actually a scheduler so rename. - introduce scheduler_backend which does the same to scheduler than queue_backend does to queue and map_backend does to maps - remove all occurences of RUNNER and runner, replace them with SCHEDULER and scheduler ok eric@, ok chl@
2012-07-09Allow relayd to handle transactions > 2GB in sizeTheo de Raadt
tested by snapshot users and benno for a while ok benno
2012-07-09need a private copy of nitems()Theo de Raadt
2012-07-09Use size_t for the length variablePeter Hessler
reminded by Brad, and lteo@
2012-07-09first step of simplifying fsqueue:Gilles Chehade
- remove the /envelopes subdirectory, envelopes are at the same level than the message file - kill PATH_ENVELOPES define - reduce the number of buckets from 0xfff to 0xff, this avoid performances of the queue to decrease when we start having tons of buckets this diff introduces a change to the queue layout, you will want to empty your queue before updating. more cleanup to come ok eric@, ok chl@
2012-07-08Add support for the "sha256digest" keyword to create/compareChristian Weisgerber
SHA-256 digests of files. In the man page, also replace SHA-1 with SHA-256 in the examples section. Man page formatting tweak and ok schwarze@
2012-07-08remove enum queue_kind from queue_fsqueue.c.Charles Longeau
incoming messages are now always stored in /incoming, whatever the queue_backend is. remove QOP_FD_RW and fsqueue_message_fd_rw(). while there check return value of generated paths before calling rmtree() with advice from gilles@ and eric@ ok gilles@ eric@
2012-07-08New attempt to make the -P flag work with -ss, so that states can beLawrence Teo
printed with port names if desired. tcpdump's pf_print_state.c has diverged significantly from pfctl's, so the change to tcpdump's pf_print_state.c is not exactly the same as pfctl's. ok henning sthen
2012-07-08avoid line splitting; also, one an -> aJason McIntyre
2012-07-08- plug text_to_relayhost() in parse.y to support relay URLs.Gilles Chehade
- document the new URL syntax in smtpd.conf.5 - replace starttls:// schema with tls:// Beware, "relay via" rules should now be expressed with a relay URL: accept [...] relay via "mx1.example.org" smtps port 465 becomes accept [...] relay via "smtps://mx1.example.org" This will allow using mappings of relays with different protocols and options. Make sure to update your smtpd.conf if you relay via ! ok eric, ok chl
2012-07-08auth_bsd() is staticGilles Chehade
2012-07-08Increase maximum number of tun interfaces to 8.giovanni
ok yasuoka@
2012-07-08if you use nitems() in userland, you must define it yourselfTheo de Raadt
discussed with guenther
2012-07-08a -> an in a commentBret Lambert
ok phessler@
2012-07-08Add support for advertising dns servers and search paths in routerPeter Hessler
advertisements, according to RFC 6106. original diff from Stephane A. Sezer on tech@, many thanks! OK phessler@, todd@
2012-07-08new sentence, new line;Jason McIntyre
2012-07-08Add noifprefix, an option to send an RA with no prefix information.Peter Hessler
From Stephane A. Sezer, many thanks! OK phessler@, jasper@
2012-07-07allow httpd to build if sslv2 is disabled, ok guenther@Stuart Henderson
2012-07-07rename prio in struct pf_rule and related structs to set_prio so it isHenning Brauer
utterly clear this is not a filter criteria but a packet modification thing. also preparation for upcoming changes, including one to unscrew this mess (I should not have to touch half the tree for this - ifixitlater) not user visible, ok gcc