damien [Tue, 12 Aug 2008 15:43:00 +0000 (15:43 +0000)]
Implementation of the HMAC-MD5, HMAC-SHA1, HMAC-SHA256, AES-128-CMAC
and AES Key Wrap algorithms.
They will replace/extend the non-generic implementation in net80211.
AES-128-CMAC tested by sobrado@ (AlphaServer 1200),
naddy@ (alpha/sparc64) and sthen@ (sparc64, armish).
HMAC-* reviewed by hshoexer@
ok and hints from djm@
otto [Tue, 12 Aug 2008 09:44:26 +0000 (09:44 +0000)]
basic bounds check on elf header info. avoid crashes on i.e.e truncated
kernels; noted by jasper@ ok miod@
mglocker [Tue, 12 Aug 2008 08:26:42 +0000 (08:26 +0000)]
Don't process xfers which have the stream error bit set in the stream
header.
jakemsr [Tue, 12 Aug 2008 06:50:16 +0000 (06:50 +0000)]
VT8233+ uses a different register base for capturing
from NetBSD. fixes recording for kili@, martynas@ and me.
mbalmer [Tue, 12 Aug 2008 06:32:14 +0000 (06:32 +0000)]
Fix a typo in a comment. From dawedawe@gmx.de.
brad [Mon, 11 Aug 2008 22:42:19 +0000 (22:42 +0000)]
Add support for TX/RX checksum offload for newer re(4) chipsets.
Tested by naddy@
From FreeBSD
jaredy [Mon, 11 Aug 2008 21:50:35 +0000 (21:50 +0000)]
plug a memleak when freeing io redirection in commands.
the leaked memory is actually reclaimed when the command
finishes but may grow until that happens, e.g. during
command execution.
ok phessler@.
testing sobrado@ jmc@ oga@.
kettenis [Mon, 11 Aug 2008 21:28:53 +0000 (21:28 +0000)]
Only print iotdb stuff when DEBUG.
kettenis [Mon, 11 Aug 2008 20:56:55 +0000 (20:56 +0000)]
Allow mapping mmio regions that are not page aligned.
ok miod@
jmc [Mon, 11 Aug 2008 20:43:16 +0000 (20:43 +0000)]
+Longshine LCS-8031N to the ral(4) list;
jmc [Mon, 11 Aug 2008 20:28:55 +0000 (20:28 +0000)]
some documentation updates for spamd synchronisation:
- whitelisted entries are not synced
- entries added manually (using spamdb) are not synced
suggested by Stephan A. Rickauer; ok reyk
jmc [Mon, 11 Aug 2008 20:24:45 +0000 (20:24 +0000)]
some consistency fixes and whitespace at eol removal;
jmc [Mon, 11 Aug 2008 20:23:19 +0000 (20:23 +0000)]
remove a note which seems to be duplicated; ok sobrado
kettenis [Mon, 11 Aug 2008 19:53:33 +0000 (19:53 +0000)]
Add hw.cupspeed cupport for all CPU types.
reyk [Mon, 11 Aug 2008 19:03:05 +0000 (19:03 +0000)]
fix a6 partition lookup where a static variable was incorrectly used in
the recursive findopenbsd() function. reported by PR 5905.
tested by many
ok deraadt@
kettenis [Mon, 11 Aug 2008 18:45:13 +0000 (18:45 +0000)]
Build apm(8) and apmd(8) on sparc64.
pointed out by deraadt@
kettenis [Mon, 11 Aug 2008 18:38:10 +0000 (18:38 +0000)]
Minimal apmvar.h such that we can enable apm(8) and apmd(8) on sparc64.
ok deraadt@
kettenis [Mon, 11 Aug 2008 18:20:37 +0000 (18:20 +0000)]
Add hw.setperf support for UltraSPARC-IIe support.
tested by miod@, matthieu@, naddy@, jsg@, djm@
marco [Mon, 11 Aug 2008 17:28:24 +0000 (17:28 +0000)]
Undo last commit; deraadt didn't like it.
marco [Mon, 11 Aug 2008 17:22:54 +0000 (17:22 +0000)]
Add infrastructure to manually kick off rebuilds.
tobias [Mon, 11 Aug 2008 17:17:53 +0000 (17:17 +0000)]
Prevent a buffer underrun if a line is received which only contains
(multiple) @.
ok millert, otto
tobias [Mon, 11 Aug 2008 17:15:56 +0000 (17:15 +0000)]
Use only safe functions in signal handlers.
ok millert, otto
reyk [Mon, 11 Aug 2008 08:24:41 +0000 (08:24 +0000)]
more goto fail on gettimeofday error
reyk [Mon, 11 Aug 2008 08:07:14 +0000 (08:07 +0000)]
better handling of HTTP POSTs or requests with Content-Length.
reyk [Mon, 11 Aug 2008 06:42:06 +0000 (06:42 +0000)]
add missing 'break' to read HTTP content correctly
mglocker [Mon, 11 Aug 2008 05:37:01 +0000 (05:37 +0000)]
Since we have ehci(4) isoc support now, don't demote USB2 uvideo(4)
devices to USB1, instead let them attach to ehci(4).
This may break a couple of the devices for the moment, but it's the way
we have to go finally.
miod [Sun, 10 Aug 2008 18:20:07 +0000 (18:20 +0000)]
Add support for the VAXstation 3[58][24]0 to the bootblocks, currently
limited to serial console. This is enough for a 3520 to mopboot and download
a kernel over NFS.
sobrado [Sun, 10 Aug 2008 17:40:10 +0000 (17:40 +0000)]
add missing ellipsis; spacing.
krw [Sun, 10 Aug 2008 15:52:50 +0000 (15:52 +0000)]
Fix other integer overflow vulnerability I introduced, this time in
DL_BLKOFFSET(). Pointed out by kettenis@ and deraadt@.
ok kettenis@
kettenis [Sun, 10 Aug 2008 14:13:05 +0000 (14:13 +0000)]
Use the STICK logic on UltraSPARC-IIe to generate clock interrupts.
kettenis [Sun, 10 Aug 2008 13:55:19 +0000 (13:55 +0000)]
Add hypervisor calls for the sun4v random number generator interface.
sobrado [Sun, 10 Aug 2008 13:39:09 +0000 (13:39 +0000)]
typo.
sobrado [Sun, 10 Aug 2008 13:00:25 +0000 (13:00 +0000)]
spacing; remove non-existent flag from synopsis.
krw [Sun, 10 Aug 2008 12:23:25 +0000 (12:23 +0000)]
'coordiates' -> 'coordinates' from Dawe via tech@.
krw [Sun, 10 Aug 2008 12:03:53 +0000 (12:03 +0000)]
'flus' -> 'flush', 'waitinf' -> 'waiting'. From Dawe via tech@.
sobrado [Sun, 10 Aug 2008 11:22:40 +0000 (11:22 +0000)]
add missing space.
ok krw@
mglocker [Sun, 10 Aug 2008 10:01:25 +0000 (10:01 +0000)]
Prepare for ehci:
- Remove GET_DEF request for negotation. It doesn't help, instead keep
breaking devices.
- On device close first switch back to default interface 0 before
abort/close the isoc pipe. This fixes IOERRORs on device re-open.
kettenis [Sun, 10 Aug 2008 09:59:55 +0000 (09:59 +0000)]
Don't assume the first LAPIC in the table corresponds to the boot processor.
Mark the processor we're running on as the boot processor instead.
ok marco@, art@
krw [Sun, 10 Aug 2008 02:03:06 +0000 (02:03 +0000)]
Shorten the lines of '?' output in edit mode. A couple were too
long (>76 chars) for the install script space on the CD jackets.
Requested by deraadt@.
brad [Sun, 10 Aug 2008 00:18:35 +0000 (00:18 +0000)]
Style fixes and use of tabs for the DRM bits.
ok oga@
mglocker [Sat, 9 Aug 2008 22:59:20 +0000 (22:59 +0000)]
Add isochronous xfer support for ehci(4). From NetBSD.
OK brad@
kettenis [Sat, 9 Aug 2008 21:06:05 +0000 (21:06 +0000)]
Add prom_set_sun4v_api_version().
brad [Sat, 9 Aug 2008 21:00:52 +0000 (21:00 +0000)]
MCP79 are also capable of Jumbo frames. Add the Jumbo support flag.
From: Linux forcedeth
kettenis [Sat, 9 Aug 2008 20:42:28 +0000 (20:42 +0000)]
Fix counting of shared (PCI) interrupts. Remove some useless debug code
and unused variables.
kettenis [Sat, 9 Aug 2008 19:20:07 +0000 (19:20 +0000)]
Prevent integer overflow in DL_BLKTOSEC().
ok krw@
miod [Sat, 9 Aug 2008 16:42:29 +0000 (16:42 +0000)]
Pass a device name to {tc,tcds,ioasic}_intr_establish in order to get
meaningful names associated to the interrupt counters.
miod [Sat, 9 Aug 2008 16:41:21 +0000 (16:41 +0000)]
Do not forget to set the ``specific EOI'' bit when sending a... specific EOI;
from NetBSD.
miod [Sat, 9 Aug 2008 16:31:23 +0000 (16:31 +0000)]
Regen
miod [Sat, 9 Aug 2008 16:31:06 +0000 (16:31 +0000)]
Add the fr-dvorak-be'po layout as fr.dvorak for ps/2 and usb keyboards.
This is only the simplified layout, which is final; the complete layout with
extra symbols is still being discussed.
thib [Sat, 9 Aug 2008 11:25:05 +0000 (11:25 +0000)]
turn an MFREE() into an m_free() and garbage collect an
unused mbuf pointer.
OK claudio@
thib [Sat, 9 Aug 2008 10:14:02 +0000 (10:14 +0000)]
o nfs_vinvalbuf() is always called with the intrflag as 1, and then
checks if the mount is actually interrutable, and if not sets it 0.
remove this argument from nfs_vinvalbuf and just do the checking inside
the function.
o give nfs_vinvalbuf() a makeover so it looks nice. (spacing, casts, &c);
o Actually pass PCATCH too tsleep() if the mount it interrutable.
ok art@, blambert@
mglocker [Sat, 9 Aug 2008 08:42:03 +0000 (08:42 +0000)]
Revert last commit, it doesn't always help, we need to find another
solution.
mglocker [Sat, 9 Aug 2008 07:57:48 +0000 (07:57 +0000)]
Prepare for ehci: If GET_DEF request has failed, wait a moment before
issuing GET_CUR. Makes my NX6000 attach on ehci.
krw [Fri, 8 Aug 2008 23:49:53 +0000 (23:49 +0000)]
Admit b_blkno means block number; a block is DEV_BSIZE (a.k.a.
512) bytes; ffs is inextricably tied to using b_blkno and disklabel
always uses sectorsize units.
Thus use DEV_BSIZE units for all fields describing ffs filesystems
and convert to/from sectors where required. This enables the creation
and use of ffs filesystems on non-512 byte sectorsize devices.
This diff allows i386 and sgi (the two test platforms) to find
disklabels that are not on a sectorsize boundary. Same change to
further archs coming.
This is a no-op on 512-byte sectorsize devices.
This work triggered by jsing@'s need to create ffs filesystems on
sgi cdroms so we can create cdrom install media for sgi.
sgi testing by jsing@
ok jsing@ pedro@ "looks sane" beck@ weingart@
reyk [Fri, 8 Aug 2008 22:49:33 +0000 (22:49 +0000)]
add a variable $SERVER_NAME which is "OpenBSD relayd" by default.
sobrado [Fri, 8 Aug 2008 21:48:19 +0000 (21:48 +0000)]
documentation tweaks.
ok jmc@, matthieu@
thib [Fri, 8 Aug 2008 21:44:44 +0000 (21:44 +0000)]
o sync comment with reality, we have never malloc()'ed filehandles
and the dead code that was supposed todo that has been removed.
o rename the NFS_SMALLFH constant to NFS_MAXFHSIZE, since it better
reflects what it's for.
ok blambert@
blambert [Fri, 8 Aug 2008 20:44:38 +0000 (20:44 +0000)]
After beck@ changed the way nfsiod's are notified of work, the
nfs_iodwant array became unused. Garbage collect and free up
a few bytes.
ok thib@
blambert [Fri, 8 Aug 2008 20:40:24 +0000 (20:40 +0000)]
Remove code for variable-sized allocations of NFS filehandles by malloc(),
as it was never used because there were 64-bit buffers already allocated
for filehandles in nfsnode structs.
ok thib@
reyk [Fri, 8 Aug 2008 20:34:30 +0000 (20:34 +0000)]
chunked encoding may include empty lines at random places, do not
abort the session if we get an empty line except of the expected chunk
header.
matthieu [Fri, 8 Aug 2008 20:07:49 +0000 (20:07 +0000)]
Small step towards fixing documentation:
- sync usage() with reality. Remove the -h option that does nothing.
- don't complain about kvm_openfiles() error in case of incorrect usage.
- add basic descriptions of the new options and views in the manual
page. More is needed...
with help from jmc@ and sobrado@. ok sobrado@.
thib [Fri, 8 Aug 2008 19:49:09 +0000 (19:49 +0000)]
remove an if notyet block from sys_fstatfs(), that will never be needed,
softupdates are reported too statfs via other means. missed this block
in in rev1.148 where the same block was removed from sys_statfs().
reyk [Fri, 8 Aug 2008 19:13:24 +0000 (19:13 +0000)]
fix possible memleaks in chunked encoding handler
reyk [Fri, 8 Aug 2008 18:56:05 +0000 (18:56 +0000)]
only dump all protocol nodes with DEBUG > 1.
reyk [Fri, 8 Aug 2008 18:38:14 +0000 (18:38 +0000)]
Support HTTP responses that neither specify a Content-Length header
nor chunked encoding. We don't know the length of the HTTP body in
this case, so it only works for single-pass HTTP responses without
subsequent HTTP response headers in the stream. You can still enforce
the Content-Length header with an "expect" rule.
For example, this fixes response handling from undeadly.org (thttpd)
if relayd is running as a transparent HTTP proxy.
bluhm [Fri, 8 Aug 2008 17:49:21 +0000 (17:49 +0000)]
Do not latch the IPSec tdb to the inpcb unconditionally. This has
been moved to the protocol layer from ip_output at 2002/05/31. The
IPv6 part has been forgotten so packets could get encrypted
unintentionally.
ok hshoexer markus
jsing [Fri, 8 Aug 2008 17:12:37 +0000 (17:12 +0000)]
Wrap long lines and remove useless comment.
thib [Fri, 8 Aug 2008 16:17:38 +0000 (16:17 +0000)]
use cgbase() instead of doing arthmetic on fs_fpg when calculating
block# too ensure proper casting.
From FreeBSD;
ok miod@, pedro@, blambert@
damien [Fri, 8 Aug 2008 16:08:22 +0000 (16:08 +0000)]
sync
jsing [Fri, 8 Aug 2008 16:07:41 +0000 (16:07 +0000)]
Make sgivol use the sgilabel struct from machine/disklabel.h, rather than
declaring another.
ok miod@
damien [Fri, 8 Aug 2008 16:07:18 +0000 (16:07 +0000)]
PCI IDs for Intel WiFi Link 5000 series (5100, 5300, 5350).
damien [Fri, 8 Aug 2008 15:57:41 +0000 (15:57 +0000)]
add Longshine LCS-8031N to the list of supported devices (RT2860).
from Fabian (bsdlist at gmx dot net)
thib [Fri, 8 Aug 2008 12:20:24 +0000 (12:20 +0000)]
if we fail to extract the mbuf in the Rx routine, increment
the if_ierrors before bailing out;
Turn a printf() that fires in this case too a DPRINTF since we
the interface error counters now reflect this.
OK mglocker@
reyk [Fri, 8 Aug 2008 11:10:31 +0000 (11:10 +0000)]
sync
reyk [Fri, 8 Aug 2008 11:10:06 +0000 (11:10 +0000)]
add eMPIA Technology EeePC 701 camera (currently unsupported uvideo(4)
device)
thib [Fri, 8 Aug 2008 09:02:25 +0000 (09:02 +0000)]
spacing + wrap a line at 79chars.
thib [Fri, 8 Aug 2008 08:54:08 +0000 (08:54 +0000)]
plug an mbuf leak in m_pullup2(); If we fail to get a cluster for an mbuf,
free the mbuf before bailing out.
ok claudio@
thib [Fri, 8 Aug 2008 08:51:21 +0000 (08:51 +0000)]
Check gettimeofday() against -1; Add a missing error check in one place.
OK reyk@
sobrado [Fri, 8 Aug 2008 08:22:42 +0000 (08:22 +0000)]
add a description for the options of fgen;
remove superfluous comments from the roff source code.
improvements by jmc@ and matthieu@.
ok jmc@, matthieu@
fgsch [Fri, 8 Aug 2008 07:26:40 +0000 (07:26 +0000)]
o use definitions from cd.h
o remove unused function prototype
krw [Fri, 8 Aug 2008 01:05:20 +0000 (01:05 +0000)]
'prey' -> 'pray' in comment as prayer rather than predation seems
the intended meaning.
martynas [Fri, 8 Aug 2008 00:41:17 +0000 (00:41 +0000)]
revert
martynas [Fri, 8 Aug 2008 00:32:47 +0000 (00:32 +0000)]
make _digittoint static
claudio [Thu, 7 Aug 2008 21:32:08 +0000 (21:32 +0000)]
Remove workaround used for the 4.4 release. More route prio stuff is comming
soon.
kettenis [Thu, 7 Aug 2008 21:25:47 +0000 (21:25 +0000)]
Use %sys_tick to generate clock interrupts on systems that have it.
brad [Thu, 7 Aug 2008 19:26:57 +0000 (19:26 +0000)]
Fix a typo, inteface -> interface.
From Gleydson Soares <gsoares at gmail dot com>
kettenis [Thu, 7 Aug 2008 18:46:04 +0000 (18:46 +0000)]
Give each CPU its own `struct intrhand' for %tick interrupts. Fixes a
problem where the clock would stop ticking on some CPUs because of lost
ticks.
otto [Thu, 7 Aug 2008 18:41:47 +0000 (18:41 +0000)]
small cleanup of error/warning strings
henning [Thu, 7 Aug 2008 18:33:49 +0000 (18:33 +0000)]
grow MINCLSIZE to MHLEN + MLEN + 1 again. we shrinked it just before the
release to be on the safe side, now we have 6 months to find remaining
offenders misusing MINCLSIZE
henning [Thu, 7 Aug 2008 18:29:32 +0000 (18:29 +0000)]
correctly copy the log interface spec when expanding an antispoof rule that
covers loopback addresses. ok ryan
problem report from Harald Dunkel <harald.dunkel@aixigo.de>
damien [Thu, 7 Aug 2008 18:09:22 +0000 (18:09 +0000)]
account spanning tree frames in if_obytes and if_omcasts.
ok henning@
damien [Thu, 7 Aug 2008 18:06:17 +0000 (18:06 +0000)]
do not touch m after IFQ_ENQUEUE()+if_start().
ok brad@, mpf@, henning@, reyk@
brad [Thu, 7 Aug 2008 17:56:51 +0000 (17:56 +0000)]
- Enable ALTQ support.
- Let the VLAN driver know that the hw can send and receive full size
VLAN tagged packets.
Tested by maja@
reyk [Thu, 7 Aug 2008 17:43:37 +0000 (17:43 +0000)]
don't wait for a free mbuf cluster in sosend() and enter the existing
error handler that was never used before. this fixes a bug that a
userland process might hang if the system ran out of mbuf clusters or
even other unexpected behaviour in the network drivers.
this bug is very old - it is also found in rev 1.1/stevens v2/44lite2/...
discussed with many
ok markus@ thib@ dlg@
sobrado [Thu, 7 Aug 2008 17:37:37 +0000 (17:37 +0000)]
spacing.
deraadt [Thu, 7 Aug 2008 17:18:03 +0000 (17:18 +0000)]
we are at 4.4-current
miod [Thu, 7 Aug 2008 06:18:42 +0000 (06:18 +0000)]
Add a little section about ACPI, explaining that disabling ACPI might help
troubleshooting interrupt problems on some machines, and insist people
should report such problems or they'll never get fixed. Final commit to
the installation notes for this release.
ok deraadt@
miod [Wed, 6 Aug 2008 20:50:48 +0000 (20:50 +0000)]
In the upgrade blurb, mention xetc won't be selectable as well, and mention
sysmerge can help you upgrade etc and xetc afterwards.
miod [Wed, 6 Aug 2008 20:43:44 +0000 (20:43 +0000)]
Oops, the new sets size computation script does not work correctly on
symbolic links.
miod [Wed, 6 Aug 2008 20:42:54 +0000 (20:42 +0000)]
Update sets sizes.