summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-04-17Really try to schedule clock ticks at fixed intervals. Make sure hardclock()Mark Kettenis
gets called for every clock tick, even if we miss one.
2008-04-17Teach security(8) to check for world-readable hostname.if files.Stuart Henderson
An increasing number of types of these files (e.g. ppp, carp and wlan adapters) may contain secrets. ok deraadt oga johan
2008-04-17save some space by making use of the WEP CRC table from net80211Damien Bergamini
and use the ieee80211_crc_update() function too. not tested as I do not have a wi(4) but I see no reason why it would not work. "Just be brave" deraadt@
2008-04-17before using them, force hostname.* files to be unreadable by worldTheo de Raadt
first version from todd, ok millert
2008-04-17make it more apparent that when we are dealing with 16 bit registersTheo de Raadt
(not a series of 8 bit registers), the bytes come off the wire in big-endian order
2008-04-17do not blindly call ieee80211_get_hdrlen() in rt2860_rx_intr().Damien Bergamini
we may end up passing control frames (ps-poll or others) which is not supported by ieee80211_get_hdrlen(). first found by pedro la peu, reminded by jsg@ closes kernel/5750
2008-04-17call ieee80211_crc_init() only once, when the first 802.11 deviceDamien Bergamini
attaches instead of at every attach. discussed with deraadt@
2008-04-17use sizeof(thing) instead of hard-coding itTheo de Raadt
2008-04-17use sizeof(thing) instead of hard-coding itTheo de Raadt
2008-04-17remove the CONFIGURATION section from the wireless pages:Jason McIntyre
the addition of the wpa options have shown just how unwieldy it had become, it's already in ifconfig(8) anyway, and "ifconfig -m" will get the relevant ones. ok dlg jsg
2008-04-17remove a word i misinterpreted;Jason McIntyre
2008-04-17force mode for hostname.* files to 600; ok krwTheo de Raadt
2008-04-17Correct a typo:Owain Ainsworth
tsleep -> msleep from Paul de Weerd, Thanks!
2008-04-16syncTheo de Raadt
2008-04-16Use ntohs() to swap the raw i2c data to native format; tested by sthenTheo de Raadt
2008-04-16permit _ in the middle of a DNS name componentTheo de Raadt
2008-04-16mkfifo makes fifos, not directories; from Ben CalvertJason McIntyre
while here, make the description of -m more consistent for mkdir, mkfifo, and mknod. add a touch of .Ex for mkdir too.
2008-04-16Tune isoc maximal transfer size to a better value. Makes all availableMarcus Glocker
resolutions on my cam work.
2008-04-16more efficient use of mbufs in nfsm_uiotombuf().Damien Bergamini
allocate a mbuf cluster only if length is greater than MLEN instead of MINCLSIZE. ok blambert@, thib@
2008-04-16- wpa-psk is section 8, not 1Jason McIntyre
- one more passphrase tweak
2008-04-16Support the pcf8584 variant found on the u25/45.Mark Kettenis
2008-04-16Turns out getpropstring() returns an empty string if a property is missingMark Kettenis
instead of NULL. Makes rtc(4) really work on the u25. tested by mikeb@
2008-04-16Kernel implementation of the 4-way handshake and group-keyDamien Bergamini
handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
2008-04-16pass-phrase -> passphrase, in keeping with the rest of the docs;Jason McIntyre
2008-04-16Oops, decrease debug log level back to 1.Marcus Glocker
2008-04-16Some formatting nits. No functional change.Owain Ainsworth
2008-04-16Use the timeout(9) API the right way: Don't initialize the timeoutMichael Knudsen
cookie all the time, and only call timeout_del if we're not going to timeout_add right away. Testing by johan@, oga@, sthen@, and possibly some more people (thanks). Ok krw@, oga@, sthen@.
2008-04-16Replace handrolled hashes with a splay tree, while there plug a memleakPierre-Yves Ritschard
inherited from the original drm driver. input and ok oga@.
2008-04-16Make sure tickcmpr_set() always writes a time in the future.Mark Kettenis
2008-04-16Start to make device initialization automatic instead all the staticMarcus Glocker
games. Tested by robert@ and myself
2008-04-16Mention m5819, m5823 and bq4802.Mark Kettenis
2008-04-16Redo/clarify the logic for storing options in the various buffers.Kenneth R Westerback
While there, bail out quickly if no options can be stored, and avoid overflow buffers if building a bootp reply. Henning looked and didn't get upset. millert@ tested it for a few days and liked the look of it. canacar@ glanced at it.
2008-04-15Add workaround for UltraSPARC-II errata, where writes to %tick_cmpr wouldMark Kettenis
sometimes fail, which would result in the periodic clock interrupts on a CPU stop. Spotted in a NetBSD commit message, loosely based on code in OpenSolaris.
2008-04-15Add support for the Texas Instruments bq4802 real-time clock found on theMark Kettenis
Ultra 25 and Ultra 45.
2008-04-15fix XrTheo de Raadt
2008-04-15mention LM76; stop being exact about incrementsTheo de Raadt
2008-04-15Take a shot at LM76 support (13 bit temperature, 0.065 degC per LSB) forTheo de Raadt
when we finally find one of these devices. looked at by kettenis..
2008-04-15It turns out the mysterious chip with the heatsink glued on, found on mgxMiod Vallat
video boards, is a known entity, so add support for 2d acceleration with the help of the X code (which makes baby Jesus cry). The blitter is fast enough to make a cgsix feel as slow as a cgthree in comparison.
2008-04-15describe why fd passing is now so fucked up, and who's fault it isTheo de Raadt
2008-04-15syncTheo de Raadt
2008-04-15fix a comment. no binary change.Damien Bergamini
2008-04-15link wpa-psk(8) to the buildDamien Bergamini
2008-04-15welcome wpa-psk(8).Damien Bergamini
ok deraadt@
2008-04-15Fix braino in mgx_loadcmap() invocation.Miod Vallat
2008-04-15Oops, it's a bit too early for -Wvariable-decl on sparc.Miod Vallat
2008-04-15- make it clear that hosts.lpd follows the same syntax that hosts.equiv(5)Antoine Jacoutot
inputs from jmc@ "looks ok" beck@ (similar older diff), "fine by me" jmc@
2008-04-14Introduce macros to switch to normal and alternate globals and switch toMark Kettenis
use the .section based mechanism to patch them up for sun4v.
2008-04-14Rework NFS mbuf write routines:Bret Lambert
nfsm_uiotombuf(): - no meaningful return, function becomes void - replace frankensteined uiomove/MGET with actual call to uiomove nfsm_strtmbuf(): - no meaningful return, becomes void - rename and reorder parameters to be consistent with other functions - becomes wrapper to nfsm_uiotombuf nfsm_buftombuf(): - new function; unused but slated for future use - wrapper to nfsm_uiotombuf As a bonus, making these functions void removes much unneeded code and garbage collects `magic' variable t2 which was only used (invisibly) by the macros from nfsm_subs.h Preps the way for removing much more NFS goo... testing by myself, thib@ and merdely@ ok thib@
2008-04-14move the cache lookup code into a function, instead repeatingThordur I. Bjornsson
it twice, makes this nicer as a bonus; From NetBSD. tested by johan@, ok blambert@.
2008-04-14garbage collect the now unused spec_ebadf();Thordur I. Bjornsson
ok dlg@