openbsd
16 years agodont need malloc.h anymore; plus two tiny whitespace fixes
thib [Thu, 24 Jul 2008 19:01:28 +0000 (19:01 +0000)]
dont need malloc.h anymore; plus two tiny whitespace fixes

16 years agoremove a bunch of bogus ARGSUSED
thib [Thu, 24 Jul 2008 18:48:18 +0000 (18:48 +0000)]
remove a bunch of bogus ARGSUSED

16 years agoUse memcpy() and memcmp() like everywhere else in ospfd. OK norby@
claudio [Thu, 24 Jul 2008 18:46:59 +0000 (18:46 +0000)]
Use memcpy() and memcmp() like everywhere else in ospfd. OK norby@

16 years agosng_exponent should be sng_exp (MI code now cares); ok martynas
deraadt [Thu, 24 Jul 2008 17:36:52 +0000 (17:36 +0000)]
sng_exponent should be sng_exp (MI code now cares); ok martynas

16 years agoAdd timeout_add_sec() etc. to .Nm and, on jmc's request, tweak
mk [Thu, 24 Jul 2008 17:31:59 +0000 (17:31 +0000)]
Add timeout_add_sec() etc. to .Nm and, on jmc's request, tweak
some other stuff.

ok art jmc blambert

16 years agoSpecify a cdroot entry that will actually work on a CD.
jsing [Thu, 24 Jul 2008 16:44:56 +0000 (16:44 +0000)]
Specify a cdroot entry that will actually work on a CD.

ok krw@

16 years agoAdd code to decode machine checks on Avanti, providing a description of the
miod [Thu, 24 Jul 2008 16:34:22 +0000 (16:34 +0000)]
Add code to decode machine checks on Avanti, providing a description of the
problem and lots of register dumps to help the skilled user to fix the hardware.
Not compiled if option SMALL_KERNEL.

From NetBSD.

16 years agobump because of __nan in math.h
deraadt [Thu, 24 Jul 2008 15:51:07 +0000 (15:51 +0000)]
bump because of __nan in math.h

16 years agobump
martynas [Thu, 24 Jul 2008 15:20:24 +0000 (15:20 +0000)]
bump

16 years agoRemove some obsolete XXX comments.
mglocker [Thu, 24 Jul 2008 14:59:44 +0000 (14:59 +0000)]
Remove some obsolete XXX comments.

16 years agokill whitespace at eol;
jmc [Thu, 24 Jul 2008 14:19:24 +0000 (14:19 +0000)]
kill whitespace at eol;

16 years agoisinf/isnan are macros now, therefore ap_config_auto.h differ. regen
martynas [Thu, 24 Jul 2008 14:11:42 +0000 (14:11 +0000)]
isinf/isnan are macros now, therefore ap_config_auto.h differ.  regen
from sthen@.  discussed w/ millert@.  "yep" sthen@.

16 years agoSimplify uvideo_enum_fmt(), no functional changes.
mglocker [Thu, 24 Jul 2008 13:30:10 +0000 (13:30 +0000)]
Simplify uvideo_enum_fmt(), no functional changes.

16 years agoreserve a few OpenBSD MIBs that might be implemented later or to avoid
reyk [Thu, 24 Jul 2008 12:59:06 +0000 (12:59 +0000)]
reserve a few OpenBSD MIBs that might be implemented later or to avoid
conflicts wird 3rd parties.

16 years agoipsec is glued into the stack in a very weird way, violating all kinds
henning [Thu, 24 Jul 2008 10:55:44 +0000 (10:55 +0000)]
ipsec is glued into the stack in a very weird way, violating all kinds
of expected semantics. thus, for return packets coming out of an ipsec
tunnel, we need to clear the pf state key pointer in the mbuf header
to prevent a state for encapsulated traffic to be linked to the
decapsulated traffic one.
problem noticed by Oleg Safiullin <form@pdp-11.org.ru>, took me some
time to understand what the hell was going on. ok ryan

16 years agocheck sysctl return value
henning [Thu, 24 Jul 2008 10:52:43 +0000 (10:52 +0000)]
check sysctl return value
From: Gleydson Soares <gsoares@gmail.com>, ryan ok

16 years agounXXX prototypes: exp2, remquo, nan, exp2f, remquof, nanf
martynas [Thu, 24 Jul 2008 09:41:58 +0000 (09:41 +0000)]
unXXX prototypes: exp2, remquo, nan, exp2f, remquof, nanf

16 years ago- remove isinff, isnanf. this has been moved to libc
martynas [Thu, 24 Jul 2008 09:40:16 +0000 (09:40 +0000)]
- remove isinff, isnanf.  this has been moved to libc
- remove never-enabled signbit.  libc has is now
- add C99 implementations, from freebsd, for nan(), nanf() (needed
to write _digittoint for it), exp2(), exp2f(), remquo(), remquof(),
needed STRICT_ASSIGN macro for math_private.h
- bump major
man pages will follow
exp2{,f} has been requested by chl@
ok millert@

16 years ago- add NAN definition (except on VAX)
martynas [Thu, 24 Jul 2008 09:35:30 +0000 (09:35 +0000)]
- add NAN definition (except on VAX)
- add C99 real-floating macros fpclassify isfinite isinf isnan
isnormal signbit
- add C99 macros isgreater isgreaterequal isless islessequal
islessgreater isunordered
- add function prototypes, __fpclassify __fpclassifyf __fpclassifyl
__isfinite __isfinitef __isfinitel __isinf __isinfl __isnan __isnanl
__isnormal __isnormalf __isnormall __signbit __signbitf __signbitl
ok millert@

16 years ago- move isinf, isnan dups to gen, since most is ieee 754
martynas [Thu, 24 Jul 2008 09:31:06 +0000 (09:31 +0000)]
- move isinf, isnan dups to gen, since most is ieee 754
- is{inf,nan} should be macros for real-floating, so rename to
__is{inf,nan}, per C99
- implement C99 __fpclassify(), __fpclassifyf(), __isfinite(),
__isfinitef(), __isnormal(), __isnormalf(), __signbit(), __signbitf()
- long functions added, but not yet enabled, till ieee.h is fixed
- implement vax equivalents of the functions
- reimplement isinff, isnanf in a better way, and move to libc
- add qnan bytes for all archs
- bump major
man pages will follow
ok millert@.  arm bits looked over by drahn@
discussed w/ theo, who showed the right direction, to put these
functions in libc

16 years agoDo not define vax-inspired LOWPAGES and HIGHPAGES anymore, they make no
miod [Thu, 24 Jul 2008 04:54:27 +0000 (04:54 +0000)]
Do not define vax-inspired LOWPAGES and HIGHPAGES anymore, they make no
sense on m68k. Give USRSTACK its real (HP-UX compatible) value instead of
computing it from HIGHPAGES.

No functional change.

16 years agoIf /dev/video* is already used by an application, return EBUSY to other
mglocker [Wed, 23 Jul 2008 22:10:21 +0000 (22:10 +0000)]
If /dev/video* is already used by an application, return EBUSY to other
applications.  Fixes a kernel panic.

Reported by ian@

16 years agowe really need unsigned in arithmetic operations.
av [Wed, 23 Jul 2008 21:33:32 +0000 (21:33 +0000)]
we really need unsigned in arithmetic operations.
comments by fgsch

16 years agoAvoid an occasional double free in getpwent() which corrupted memory. It
deraadt [Wed, 23 Jul 2008 19:36:47 +0000 (19:36 +0000)]
Avoid an occasional double free in getpwent() which corrupted memory.  It
happened only in the case of a + record indicating to use YP, but with ypbind
not actually running.  Problem found by pyr; solution found with millert
ok millert pyr

16 years agoForgot to add rebranded AS800 names there.
miod [Wed, 23 Jul 2008 19:28:27 +0000 (19:28 +0000)]
Forgot to add rebranded AS800 names there.

16 years agoAttempt to sync with reality, and make the supported/unsuported status of
miod [Wed, 23 Jul 2008 19:24:25 +0000 (19:24 +0000)]
Attempt to sync with reality, and make the supported/unsuported status of
the various AlphaServer references less ambiguous.

16 years agoDo not rely on an <ichc>invisible cast</ichc> to return failure in
miod [Wed, 23 Jul 2008 19:14:13 +0000 (19:14 +0000)]
Do not rely on an <ichc>invisible cast</ichc> to return failure in
dino_intr_map(); rather than adding the missing cast, make the intent of
the code clearer by explicitenly testing for PCI_INTERRUPT_LINE being ff.

While there, enable the out-of-extent-range checks in dino_memmap() and
dino_memalloc() even if no option DEBUG, but return failure instead of
panicing.

discussed with and ok kettenis@ marco@

16 years agoregen
brad [Wed, 23 Jul 2008 18:35:31 +0000 (18:35 +0000)]
regen

16 years agoAttansic L1E PCI id.
brad [Wed, 23 Jul 2008 18:34:29 +0000 (18:34 +0000)]
Attansic L1E PCI id.

16 years agoclear sign bit, instead of comparing to zero and setting x=-x.
martynas [Wed, 23 Jul 2008 18:11:13 +0000 (18:11 +0000)]
clear sign bit, instead of comparing to zero and setting x=-x.
fixes special cases, such as neg. zero, and makes C99 conformant
ok miod@, millert@
since there's nothing else in arm's fabs.c, replace 4-clause license
w/ the one at /usr/share/misc/license.template

16 years agosync
deraadt [Wed, 23 Jul 2008 17:59:25 +0000 (17:59 +0000)]
sync

16 years agomake this real C
deraadt [Wed, 23 Jul 2008 17:40:29 +0000 (17:40 +0000)]
make this real C

16 years agoSo it turns outthe HP engineers changed the PA-RISC 2.0 architecture
kettenis [Wed, 23 Jul 2008 17:39:35 +0000 (17:39 +0000)]
So it turns outthe HP engineers changed the PA-RISC 2.0 architecture
after it was published.  In particular, they changed the maximum cache
aliasing boundary from 1MB to 16MB.

It turns that on the PA-8700 the aliasing boundary is actually 4MB
(reported as such by the firmware at least).  There are some comments
in the Linux code that suggest that HP never actually built PA-RISC
CPUs with an 8MB or 16MB aliasing boundary.

So raise the aliasing boundary to 4MB.  This fixes the weird ps(1) problem
where it didn't print its own arguments correctly.

16 years agofix stack abuse in the `time' commmand, using alloc()'d memory instead.
jaredy [Wed, 23 Jul 2008 16:34:38 +0000 (16:34 +0000)]
fix stack abuse in the `time' commmand, using alloc()'d memory instead.

reported by Thorsten Glaser, thanks.

ok millert@, earlier version miod@

16 years agoCorrect cases of mishandling of pending reads and writes to prevent
beck [Wed, 23 Jul 2008 16:24:42 +0000 (16:24 +0000)]
Correct cases of mishandling of pending reads and writes to prevent
them going negative - this consists of identifying a number of cases of
IO not going through the buffer cache and marking those buffers with
B_RAW - as well as fixing nfs_bio to show pending writes and reads through
the buffer cache via NFS

still has a problem with mishandling the counters I believe in the
async/sync fallback case where counters stay positive which will be
addressed seperately.

ok tedu@ deraadt@

16 years agoPrevent warning about insecure hostnames where no /etc/hostname.*
sthen [Wed, 23 Jul 2008 16:05:47 +0000 (16:05 +0000)]
Prevent warning about insecure hostnames where no /etc/hostname.*
exists. From wcmaier@.

Check target of symbolic links to avoid noise at boot and in
seucrity output where you have several interfaces symlinked to one
config file.

"If you think this is the right thing to do" deraadt@

16 years agoFix a blatant misuse of MINCLSIZE I introduced in ieee80211_output.c r1.59
damien [Wed, 23 Jul 2008 15:55:46 +0000 (15:55 +0000)]
Fix a blatant misuse of MINCLSIZE I introduced in ieee80211_output.c r1.59
The bug was added on 04/16 but it started to show up only after 06/12 when
the value of MINCLSIZE was changed to something different from MHLEN + 1.

Thanks to dlg@ and giovanni (qgiovanni at gmail dot com) for putting me
on the right track.

Tested by giovanni.
Should fix system/5881 too.

16 years agoStop printing the size of BARs; the way the code calculates it is wrong.
kettenis [Wed, 23 Jul 2008 15:39:52 +0000 (15:39 +0000)]
Stop printing the size of BARs; the way the code calculates it is wrong.
We'll need kernel support to do it properly.

ok dlg@

16 years ago- Fix potential uvm_fault crash in
mglocker [Wed, 23 Jul 2008 14:10:58 +0000 (14:10 +0000)]
- Fix potential uvm_fault crash in
uvideo_vs_parse_desc_frame_uncompressed().

- If a VS alternate interface isn't valid (e.g. doesn't contain a
UE_ISOCHRONOUS endpoint), abort attachment with a corresponding error
message instead crashing the kernel.

Tested and OK maja@

16 years agoClear correctable errors after handling them. From Bjorn Andersson.
kettenis [Wed, 23 Jul 2008 12:18:40 +0000 (12:18 +0000)]
Clear correctable errors after handling them.  From Bjorn Andersson.

16 years ago - in nfs_mknodrpc - initialize the node we pass to nfs_lookitup. It's
art [Wed, 23 Jul 2008 11:53:07 +0000 (11:53 +0000)]
 - in nfs_mknodrpc - initialize the node we pass to nfs_lookitup. It's
   not just a return value, nfs_lookitup treats it specially when *npp
   is not NULL.
 - nfs_lookitup - When we match the file handle to the directory
   filehandle (lookup on '.'), initialize np so that we don't return
   stack garbage to the caller. The function shouldn't ever be
   called with '.' at this moment, but that's no reason to not do the
   right thing in case future callers use it that way.

blambert@ thib@ ok

16 years agoDocument the new timeout_add_* functions.
art [Wed, 23 Jul 2008 11:45:21 +0000 (11:45 +0000)]
Document the new timeout_add_* functions.

16 years agovalidate packet length in debug dns packet logging before printing the header.
reyk [Wed, 23 Jul 2008 10:05:18 +0000 (10:05 +0000)]
validate packet length in debug dns packet logging before printing the header.

16 years agosync
mglocker [Wed, 23 Jul 2008 07:56:45 +0000 (07:56 +0000)]
sync

16 years agoUnbreak the tree.
mglocker [Wed, 23 Jul 2008 07:55:31 +0000 (07:55 +0000)]
Unbreak the tree.

16 years agodo not try to print options that have been compile-time disabled
djm [Wed, 23 Jul 2008 07:36:55 +0000 (07:36 +0000)]
do not try to print options that have been compile-time disabled
in config test mode (sshd -T); report from nix-corp AT esperi.org.uk
ok dtucker@

16 years agosync
deraadt [Wed, 23 Jul 2008 04:59:27 +0000 (04:59 +0000)]
sync

16 years agonew ati goo; giovanni
deraadt [Wed, 23 Jul 2008 04:59:18 +0000 (04:59 +0000)]
new ati goo; giovanni

16 years agomove the aml_register_notify() call below for better debugging output.
fgsch [Wed, 23 Jul 2008 00:20:35 +0000 (00:20 +0000)]
move the aml_register_notify() call below for better debugging output.
marco@ ok.

16 years agoAdd dynamic IPv6-to-IPv4 and IPv4-to-IPv6 translation inspired by
reyk [Tue, 22 Jul 2008 23:17:37 +0000 (23:17 +0000)]
Add dynamic IPv6-to-IPv4 and IPv4-to-IPv6 translation inspired by
faithd(8) by doing a similar mapping of IPv4/6 addresses with
relayd(8) and pf(4) redirections without the need of the faith(4)
interface.  The trick works in both directions, it can accept IPv6
connections and relay them to IPv4 hosts by extracting the last 4
octets from the IPv6 destination (like faithd(8)), and it can accept
IPv4 connections and relay them to IPv6 hosts by prepending the 4
octets of the original IPv4 destination to a configured IPv6 prefix.
An access list is not needed because the classification is done in
pf.conf(5).  It helps to get more faith in relayd.

manpage bits ok jmc@
yes, sounds good todd@

16 years agouse arc4random_uniform(); ok djm millert
deraadt [Tue, 22 Jul 2008 21:47:45 +0000 (21:47 +0000)]
use arc4random_uniform(); ok djm millert

16 years agoFAKE (the variable) died about 2 years ago...
espie [Tue, 22 Jul 2008 20:53:13 +0000 (20:53 +0000)]
FAKE (the variable) died about 2 years ago...

16 years agoNone of the pceb EISA alpha designs has more than 8 physical slots, so don't
miod [Tue, 22 Jul 2008 20:06:01 +0000 (20:06 +0000)]
None of the pceb EISA alpha designs has more than 8 physical slots, so don't
bother trying to probe more.

16 years agoremez -> Remes here, too. for consistency
martynas [Tue, 22 Jul 2008 19:58:40 +0000 (19:58 +0000)]
remez -> Remes here, too.  for consistency

16 years agoAdd another working cam reported by Jerome Pinot.
mglocker [Tue, 22 Jul 2008 19:45:51 +0000 (19:45 +0000)]
Add another working cam reported by Jerome Pinot.

16 years agoProper interrupt swizzling for devices behind bridges; matches what SRM
miod [Tue, 22 Jul 2008 18:47:24 +0000 (18:47 +0000)]
Proper interrupt swizzling for devices behind bridges; matches what SRM
configures when it can. ok kettenis@

16 years agoModify pci_intr_map() implementation to pass the pci_attach_args to the
miod [Tue, 22 Jul 2008 18:45:50 +0000 (18:45 +0000)]
Modify pci_intr_map() implementation to pass the pci_attach_args to the
per-platform implementation, instead of selected members of it; this allows
us to get rid of some globals, and paves the way for better bridge support
on some models.

16 years agoUse cgbase() instead of doing arithmetic on fs_fpg, for the former does
miod [Tue, 22 Jul 2008 18:44:25 +0000 (18:44 +0000)]
Use cgbase() instead of doing arithmetic on fs_fpg, for the former does
proper casts to ensure the result is not truncated.
From FreeBSD via NetBSD. ok thib@

16 years agoDo not define VM_MIN_ADDRESS as __LDPGSZ, but provide its value, to prevent
miod [Tue, 22 Jul 2008 18:15:48 +0000 (18:15 +0000)]
Do not define VM_MIN_ADDRESS as __LDPGSZ, but provide its value, to prevent
uvm_map.c from requiring <machine/exec.h>.

16 years agoThere are devices out there which are UVC compatible, but do not show
mglocker [Tue, 22 Jul 2008 16:24:40 +0000 (16:24 +0000)]
There are devices out there which are UVC compatible, but do not show
up as this (we love standards).  To make those devices attach anyway
we add an explicit quirk device list.  Of course this list still needs
to be extended.

Thanks to Jerome Pinot for reporting about this issue and testing this
diff with his cam, which is such a device.

OK yuo@

16 years ago- added HUGE_VALF, HUGE_VALL, INFINITY, FP_INFINITE, FP_NAN,
martynas [Tue, 22 Jul 2008 16:01:46 +0000 (16:01 +0000)]
- added HUGE_VALF, HUGE_VALL, INFINITY, FP_INFINITE, FP_NAN,
FP_NORMAL, FP_SUBNORMAL, FP_ZERO, FP_ILOGB0, FP_ILOGBNAN definitions,
per C99
- classify functions into sections, add missing definitions, add
and some '#if 0' functions, and long double definitions, so we see
what's needed to be done
- other stuff is XXX'd, and will be uncommented soon
ok millert@

16 years agoafter pf_state_key_atach nothing must use the state keys passed to it any
henning [Tue, 22 Jul 2008 12:31:35 +0000 (12:31 +0000)]
after pf_state_key_atach nothing must use the state keys passed to it any
more, since they might have been invalidated and free'd.
one synproxy errorpath did so, however. just get the state keys from the
state itself. ok david mcbride

16 years agomore negotation -> negotiation; ok sthen@
martynas [Tue, 22 Jul 2008 11:20:10 +0000 (11:20 +0000)]
more negotation -> negotiation;  ok sthen@

16 years agoSpelling, negotation -> negotiation.
mglocker [Tue, 22 Jul 2008 11:02:17 +0000 (11:02 +0000)]
Spelling, negotation -> negotiation.

16 years agoFix uvm_fault crash in uvideo_vs_negotation() which was reported by some
mglocker [Tue, 22 Jul 2008 10:57:15 +0000 (10:57 +0000)]
Fix uvm_fault crash in uvideo_vs_negotation() which was reported by some
users.

Thanks to mpf@ for his help to debug this bug down.

16 years agoIf isakmpd is started with -4 or -6, virtual_get_default() may
bluhm [Tue, 22 Jul 2008 09:45:56 +0000 (09:45 +0000)]
If isakmpd is started with -4 or -6, virtual_get_default() may
return NULL.  This happens if isakmpd is configured for the other
address family.  Add a NULL pointer check and initialize rv.
ok hshoexer

16 years agoAssign the struct size to sin6_len instead of sin6_family.
bluhm [Tue, 22 Jul 2008 09:26:39 +0000 (09:26 +0000)]
Assign the struct size to sin6_len instead of sin6_family.
ok hshoexer claudio mpf henning

16 years agochange the bcachestats structures members to int64_t's and do the
thib [Tue, 22 Jul 2008 08:05:02 +0000 (08:05 +0000)]
change the bcachestats structures members to int64_t's and do the
printing in systat with the new print_fld_ssize() function.

"same diff I wrote" deraadt@
ok art@

16 years agouse generalised PBKDF#2 from bioctl; ok damien@
djm [Tue, 22 Jul 2008 07:37:25 +0000 (07:37 +0000)]
use generalised PBKDF#2 from bioctl; ok damien@

16 years agodeactivate the code to display location in the sensor description
mbalmer [Tue, 22 Jul 2008 06:06:47 +0000 (06:06 +0000)]
deactivate the code to display location in the sensor description

16 years agosync
deraadt [Tue, 22 Jul 2008 03:09:17 +0000 (03:09 +0000)]
sync

16 years agoAdd signed size printing functions, as requested by deraadt@.
canacar [Tue, 22 Jul 2008 03:00:23 +0000 (03:00 +0000)]
Add signed size printing functions, as requested by deraadt@.
Just use print_fld_ssize() for signed values.
Increase scale up to "Tera" while there.

16 years agoimplement the fetching of a scsi devices "devid". recent hardware provides
dlg [Tue, 22 Jul 2008 01:01:31 +0000 (01:01 +0000)]
implement the fetching of a scsi devices "devid". recent hardware provides
a vpd page that uniquely identifies a device no matter what bus topology or
addressing was used to find it.

we have a workaround for old school scsi devices that do not differentiate
between luns. if the inq data for high luns is the same as the inq data
for lun 0, we assume it is one of these buggy devices.

the problem with this is that things like SANs present multiple
volumes as luns and they all have the same inq data. if you wanted
to present more than one volume to openbsd you would only ever see
the first one.

devices give us a mechanism to differentiate between luns, so now
i do get all my volumes attached in openbsde.

review and feedback by krw@ marco@ testing by todd@

16 years agotweak comment to reflect the new reality after my last change.
dlg [Tue, 22 Jul 2008 00:40:37 +0000 (00:40 +0000)]
tweak comment to reflect the new reality after my last change.

16 years agowhen probing a device the midlayer queries its inquiry data and
dlg [Mon, 21 Jul 2008 23:40:03 +0000 (23:40 +0000)]
when probing a device the midlayer queries its inquiry data and
keeps it on the stack till we attach a driver to it. then it copies
the inquiry data int the scsi_link struct.

this diff uses the scsi_link struct instead of the stack for that data,
which makes the inq data for users of the scsi_link struct available much
earlier during device probe.

review and feedback from both krw@ and marco@

16 years agovaxfp.h is VAX pendant of ieee.h. it defines VAX f fp, and VAX d
martynas [Mon, 21 Jul 2008 21:50:06 +0000 (21:50 +0000)]
vaxfp.h is VAX pendant of ieee.h.  it defines VAX f fp, and VAX d
fp;  from NetBSD
ok millert@

16 years agospelling fix from Mark Pecaut;
jmc [Mon, 21 Jul 2008 21:37:30 +0000 (21:37 +0000)]
spelling fix from Mark Pecaut;

16 years ago- add proper double_t and float_t definitions for each arch
martynas [Mon, 21 Jul 2008 20:50:54 +0000 (20:50 +0000)]
- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99).  remove from math.h, and add proper definitions in float.h
ok millert@

16 years agoNetBSD's C library supplies these functions -> OpenBSD's C library
martynas [Mon, 21 Jul 2008 20:30:35 +0000 (20:30 +0000)]
NetBSD's C library supplies these functions -> OpenBSD's C library
supplies these functions.  in comments

16 years agorename lround.c lroundf.c llround.c llroundf.c to s_lround.c
martynas [Mon, 21 Jul 2008 20:29:14 +0000 (20:29 +0000)]
rename lround.c lroundf.c llround.c llroundf.c to s_lround.c
s_lroundf.c s_llround.c s_llroundf.c, for naming consistency
looks fine to millert@

16 years agogives this a chance to work on architectures with strict alignment
damien [Mon, 21 Jul 2008 19:52:45 +0000 (19:52 +0000)]
gives this a chance to work on architectures with strict alignment
constraints.

16 years agosync
damien [Mon, 21 Jul 2008 19:49:06 +0000 (19:49 +0000)]
sync

16 years agorename rt2860 pci ids to match with reality.
damien [Mon, 21 Jul 2008 19:41:44 +0000 (19:41 +0000)]
rename rt2860 pci ids to match with reality.
import some fixes for 1T2R adapters from the linux vendor driver.

16 years agoadd ieee80211_priv.h file: contains definitions private to net80211.
damien [Mon, 21 Jul 2008 19:27:26 +0000 (19:27 +0000)]
add ieee80211_priv.h file: contains definitions private to net80211.
this must not be included by drivers.

16 years agofix ugly debug dump output. found with bluhm@
rainer [Mon, 21 Jul 2008 19:14:15 +0000 (19:14 +0000)]
fix ugly debug dump output. found with bluhm@

ok thib@, bluhm@

16 years agomove processing of EAPOL frames away from ieee80211_{input,output}.c
damien [Mon, 21 Jul 2008 19:05:21 +0000 (19:05 +0000)]
move processing of EAPOL frames away from ieee80211_{input,output}.c

16 years agoinstead of passing rx tstamp and rssi to the ieee80211_input function,
damien [Mon, 21 Jul 2008 18:43:18 +0000 (18:43 +0000)]
instead of passing rx tstamp and rssi to the ieee80211_input function,
pass a pointer to an ieee80211_rxinfo structure containing those two
fields plus an extra flags field that indicates whether the frame was
decrypted by hardware or not.
required for a future fix.

16 years agoExtra sanity checking for afree(); OK deraadt@ and pvalchev@
millert [Mon, 21 Jul 2008 17:30:08 +0000 (17:30 +0000)]
Extra sanity checking for afree();  OK deraadt@ and pvalchev@

16 years agoInitial stab at DHCPINFORM support. OK phessler@
millert [Mon, 21 Jul 2008 16:51:18 +0000 (16:51 +0000)]
Initial stab at DHCPINFORM support.  OK phessler@

16 years agosome whitespace cleanup I did while looking through the code
david [Mon, 21 Jul 2008 15:58:59 +0000 (15:58 +0000)]
some whitespace cleanup I did while looking through the code
ok mcbride@ henning@

16 years agofix typo that broke rdr rules (without pass) with non-TCP/UDP/ICMP protocols
david [Mon, 21 Jul 2008 15:56:55 +0000 (15:56 +0000)]
fix typo that broke rdr rules (without pass) with non-TCP/UDP/ICMP protocols
ok mcbride@ henning@

16 years agoAdd curproc to ioctl call.
marco [Mon, 21 Jul 2008 14:49:40 +0000 (14:49 +0000)]
Add curproc to ioctl call.

Noticed by todd,  proded by miod.

16 years agoFree the rules in the rule_queue also if ipsecctl is called with
bluhm [Mon, 21 Jul 2008 14:37:53 +0000 (14:37 +0000)]
Free the rules in the rule_queue also if ipsecctl is called with
the -n switch.  This triggers malloc related bugs during the regress
tests.
ok hshoexer

16 years agoImplement the cpu_yield hypervisor call. Use it in the idle loop for
art [Mon, 21 Jul 2008 13:30:04 +0000 (13:30 +0000)]
Implement the cpu_yield hypervisor call. Use it in the idle loop for
SUN4V to let it suspend strands (why does everyone invent own words for
hyperthreads?). This gives a huge performance boost when most of the
cpus are idle.

kettenis@ ok

16 years agoIPL_NONE doesn't really exist. The corresponding bit in the
kettenis [Mon, 21 Jul 2008 10:07:14 +0000 (10:07 +0000)]
IPL_NONE doesn't really exist.  The corresponding bit in the
per-processor soft interrupt register is used for hardware clock-tick
counter interrupts.  So make smp_signotify() use IPL_SOFTINT instead
such that we don't unintentionally trigger a spurious clock interrupt.
This seems to fix the timekeeping anomalies on the t1k.

tested by art@

16 years agoLeave PATH alone.
ajacoutot [Mon, 21 Jul 2008 08:28:55 +0000 (08:28 +0000)]
Leave PATH alone.

noticed by and ok deraadt@

16 years agoopenssh-5.1
djm [Mon, 21 Jul 2008 08:19:07 +0000 (08:19 +0000)]
openssh-5.1

16 years agoAdd acphy/amphy.
brad [Mon, 21 Jul 2008 07:41:37 +0000 (07:41 +0000)]
Add acphy/amphy.

16 years agonam2blk[] needs a "vnd" entry for some things (like softraid)
todd [Mon, 21 Jul 2008 04:35:53 +0000 (04:35 +0000)]
nam2blk[] needs a "vnd" entry for some things (like softraid)
ok marco@ no objection miod@ need this for regress djm@ no objection krw@

16 years agocleanup - we don't have resource structure
kevlo [Mon, 21 Jul 2008 04:12:21 +0000 (04:12 +0000)]
cleanup - we don't have resource structure
ok jsg@