summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Don't panic if there are more than 255 interfaces in the system.ru2004-01-231-1/+2
|
* Allow the socket buffer sizes to be controlled via sysctl(8).ru2004-01-231-0/+4
| | | | MFC after: 3 days
* Remove the MD5_KEY debugging toolphk2004-01-231-33/+0
|
* Remove no longer necessary debug printfsphk2004-01-231-6/+0
|
* Fix breakage in PIO multisector support.sos2004-01-231-1/+0
|
* Copy comment about caller check from ffs_read to ffs_extread, don'tache2004-01-231-2/+6
| | | | check for uio_resid < 0 here too.
* Fix various panic() strings to reflect true function name to allowache2004-01-231-11/+12
| | | | | | easy grep. Small code reorganization to look more logic. Copy ffs_write check from prev. commit to ffs_extwrite.
* ffs_read:ache2004-01-231-7/+14
| | | | | | | | | | | | | | | | | | | Replace wrong check returned EFBIG with EOVERFLOW handling from POSIX: 36708 [EOVERFLOW] The file is a regular file, nbyte is greater than 0, the starting position is before the end-of-file, and the starting position is greater than or equal to the offset maximum established in the open file description associated with fildes. ffs_write: Replace u_int64_t cast with uoff_t cast which is more natural for types used. ffs_write & ffs_read: Remove uio_offset and uio_resid checks for negative values, the caller supposed to do it already. Add comments about it. Reviewed by: bde
* Remove leftover FREE() from changes in rev 1.50.andre2004-01-231-1/+0
| | | | Noticed by: Jun Kuriyama <kuriyama@imgsrc.co.jp>
* Unbreak amd64: Rename calls from panic to __panicpeter2004-01-231-3/+3
|
* Split the overloaded variable 'win' into two for their specific purposes:andre2004-01-221-21/+22
| | | | | | | | recwin and sendwin. This removes a big source of confusion and makes following the code much easier. Reviewed by: sam (mentor) Obtained from: DragonFlyBSD rev 1.6 (hsu)
* Move the reduction by one of the syncache limit after the zone has beenandre2004-01-221-1/+1
| | | | | | | allocated. Reviewed by: sam (mentor) Obtained from: DragonFlyBSD rev 1.6 (hsu)
* Remove an unused variable and put the sockaddr_in6 onto the stack insteadandre2004-01-221-26/+14
| | | | | | | of malloc'ing it. Reviewed by: sam (mentor) Obtained from: DragonFlyBSD rev 1.6 (hsu)
* Write 100 times for tomorrow:phk2004-01-221-2/+3
| | | | "Always print time_t as %jd, you never know what width it has"
* Fix the PCI attach routine to properly setup the IRQ and port resourcejhb2004-01-221-13/+20
| | | | | | | | | rid's and to deallocate resources if a failure occurs during attach. This patch also fixes the driver to return failure if bus_alloc_resource() for the IRQ fails rather than panic'ing on the next line by passing a NULL resource to bus_setup_intr(). The other attachments already do all this. Submitted by: Jun Su <csujun@263.net>
* Add missing free() in exception handlers.simokawa2004-01-222-2/+3
| | | | Reported by: Stanford Metacompilation research group
* Fix generation of random multicast MAC address.rse2004-01-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case no real/physical IEEE 802 address is available, both the expired "draft-leach-uuids-guids-01" (section "4. Node IDs when no IEEE 802 network card is available") and RFC 2518 (section "6.4.1 Node Field Generation Without the IEEE 802 Address") recommend (quoted from RFC 2518): "The ideal solution is to obtain a 47 bit cryptographic quality random number, and use it as the low 47 bits of the node ID, with the _most_ significant bit of the first octet of the node ID set to 1. This bit is the unicast/multicast bit, which will never be set in IEEE 802 addresses obtained from network cards; hence, there can never be a conflict between UUIDs generated by machines with and without network cards." Unfortunately, this incorrectly explains how to implement this and the FreeBSD UUID generator code inherited this generation bug from the broken reference code in the standards draft. They should instead specify the "_least_ significant bit of the first octet of the node ID" as the multicast bit in a memory and hexadecimal string representation of a 48-bit IEEE 802 MAC address. This standards bug arised from a false interpretation, as the multicast bit is actually the _most_ significant bit in IEEE 802.3 (Ethernet) _transmission order_ of an IEEE 802 MAC address. The standards authors forgot that the bitwise order of an _octet_ from a MAC address _memory_ and hexadecimal string representation is still always from left (MSB, bit 7) to right (LSB, bit 0). Fortunately, this UUID generation bug could have occurred on systems without any Ethernet NICs only.
* Only enforce -fno-strict-aliasing for optimization levels thatru2004-01-221-1/+4
| | | | | | imply -fstrict-aliasing. Reviewed by: bde
* Make proc's kg_nice/ki_nice explicitly signed for PPC. This is agrehan2004-01-222-2/+2
| | | | | | | | no-op on {i386/alpha/ia64/sparc64} where chars are signed by default. Should help ARM and S390 which also suffer from this. Tested on: ppc, i386, objdump disasm before/after diffs Reviewed by: obrien, bde (a while back)
* Fix definition of IFM_MODE, which should be refrected the change ofonoe2004-01-221-1/+1
| | | | | IFM_IEEE80211_ mode. Also ifconfig(8) must be recompiled. Pointed out by Sam Leffeler.
* Add suspend and resume methods. I'm not certain this work correctlywpaul2004-01-221-0/+36
| | | | | since I can't easily test them on my laptop right now, but they should do the right thing.
* Add support for TCP/IP checksum offload.wpaul2004-01-222-25/+217
| | | | No, really.
* If a transfer to or from a floppy disk crosses a 64k boundary, we have tojhb2004-01-211-2/+2
| | | | | | | | | | | | | | | use a bounce buffer for the actual transfer to avoid crossing a 64k boundary. To do this, we malloc a buffer twice as big as we need and then find an aligned block within that buffer to do the transfer. The check to see which part of the block we use used the wrong variable for part of the condition meaning that in certain edge cases we would ask the BIOS to cross a 64k boundary. The BIOS request would then fail resulting in file transfers that just magically fail in the middle without any apparent reason. Specifically, my tests for the splitfs boot floppies managed to trigger this edge case. MFC after: 1 week X-MFC-info: along with fixes to libstand filesystems
* Fix multicast and promiscuous mode handling for Yukon devices.wpaul2004-01-212-100/+202
| | | | Submitted by: Jung-uk Kim <jkim@niksun.com>
* Calculate the right register offset when clearing TX buffer pointerwpaul2004-01-211-1/+2
| | | | | | registers in rl_stop(). PR: kern/60250
* Add structures and definitions for task offload (TCP/IP checksum,wpaul2004-01-211-0/+141
| | | | IPSec, TCP large send).
* Add a sysctl (default: off) which enables a log(LOG_INFO...) warningphk2004-01-211-10/+19
| | | | if the clock is stepped.
* Simplify timing gymnastics a bit.phk2004-01-211-2/+2
|
* Make sure to trap failures correctly in ndis_get_info() and ndis_set_info().wpaul2004-01-211-0/+6
|
* Remove #ifdef for ancient source FreeBSD compat.phk2004-01-211-11/+0
|
* Don't leak softc's when destroying interfaces.brooks2004-01-211-0/+3
| | | | | | Init the softc list when loaded. Noticed by: Maurycy Pawlowski-Wieronski <maurycy at fouk dot org>
* Fix style(9) of my previous commit.cperciva2004-01-211-1/+1
| | | | | Noticed by: nate Approved by: nate, rwatson (mentor)
* Reduce gratuitous includes: don't include jail.h if it's not needed.rwatson2004-01-217-7/+0
| | | | | | | Presumably, at some point, you had to include jail.h if you included proc.h, but that is no longer required. Result of: self injury involving adding something to struct prison
* Allow devfs path rules to work on directories. Without this fix,cperciva2004-01-211-1/+2
| | | | | | | | devfs rule add path fd unhide is a no-op, while it should unhide the fd subdirectory. Approved by: phk, rwatson (mentor) PR: kern/60897
* MFi386: revisions from 1.1116 to 1.1119.nyan2004-01-211-69/+45
| | | | Remove NEWCARD related devices.
* Merged from sys/dev/sio/sio.c revision 1.418.nyan2004-01-212-2/+6
|
* Sync to pccarddevs 1.81.ume2004-01-211-1/+4
|
* There is PANASONIC KXLC005 which has another product id.ume2004-01-211-0/+1
|
* Setting pccb->ccb_h.status to CAM_REQ_CMP one time is enough.cognet2004-01-211-1/+0
|
* The gdbinit.${MACHINE_ARCH} script may not exist.ru2004-01-211-0/+2
|
* Add syscons options and enable USB, since there is no conflict betweengrehan2004-01-211-12/+21
| | | | | the OpenFirmware console and the syscons console when using a USB keyboard.
* Add required GFB options as well as one for ofw/syscons.grehan2004-01-211-0/+6
|
* Add syscons files, and also generate a syscons font since Applegrehan2004-01-211-0/+19
| | | | SVGA adapters don't have one available in their ROMs.
* - Catch up with panic __LINE__/__FILE__ changes by moving panic callsgrehan2004-01-214-24/+16
| | | | | out of asm. - remove some long-dead code from machdep.c
* A syscons implementation using the 8-bit framebuffer set up bygrehan2004-01-216-0/+927
| | | | | | | OpenFirmware. Not at all optimized, but provides a PC-style user-experience. Tested on revA imac, B&W G3, 2k iBook, and G4 eMac.
* __powerpc__ conditional code for the syscons OpenFirmware/PPC framebuffer.grehan2004-01-216-15/+34
| | | | | | | | | | | | Took the opportunity to reduce __i386__ || __ia64__ || __amd64__ || __sparc64__ || __powerpc__ to !__alpha__ reviewed by: gallatin
* Update 128-bit long double constants to match what is expectedgrehan2004-01-211-9/+10
| | | | by libc
* Fix ipip_output() to always set *mp to NULL on failure, even if 'm'sam2004-01-202-3/+6
| | | | | | | | | | is NULL, otherwise ipsec4_process_packet() may try to m_freem() a bad pointer. In ipsec4_process_packet(), don't try to m_freem() 'm' twice; ipip_output() already did it. Obtained from: netbsd
* fix build after KAME changessam2004-01-201-0/+4
|
* Merge from DragonFlyBSD rev 1.10:hsu2004-01-202-12/+10
| | | | | | | date: 2003/09/02 10:04:47; author: hsu; state: Exp; lines: +5 -6 Account for when Limited Transmit is not congestion window limited. Obtained from: DragonFlyBSD
OpenPOWER on IntegriCloud