summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-08Move all calls to fcntl(...O_NONBLOCK) into a function and clear theNicholas Marriott
flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
2011-01-08destatic. ok deraadtTed Unangst
2011-01-08Accept colours of the hex form #ffffff and translate to the nearest fromNicholas Marriott
the xterm(1) 256-colour set.
2011-01-08Enable unix datagram support by treating ENOBUFS like EAGAIN.Jeremy Evans
Separate commit requested by deraadt@. OK nicm@
2011-01-08Support unix domain sockets in nc(1) with -Uu.Jeremy Evans
Previously, using -U with -u was an error that was not documented in the man page. Now it will use a unix socket in datagram mode. Bidirectional unix datagram communication requires a socket at both ends, so in client mode (without -l), a temporary socket is created so that responses from the server can be received. If -s is specified with -U and -u, it specifies the location of the temporary socket to create. This was mostly written way back in 2007. Since then, various improvements implemented based on suggestions from guenther@, tedu@, and nicm@. Man page help from nicm@ and jmc@. Unix datagram support requires a small change to atomicio.c in order to function correctly, this will be committed separately shortly. OK nicm@
2011-01-07some minor improvements to rnd.Ted Unangst
1. only support pool words == 2048. 2. define the amount of key we use. 3. define the amount of rc4 we skip. 4. use arc4random_buf instead of reimplementing inline. 5. bzero some more "secrets". ok deraadt djm
2011-01-07Add kernel regression tests for socket splicing.Alexander Bluhm
2011-01-07mktemp(3) can be used, but not where mkstemp(3) is an alternative. AlsoNicholas Marriott
trim an inaccurate comment about its future removal. ok deraadt
2011-01-07Remove an extraneous return statement with the wrong return value.Todd C. Miller
Fix some gcc warnings.
2011-01-07do not special case ep0 at pci/eisa. ep* will be fine. We should notTheo de Raadt
use 'foo0 at smartbus?' unless we need to ok miod
2011-01-07Add socket option SO_SPLICE to splice together two TCP sockets.Alexander Bluhm
The data received on the source socket will automatically be sent on the drain socket. This allows to write relay daemons with zero data copy. ok markus@
2011-01-07- Update Test::Simple to 0.96Jasper Lievisse Adriaanse
from Abel Abraham Camarillo Ojeda ok espie@ millert@
2011-01-07tweak previous; ok deraadtJason McIntyre
2011-01-07do not rely on rndvar.h leaking shit into the namespaceTheo de Raadt
2011-01-07substantial rewrite. put a very thin mutex at the entropy-collectionTheo de Raadt
side so that entropy events can come in from any kernel context. place a 2nd very thin mutex at the call-down path as well, so that any context can request random data. in the middle, meet with a bcopy that has no mutex, but copying unlocked data is actually a benefit. move the pool->MD5->RC4init sequence into a workq driven from a timeout, so that we can do all the heavy work without any mutex held or IPL; only grab the 2nd mutex to swap to a new RC4 state. (this workq design from tedu) ok dlg tedu
2011-01-07since randomwrite() also has no blocking operations at all, we need toTheo de Raadt
do a yield, otherwise an accidental cat by root into /dev/random kind of makes your machine hurt a lot.
2011-01-07increase i386 maxdsiz to 2GB. comments from ariane deraadt kettenis.Ted Unangst
ok deraadt
2011-01-07the midlayer uses -1 as a wildcard when processing requests for probes orDavid Gwynne
detaches. switch the types from u_int to int in the vscsi ioctl that asks for probes or requests. this is so claudio@ can get all luns on a target probed in iscsid with a single ioctl call. ok deraadt@
2011-01-07Detect wether a disk image is an ISO image and set the media type toMark Kettenis
VD_MEDIA_TYPE_CD to vDisk 1.1 clients. Makes installing from a Solaris 11 Express bootable install CD work.
2011-01-07Fix malloc(9) call with swapped type and flags arguments.Mark Kettenis
2011-01-06Add support for the vDisk 1.1 protocol. Improve Solaris vtoc/disklabelMark Kettenis
support and implement VD_OP_SET_VTOC. This makes Solaris actualy run on top of an OpenBSD control domain. Installing from CD needs some further tweaking but a network install will probably work. OpenBSD clients are still happy.
2011-01-06reset SIGCHLD handler to SIG_DFL when execuring LocalCommand;Damien Miller
ok markus@
2011-01-06For very large operations in randomread(), use a local rc4 instanceTheo de Raadt
much like arc4random_buf_large does, but without re-initializing it every 8K. ok tedu
2011-01-06regress test for LocalCommand %n expansion from bert.wesarg ATDamien Miller
googlemail.com; ok markus@
2011-01-06unbreak %n expansion in LocalCommand; patch from bert.wesarg ATDamien Miller
googlemail.com; ok markus@
2011-01-06when exiting due to ServerAliveTimeout, mention the hostname that causedDamien Miller
it (useful with backgrounded controlmaster)
2011-01-06Update CGI to 3.51, which includes a better fix for SA42443,Todd C. Miller
"multipart_init()" HTTP Header Injection Vulnerability.
2011-01-06Remove dead links.Damien Bergamini
Atheros have reworked their website.
2011-01-06Remove dead links.Damien Bergamini
Atheros have reworked their website.
2011-01-06indicate the number of spatial streams along with the numberDamien Bergamini
of Tx/Rx chains.
2011-01-06only athn at uhub (not pci or cardbus) needs firmloadDamien Bergamini
2011-01-06cleanup athn_usb_rx_frame().Damien Bergamini
remove padding after 802.11 header if any.
2011-01-06implement fast channel change.Damien Bergamini
this dramatically reduces the number of register reads/writes and thus the number of context switches when changing channel. makes scanning much faster.
2011-01-06Solaris insists on getting the right sequence numbers in DRING_DATA messagesMark Kettenis
and it seems we were off by one.
2011-01-06create STA entry for our BSS upon association.Damien Bergamini
update Rx filter after association. move RECV_START command outside of rx_enable since rx_enable callback is not allowed to fail.
2011-01-06init and destory the bufq in the ioctl handler, asThordur I. Bjornsson
the softc is zero'ed when the vnd is unconfigured; otherwise we blow up when configuring a vnd the second time since the bufq structure is kaputt. found by and OK krw@
2011-01-06rephrase fsck question and default to 'n'; ok krw@ henning@ stsp@Otto Moerbeek
2011-01-06be more precise about the modelJasper Lievisse Adriaanse
2011-01-06document that all *random nodes supply data nowTheo de Raadt
2011-01-06make all /dev/*random nodes respond; in fact, don't even worry aboutTheo de Raadt
the minor number at all. The chances of an application ignoring the error on /dev/random are *greater* than the risk of an application getting bad data from it. ok dlg tedu kjell
2011-01-06Ugly hack, call session_schedule in the task pdu callback handler.Claudio Jeker
Without this accessing both LU on my iscsi target will lock up because tasks a queued but no longer scheduled. We need a better task scheduler but this allows me to run iogen on both partitions without locking up.
2011-01-06Pass the magic LUN -1 to VSCSI_REQPROBE so that all LU are probedClaudio Jeker
by the midlayer. With help from dlg@
2011-01-06syncTheo de Raadt
2011-01-06Add minimal LUN handling. Currently only single level LUN addressing isClaudio Jeker
supported because the vscsi ioctl interface is limited to that. Seems to work according to my iscsi target having 2 units per target. OK dlg@
2011-01-06add another RT3070 that works.Jasper Lievisse Adriaanse
2011-01-06dst my point to memory inside rt so move the check up before theClaudio Jeker
rtfree(rt). Without this the sp_protocol on RTM_DELETE is garbage and rtsocket user that restrict the AF of the socket (like ospfd) will not see a single one of the RTM_DELETE. OK henning@, dlg@
2011-01-06Minor style nitClaudio Jeker
2011-01-06Put htons() around ip_randomid() for pf scrub random-id to make itAlexander Bluhm
consistent with the network stack. ok mcbride@ henning@
2011-01-06Do not assign m->m_pkthdr.rdomain before m was allocated.Claudio Jeker
Fix for rev 1.37 commit which would crash when slip(4) is used. Problem found the hard way by Henri Kemppainen.
2011-01-06sync athn(4);Jason McIntyre