summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* ALTQ support for re(4).mlaier2005-03-122-7/+16
| | | | | | Submitted by: Chris Dionissopoulos, Theo Schlossnagle PR: kern/78681 MFC after: 2 weeks
* In uart_cpu_getdev_console() when determinig whether we should usemarius2005-03-121-4/+6
| | | | | | | | | | | | | | | | a serial console anyway because input-device is set to keyboard and output-device is set to screen but no keyboard is plugged in don't assume that a device node for the input-device alias exists. While this is true for RS232 keyboards (the node of the SCC and UART respectively which controls the keyboard doesn't disappear when no keyboard is plugged in) this assumption breaks for USB keyboards. It's most likely also not true for PS/2 keyboards but OFW doesn't reliably switch to a serial console when the potential keyboard is a PS/2 one which isn't plugged in so this couldn't be verified properly. Reported by: Will Andrews <will@csociety.org>, obrien MFC after: 1 week
* Function jailed() looks into ucred strcture, so be sure ucred is not NULL.pjd2005-03-121-4/+4
| | | | | Reviewed by: rwatson MFC after: 1 week
* Clean up a bit.pjd2005-03-121-11/+12
| | | | | Reviewed by: rwatson MFC after: 1 week
* Extend the coverage of the accept and socket mutexes in soisconnected()rwatson2005-03-122-6/+6
| | | | | | so that the socket lock is held over the test-and-set removal of the accept filter option during connect, and the two socket mutex regions (transition to connected, perform accept filter) are combined.
* Add a sysctl net.link.log_link_state_change, which allows toglebius2005-03-121-5/+13
| | | | | | suppress logging of interface link state changes. Requested by: sam, kan
* Move the logic implementing retrieval of the SO_ACCEPTFILTER socket optionrwatson2005-03-123-18/+29
| | | | | | | from uipc_socket.c to uipc_accf.c in do_getopt_accept_filter(), so that it now matches do_setopt_accept_filter(). Slightly reformulate the logic to match the optimistic allocation of storage for the argument in advance, and slightly expand the coverage of the socket lock.
* Fix a terrible braino in last commit. Put kern.debug back to /var/log/messagesglebius2005-03-121-2/+2
| | | | and do exactly what last commit message described.
* Part two of post-SMPng cleanup of accept filter registration: perform allrwatson2005-03-121-34/+16
| | | | | allocation up front before grabbing the socket mutex and doing the registration work. The result is a lot cleaner.
* - Fix device names for snd_vibes(4) and snd_via82c686(4).simon2005-03-121-3/+3
| | | | | | - Bump copyright year. MFC after: 3 days
* Don't build the nve on pc98.nyan2005-03-121-1/+1
|
* MFi386: revision 1.217.nyan2005-03-123-9/+0
|
* Due to a CVS misfire, I ended up committing the wrong version of this.obrien2005-03-121-3/+7
|
* MFCi386: Prevent integer underflow that could result in all memory beingscottl2005-03-121-3/+9
| | | | consumed.
* Guard against an integer underflow that could cause busdma to eat up allscottl2005-03-121-3/+9
| | | | | | | available RAM. This also results in the global bounce page limit being applied to zones instead of globally. Submitted by: Petr Lampa (in part)
* Adding new device ID for BCM5751M support.avatar2005-03-122-0/+3
| | | | | Submitted by: FUJITA Kazutoshi <fujita at soum dot co dot jp> Reviewed by: sam (mentor)
* Fix bin/pax doesn't wait for compress/gzip before exiting.obrien2005-03-121-4/+6
| | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> Obtained from: OpenBSD (commited fix to PR 3455)
* Used unsigned version.obrien2005-03-121-1/+1
| | | | Submitted by: jmallett
* Fix kernel build on 64-bit machines.obrien2005-03-121-1/+1
|
* Fix a long-standing bug in alpha's implementation of busdma. We need tomux2005-03-121-4/+4
| | | | | | | | | | | OR the physical address with alpha_XXX_dmamap_or to get the DMA address, like the name of the variable suggests. However, while we were doing this correctly in the alpha_XXX_dmamap() macro, the busdma code added the variable to the physical address instead of or'ing it. Fortunately and if my math is not entirely wrong, you would need more than 128GB of RAM and a device able to do DMA in 64bits to experience the bug. Spotted by: cognet
* FreeBSD consumer bits of the nForce MCP NIC binary blob.obrien2005-03-128-0/+1917
| | | | | | | Demanded by: DES Encouraged by: scottl Obtained from: q@onthenet.com.au (partially) KNF'ed by: obrien
* This commit was generated by cvs2svn to compensate for changes in r143439,obrien2005-03-127-0/+1975
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import the nForce MCP NIC bits. This is version 1.0-0301.obrien2005-03-127-0/+1975
| | | | | Demanded by: DES Encouraged by: scottl
* Replace my previous change for 32 bit systems with hz > 169 with Bruce'speter2005-03-121-10/+11
| | | | simpler one.
* Make the tty vmin/vtime timeouts work for hz > 169 on 32 bit machines.peter2005-03-121-7/+7
|
* Correct a last-minute thinko. Instead of copying the nul with the string,njl2005-03-111-1/+1
| | | | nul-terminate the dp->d_name directly and only copy the string.
* The mbnambuf routines combine multiple substrings into a singlenjl2005-03-111-36/+41
| | | | | | | | | | | | | | | | | | | | | | long filename. Each substring is indexed by the windows ID, a sequential one-based value. The previous code was extremely slow, doing a malloc/strcpy/free for each substring. This code optimizes these routines with this in mind, using the ID to index into a single array and concatenating each WIN_CHARS chunk at once. (The last chunk is variable-length.) This code has been tested as working on an FS with difficult filename sizes (255, 13, 26, etc.) It gives a 77.1% decrease in profiled time (total across all functions) and a 73.7% decrease in wall time. Test was "ls -laR > /dev/null". Per-function time savings: mbnambuf_init: -90.7% mbnambuf_write: -18.7% mbnambuf_flush: -67.1% MFC after: 1 month
* Remove diffs to i386 version that came in via the compiler support ifdefs.peter2005-03-1110-28/+37
| | | | | This changes things like whitespace, inconsistent use of #ifndef vs #if !defined(), different macro argument orders, mismatched comments, etc.
* MFi386: reduce apic clock interrupt ratepeter2005-03-111-15/+5
|
* Whitespace sync with amd64. (Rather than re-add the extra blank linespeter2005-03-112-6/+0
| | | | on amd64, I'm removing them here)
* gbde(8) is also rejndael user.ume2005-03-112-3/+1
| | | | Reported by: phk
* Fix a mismerge of i386 rev 1.209peter2005-03-111-1/+1
|
* Match i386 rev 1.38 with __cplusplus supportpeter2005-03-111-0/+8
|
* Remove an OBE set of comments, fix a minor whitespace nit while here.peter2005-03-111-8/+1
|
* First step in simplifying accept filter socket option logic in therwatson2005-03-111-17/+24
| | | | | post-SMPng world order. Centralize handling of the socket option clear case in do_setopt_accept_filter().
* reorder ath_rate_onoe to after ath_rate_sample so it gets used as thesam2005-03-111-1/+1
| | | | | default rate control algorithm; this should be done differently but for now use this simple solution
* Remove an additional commented out reference to a possible future sxrwatson2005-03-111-1/+0
| | | | lock.
* just use crypto/rijndaelume2005-03-111-1/+2
| | | | (I forgot to commit this in my previous commit)
* just use crypto/rijndael, and nuke opencrypto/rindael.[ch].ume2005-03-116-1293/+12
| | | | | | the two became almost identical since latest KAME merge. Discussed with: sam
* When setting up a socket in socreate(), there's no need to lock therwatson2005-03-111-3/+1
| | | | | | | | | | socket lock around knlist_init(), so don't. Hard code the setting of the socket reference count to 1 rather than using soref() to avoid asserting the socket lock, since we've not yet exposed the socket to other threads. This removes two mutex operations from each socket allocation.
* Remove suggestive sx_init() comment in soalloc(). We will have somethingrwatson2005-03-111-1/+0
| | | | like this at some point, but for now it clutters the source.
* integrate rijndael-alg-fst.h into rijndael.h.ume2005-03-115-44/+14
|
* Adding missing module dependency. This should fix the undefined symbolavatar2005-03-111-0/+1
| | | | | | error(ath_hal_computetxtime) during module loading. Reviewed by: sam (mentor)
* stop including rijndael-api-fst.h from rijndael.h.ume2005-03-118-10/+7
| | | | this is required to integrate opencrypto into crypto.
* The SO_NOSIGPIPE socket option allows a user process to mark a socketrwatson2005-03-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so that the socket does not generate SIGPIPE, only EPIPE, when a write is attempted after socket shutdown. When the option was introduced in 2002, this required the logic for determining whether SIGPIPE was generated to be pushed down from dofilewrite() to the socket layer so that the socket options could be considered. However, the change in 2002 omitted modification to soo_write() required to add that logic, resulting in SIGPIPE not being generated even without SO_NOSIGPIPE when the socket was written to using write() or related generic system calls. This change adds the EPIPE logic to soo_write(), generating a SIGPIPE signal to the process associated with the passed uio in the event that the SO_NOSIGPIPE option is not set. Notes: - The are upsides and downsides to placing this logic in the socket layer as opposed to the file descriptor layer. This is really fd layer logic, but because we need so_options, we have a choice of layering violations and pick this one. - SIGPIPE possibly should be delivered to the thread performing the write, not the process performing the write. - uio->uio_td and the td argument to soo_write() might potentially differ; we use the thread in the uio argument. - The "sigpipe" regression test in src/tools/regression/sockets/sigpipe tests for the bug. Submitted by: Mikko Tyolajarvi <mbsd at pacbell dot net> Talked with: glebius, alfred PR: 78478 MFC after: 1 week
* Fix typos in comments.stefanf2005-03-111-3/+3
|
* Use socklen_t where appropriate.stefanf2005-03-115-12/+18
|
* Simplify the print routines by using LST_FOREACH instead of Lst_ForEachharti2005-03-113-64/+66
| | | | | | and inlining the small printing utility functions. Create a function that can be used to produce printable representations of flag words.
* Check the return value of shutdown().rwatson2005-03-111-4/+8
|
* Remove leading underscores from the pathname defines. All identifiersharti2005-03-113-25/+29
| | | | | with leading underscore followed by an uppercase letter are in the implementation namespace.
OpenPOWER on IntegriCloud