damien [Mon, 4 Aug 2008 18:55:08 +0000 (18:55 +0000)]
do not count ethernet header twice in if_obytes stats.
do not count address family field twice in tun's if_obytes stats.
ok henning@ reyk@ deraadt@ for the ethernet bits.
ok deraadt@ for the tun bits.
otto [Mon, 4 Aug 2008 18:46:32 +0000 (18:46 +0000)]
refuse to run on block devices; prompted by marco; ok marco@ millert@
deraadt@
millert [Mon, 4 Aug 2008 18:42:09 +0000 (18:42 +0000)]
Accept 'q' or 'Q' for quit at the --More-- prompt.
millert [Mon, 4 Aug 2008 16:34:20 +0000 (16:34 +0000)]
Update to BIND 9.4.2-P2 and adapt our dynamic select changes. OK deraadt@
reyk [Mon, 4 Aug 2008 15:58:13 +0000 (15:58 +0000)]
fix extended partition support by handling chained EBRs correctly
(using a recursion limit). now OpenBSD can be installed in a
subsequent DOS/Linux-compatible extended partition.
ok krw@ deraadt@
sobrado [Mon, 4 Aug 2008 08:29:17 +0000 (08:29 +0000)]
right spelling for Guinea-Bissau and Songkran;
from comet-berkeley <comet@transbay.net> on FreeBSD PR conf/126199,
and Frantisek Holop.
fixes PR #5794.
ok jmc@
sobrado [Mon, 4 Aug 2008 07:32:51 +0000 (07:32 +0000)]
"-a" is used if no arguments are given to wsconsctl.
tweaked by jmc@.
ok jmc@
jmc [Mon, 4 Aug 2008 07:08:23 +0000 (07:08 +0000)]
improve SEE ALSO links; from Ingo Schwarze
ok otto millert
miod [Mon, 4 Aug 2008 04:26:42 +0000 (04:26 +0000)]
Properly output machdep.chipset values on alpha models without pci buses;
ok deraadt@
miod [Mon, 4 Aug 2008 04:21:44 +0000 (04:21 +0000)]
sync
millert [Sun, 3 Aug 2008 21:53:12 +0000 (21:53 +0000)]
Don't print a warning when the random device cannot be opened if
we have a pre-chroot random device. OK deraadt@ kettenis@
otto [Sun, 3 Aug 2008 21:43:19 +0000 (21:43 +0000)]
spread the unwritten wisdom newfs should be run on raw devs, not on
block devs; ok marco@ jmc@ millert@ deraadt@
kettenis [Sun, 3 Aug 2008 21:31:53 +0000 (21:31 +0000)]
Adjust for change in 'struct sysent'. From Alexander Holupirek.
Fixes PR 5898.
kettenis [Sun, 3 Aug 2008 18:08:54 +0000 (18:08 +0000)]
Make buf_dealloc_mem() remove the mapping even if b_pobj is NULL. Otherwise
bread_cluster() leaks mappings which causes grief on VAC architectures.
Fixes bsd.rd on hppa and armish.
ok art@, beck@
martynas [Sun, 3 Aug 2008 14:30:48 +0000 (14:30 +0000)]
make U (abbreviation of unread) work as man page says
ok millert@, jmc@. sure theo
krw [Sun, 3 Aug 2008 14:18:00 +0000 (14:18 +0000)]
Sparc miniroot hasn't worked for a while, since the sed code to find
the root disk was broken. Simplify and fix said sed code. Problem
noted by okan@ and others, diagnosed by deraadt@, sed suggestions from
nordin@, jmc@, fgsch@, guenther@.
'get something in before sparc gets done' deraadt@
fgsch [Sun, 3 Aug 2008 02:02:14 +0000 (02:02 +0000)]
revert part of rev. 1.65 where we set the address earlier. this seems
to cause issues as per netbsd pr/39023. deraadt@ yuo@ ok.
mglocker [Sat, 2 Aug 2008 21:52:37 +0000 (21:52 +0000)]
Use correct terms as in the specs;
"fragment" gets replaced by "sample".
"sample" gets replaced by "frame".
A sample is a peace of a frame (final image). No functional changes.
OK deraadt@
mglocker [Sat, 2 Aug 2008 20:08:49 +0000 (20:08 +0000)]
Better wording for a comment.
mglocker [Sat, 2 Aug 2008 20:05:28 +0000 (20:05 +0000)]
Spacing, sorting, and remove an unused prototype.
mglocker [Sat, 2 Aug 2008 17:30:31 +0000 (17:30 +0000)]
Woops, remove #undef which was committed by mistake.
mglocker [Sat, 2 Aug 2008 16:34:45 +0000 (16:34 +0000)]
Don't print error message if GET_DEF request fails, since this is common
for some devices and we will fail back to GET_CUR then.
oga [Sat, 2 Aug 2008 16:09:29 +0000 (16:09 +0000)]
compile inteldrm and radeondrm in GENERIC by default, but disabled.
This will let them get some more testing. Re-order things a little while
i'm here.
prompted by and ok deraadt@.
oga [Sat, 2 Aug 2008 16:03:05 +0000 (16:03 +0000)]
Make the drm attach messages a lot prettier.
the DRM_{INFO,ERROR,DEBUG} printf macros still need some __VA_ARGS__ love.
reyk@ and marco@ liked this, prompted by deraadt.
oga [Sat, 2 Aug 2008 15:50:34 +0000 (15:50 +0000)]
make the drm unsupported printf more in line with how the rest of them
work.
ok deraadt@
miod [Sat, 2 Aug 2008 13:48:09 +0000 (13:48 +0000)]
Ignore the ata channel on 164SX when controller is the built-in one, when
looking for the boot device; PR #5895
henning [Sat, 2 Aug 2008 12:34:37 +0000 (12:34 +0000)]
do not write the pf state key pointer to the pkhdr.
effectively disables state key linking and pcb linking - unfortunatly,
there seems to be a bug somewhere in there or triggered by it that
we haven't tracked down yet, so we disable this for now to be on the safe
side for release.
lots of testing and analysis from todd and david.
mglocker [Sat, 2 Aug 2008 12:32:23 +0000 (12:32 +0000)]
If a format descriptor doesn't contain any frame descriptors even if it
claims to (as seen on the M$ LifeCam NX6000), abort further processing.
Safes us from potential NULL pointer derefs.
stefan [Sat, 2 Aug 2008 11:39:38 +0000 (11:39 +0000)]
Fix integer truncation in pcread() and ptcwrite(). ok miod, otto, deraadt.
jmc [Sat, 2 Aug 2008 09:17:46 +0000 (09:17 +0000)]
fixes from Alexander Holupirek, documentation/5899:
- fix a typo in lkm.4 (different fix used)
- document securelevel(7) (again, different fix taken)
whilst here, some minor repair:
- no need to wrap section names in quotes
- tidy up FILES a little
- new sentence, new line
mglocker [Sat, 2 Aug 2008 08:51:25 +0000 (08:51 +0000)]
Fix typo. Reported by Maxim Belooussov.
damien [Sat, 2 Aug 2008 08:35:48 +0000 (08:35 +0000)]
do not use IEEE80211_QOS_TID. its definition in ieee80211.h is
wrong. hard-code 0xf for now. will be fixed post-release.
otto [Sat, 2 Aug 2008 08:34:36 +0000 (08:34 +0000)]
fix printf format specifiers; ok krw@ millert@ deraadt@
damien [Sat, 2 Aug 2008 08:33:21 +0000 (08:33 +0000)]
do not touch m after it has been enqueued with IFQ_ENQUEUE().
copy m_pkthdr.len and m_flags before and use that after to update
the statistics.
from altq(4) man page and for consistency with what is done in
other parts of the tree.
damien [Sat, 2 Aug 2008 08:25:59 +0000 (08:25 +0000)]
print the correct value in a debug message.
damien [Sat, 2 Aug 2008 08:24:15 +0000 (08:24 +0000)]
typo in a comment. no binary change.
damien [Sat, 2 Aug 2008 08:20:16 +0000 (08:20 +0000)]
Drop frames that are received unencrypted when WEP is on or when
WPA is on and RX protection for TA is on.
Keep track of the TX/RX protection for each node when WPA is on.
tested by djm@ (ral+wpa), ckuethe@ (ath-noenc) and krw@ (wpi<->ral+wpa).
hints from bluhm@
has been in snaps for a few days.
pointed out by bluhm@ something like 1 year ago but we did not have
the right infrastructure to fix it properly at that time.
ok deraadt@
krw [Sat, 2 Aug 2008 04:29:51 +0000 (04:29 +0000)]
whitepsace -> whitespace. From Matthew Clarke via bugs@.
deraadt [Sat, 2 Aug 2008 04:13:37 +0000 (04:13 +0000)]
usage() has to exit 1; Gleydson Soares
bluhm [Fri, 1 Aug 2008 14:19:09 +0000 (14:19 +0000)]
Document the MAKEFILE variable as unreliable.
ok jmc espie
mglocker [Fri, 1 Aug 2008 12:16:52 +0000 (12:16 +0000)]
- Use defined return values wherever possible instead inventing
custom ones.
- Define functions which use USB return values with usbd_status
instead int.
- Define functions which always return 0 with void instead int.
- (void) function calls which don't check the return code.
mglocker [Fri, 1 Aug 2008 08:20:26 +0000 (08:20 +0000)]
If no format descriptors have been found, abort attachment. Adjust some
DPRINTF and printf messages while here.
henning [Fri, 1 Aug 2008 05:08:07 +0000 (05:08 +0000)]
force route priority to RTP_DEFAULT unconditionally, effectively disabling
route prios. playing safe for 4.4-release, as not all parts of the system
deal correctly with route prios yet. ok claudio
dlg [Fri, 1 Aug 2008 01:44:20 +0000 (01:44 +0000)]
silence failures to run scsi_prevent. dmesg spam sucks.
ok krw@ marco@ miod@ deraadt@
beck [Fri, 1 Aug 2008 00:32:56 +0000 (00:32 +0000)]
This log message is an excruiciating pain in the ass when it repeats 4000 times a second on a machine you need debug log on, and is actually used as a cacheing nameserver. remove just this one line of debug log to save people's sanity
ok djm@
damien [Thu, 31 Jul 2008 20:14:17 +0000 (20:14 +0000)]
Wait much longer for clock stabilization.
From jcs@ and in accordance with what the Intel Linux driver does.
millert [Thu, 31 Jul 2008 16:44:03 +0000 (16:44 +0000)]
Update to sudo 1.6.9p17
mglocker [Thu, 31 Jul 2008 15:26:25 +0000 (15:26 +0000)]
- Don't relay on bFormatIndex as an internal array index, since this
field is unreliable and can start with any number. Use an own internal
array index instead.
- If the read buffer is too small, return a propper error to the calling
functions. Just check the buffer size if we use the read(2) method since
it doesn't affect mmap(2).
Fixes kernel crashes seen with the M$ LifeCam NX-6000 and internal
(laptop) Sonix chipsets.
Tested by jcs@ (Sonix) and myself (NX-6000).
OK deraadt@
markus [Thu, 31 Jul 2008 14:48:28 +0000 (14:48 +0000)]
don't allocate space for empty banners; report t8m at centrum.cz; ok deraadt
jmc [Thu, 31 Jul 2008 14:03:26 +0000 (14:03 +0000)]
ath(4) now in GENERIC;
canacar [Thu, 31 Jul 2008 04:24:11 +0000 (04:24 +0000)]
Do not allow negative or zero delay values from the command line,
use the same check as the -s option. Noticed by johan@
miod [Wed, 30 Jul 2008 22:02:09 +0000 (22:02 +0000)]
Give iada_modname[] room for a terminating NUL in struct ioasicdev_attach_args;
ok deraadt@
mk [Wed, 30 Jul 2008 19:41:32 +0000 (19:41 +0000)]
In the .Fn entries for timeout_add_usec/nsec, don't call the parameter
``sec''. Instead, use usec/nsec.
Agreed with/no opposition from blambert.
brad [Wed, 30 Jul 2008 18:51:52 +0000 (18:51 +0000)]
Add ath(4).
ok deraadt@
miod [Wed, 30 Jul 2008 18:08:02 +0000 (18:08 +0000)]
Do not print adapter target id on the attachment line, now that scsibus(4)
prints it. These should be the last offenders.
kjell [Wed, 30 Jul 2008 17:39:31 +0000 (17:39 +0000)]
Replace GNU tutorial with public domain one, written from scratch by
Mayukh Bose. Minor additions from me. Thanks!
miod [Wed, 30 Jul 2008 17:38:02 +0000 (17:38 +0000)]
wi@pci now works.
miod [Wed, 30 Jul 2008 17:37:44 +0000 (17:37 +0000)]
Implement bus_space_{read,write}_raw_mult_[248] correctly, it needs
endianness conversion on pci bridges.
ok deraadt@ jsing@
miod [Wed, 30 Jul 2008 17:32:30 +0000 (17:32 +0000)]
Proper interrupt values for pci interrupt pins B to D, found in some IRIX
developer documentation some time ago.
brad [Wed, 30 Jul 2008 16:47:09 +0000 (16:47 +0000)]
Check and clear the bus space mapping size instead of the bus space
handle in the detach function. Fixes compilation on sparc64.
ok reyk@
deraadt [Wed, 30 Jul 2008 16:18:16 +0000 (16:18 +0000)]
sync
deraadt [Wed, 30 Jul 2008 15:53:31 +0000 (15:53 +0000)]
repair comment
deraadt [Wed, 30 Jul 2008 15:51:01 +0000 (15:51 +0000)]
sync
deraadt [Wed, 30 Jul 2008 15:50:52 +0000 (15:50 +0000)]
add 2nd sierra MC5725 correctly
canacar [Wed, 30 Jul 2008 15:40:39 +0000 (15:40 +0000)]
Add an alternate ID for Sierra Wireless MC5725 modem, found
in a Lenovo T60, reported by Juan Delgado. ok you@, jsg@ deraadt@
canacar [Wed, 30 Jul 2008 15:07:40 +0000 (15:07 +0000)]
Call ip6_clearpktopts() on error in copypktopts() instead of freeing
every field individually.
ok claudio@ markus@ henning@ deraadt@
reyk [Wed, 30 Jul 2008 14:41:54 +0000 (14:41 +0000)]
enable ix(4) on amd64
ok deraadt@
mpf [Wed, 30 Jul 2008 10:15:35 +0000 (10:15 +0000)]
Prevent a divide by zero panic if trunkproto loadbalance is
used w/out any trunkports. Patch from Dmitri Alenitchev.
OK reyk@
jmc [Wed, 30 Jul 2008 08:32:53 +0000 (08:32 +0000)]
tweak previous; help/ok jsg yuo
jmc [Wed, 30 Jul 2008 08:29:49 +0000 (08:29 +0000)]
add missing quote; from yar@freebsd
jmc [Wed, 30 Jul 2008 08:24:47 +0000 (08:24 +0000)]
- fix spelling of Alan Shepard's name
- note that he was the first american in space (not first man)
from Derek Taylor, freebsd bin/125812
jmc [Wed, 30 Jul 2008 08:02:34 +0000 (08:02 +0000)]
various markup/grammar fixes for previous, and a missing MLINK
for remquof.3;
reyk [Wed, 30 Jul 2008 07:43:01 +0000 (07:43 +0000)]
spacing
reyk [Wed, 30 Jul 2008 07:15:39 +0000 (07:15 +0000)]
Update the RF, RFGAIN, MODE, INI, and BBGAIN initialization tables
with different versions for various ar5212 variants and add an extra
table for PCI-E devices. This fixes support for various newer devices
(like the 1st generation MacBook, T61 variants) but it still does not
work on a number of other devices.
Tested by many
ok deraadt@
damien [Wed, 30 Jul 2008 06:25:23 +0000 (06:25 +0000)]
Free the correct buffer list on failure.
From Andrew Thompson at FreeBSD.
oga [Wed, 30 Jul 2008 01:30:45 +0000 (01:30 +0000)]
fix up a few free -> drm_free() cases that were missed before.
kettenis [Tue, 29 Jul 2008 22:24:25 +0000 (22:24 +0000)]
Sun stopped distributing patches through FTP :(.
oga [Tue, 29 Jul 2008 22:23:50 +0000 (22:23 +0000)]
Update to DRM git.
Some stability fixes for radeon. The most part of this diff is related
to fixing up the VBLANK (vertical blank interrupt) handling. Now, if the
X driver supports the DRM_IOCTL_MODESET_CTL ioctl, (to be used when
changing the video modes), then allow the vblank to be disabled once
that ioctl has been called. Otherwise, keep the interrupt enabled at all
time, since disabling it otherwise will lead to problems.
Tested by a few. "no problem" on API/ABI deraadt@.
kettenis [Tue, 29 Jul 2008 22:20:04 +0000 (22:20 +0000)]
Update list of supported machines.
martynas [Tue, 29 Jul 2008 22:12:29 +0000 (22:12 +0000)]
add descriptions for fpclassify, isfinite, isnormal, nan, remquo,
signbit
deraadt [Tue, 29 Jul 2008 22:10:18 +0000 (22:10 +0000)]
sync
martynas [Tue, 29 Jul 2008 22:08:43 +0000 (22:08 +0000)]
- add man pages for nan and remainder, from freebsd
- mlink drem, dremf, remainderf to remainder; nanf to nan
- describe that drem and dremf are obsolete aliases
- remove descriptions for remainder and remainderf from ieee
looked over by jmc@, but it's easier for him to work on when they
are in tree
deraadt [Tue, 29 Jul 2008 22:04:38 +0000 (22:04 +0000)]
sync
martynas [Tue, 29 Jul 2008 21:57:13 +0000 (21:57 +0000)]
describe exp2, exp2f and mlink them
deraadt [Tue, 29 Jul 2008 21:46:27 +0000 (21:46 +0000)]
when detaching pcbs, also free the v6 output options so that we do not
leak kernel memory for every closed v6 descriptor with certain options set
ok otto jsing todd claudio
miod [Tue, 29 Jul 2008 21:18:53 +0000 (21:18 +0000)]
In ahc_free(), which is invoked if attachment fails, do not free()
pointers we don't own, but the autoconf machinery does.
deraadt [Tue, 29 Jul 2008 20:19:36 +0000 (20:19 +0000)]
sync
gilles [Tue, 29 Jul 2008 20:15:53 +0000 (20:15 +0000)]
clarify EMSGSIZE
rewording by jmc@, "lovely" deraadt@
jmc [Tue, 29 Jul 2008 20:11:45 +0000 (20:11 +0000)]
tweak previous;
kettenis [Tue, 29 Jul 2008 20:09:11 +0000 (20:09 +0000)]
Add an ugly hack to disable DMA on the Tadpole SPARCLE laptop. It doesn't
work and this way we fall back on PIO which does work. I'm pretty sure
this is caused by bugs in our code, but I cannot find them.
ok deraadt@, marco@
oga [Tue, 29 Jul 2008 19:44:13 +0000 (19:44 +0000)]
Switch all instances of malloc/free in the DRM to drm_alloc, drm_free
and drm_calloc.
With the recent change to check overflow in drm_calloc, this means that
all allocations that require multiplication are now checked. Also use
drm_calloc() when zeroing is needed and drop the bzero/memset
afterwards. Finally, make drm_free() check for NULL, so we don't need
to do so every time.
ok miod@, deraadt@
miod [Tue, 29 Jul 2008 19:32:50 +0000 (19:32 +0000)]
Split SHA1Transform() back into smaller pieces when compiling on landisk,
to defeat gcc optimization bugs. Similar to what had been done on sparc64
in the past.
ok millert@ deraadt@
miod [Tue, 29 Jul 2008 19:13:56 +0000 (19:13 +0000)]
Stricter bounds checking for values controlling loops or memory allocations,
which may come from userland via ioctls. ok oga@
miod [Tue, 29 Jul 2008 19:13:19 +0000 (19:13 +0000)]
Check for multiplication overflow in drm_calloc(). ok oga@
deraadt [Tue, 29 Jul 2008 18:43:28 +0000 (18:43 +0000)]
sync
miod [Tue, 29 Jul 2008 18:40:23 +0000 (18:40 +0000)]
Give the eisa device a valid bus_dma_tag_t.
miod [Tue, 29 Jul 2008 18:39:45 +0000 (18:39 +0000)]
Fix range check in sio_intr_establish().
martynas [Tue, 29 Jul 2008 18:38:21 +0000 (18:38 +0000)]
remove finite from ieee.3, and unmlink from makefile
martynas [Tue, 29 Jul 2008 18:25:51 +0000 (18:25 +0000)]
remove
sobrado [Tue, 29 Jul 2008 18:25:28 +0000 (18:25 +0000)]
an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().
changes suggested by pyr@.
ok millert@, pyr@