Commit Graph

57770 Commits

Author SHA1 Message Date
markm
ca954435e8 Update for /dev/random improvements. 2001-03-10 16:08:04 +00:00
wilko
ea4009d75f Add note on instruction emulation on EV[45] for things like BWX. 2001-03-10 15:58:57 +00:00
markm
8a7a286726 The /dev/random harvesting sysctls have had a name change.
Reflect this.
2001-03-10 13:45:28 +00:00
markm
e4e06e65a1 Kernel crypto need binary key material, not symbolic ascii. 2001-03-10 13:02:58 +00:00
markm
dd7c5ed962 The /dev/random driver used Rijndael, not Blowfish, now. 2001-03-10 12:57:08 +00:00
markm
ad4dd3b5a2 Very large makeover of the /dev/random driver.
o Separate the kernel stuff from the Yarrow algorithm. Yarrow is now
  well contained in one source file and one header.

o Replace the Blowfish-based crypto routines with Rijndael-based ones.
  (Rijndael is the new AES algorithm). The huge improvement in
  Rijndael's key-agility over Blowfish means that this is an
  extremely dramatic improvement in speed, and makes a heck of
  a difference in its (lack of) CPU load.

o Clean up the sysctl's. At BDE's prompting, I have gone back to
  static sysctls.

o Bug fixes. The streamlining of the crypto stuff enabled me to
  find and fix some bugs. DES also found a bug in the reseed routine
  which is fixed.

o Change the way reseeds clear "used" entropy. Previously, only the
  source(s) that caused a reseed were cleared. Now all sources in the
  relevant pool(s) are cleared.

o Code tidy-up. Mostly to make it (nearly) 80-column compliant.
2001-03-10 12:51:55 +00:00
ps
a9b8e8be5d Allow for the last arugment to be the mountpoint of a filesystem,
not just the device.
2001-03-10 12:12:47 +00:00
billf
e05fe2f253 after discovering that the Santa Clara Valley Medical Center actually
has a burn unit and is only 8 miles away...

add __DECONST(), __DEVOLATILE(), and __DEQUALIFY()
2001-03-10 12:05:55 +00:00
sobomax
3bc6fead11 AMD K6/K6-2/Duron/Athlon CPUs support MMX too.
Missed by:	kris
2001-03-10 11:49:05 +00:00
billf
61fee9038f In theory it would be perfectly legal for a system administrator to
# cd /dev && ./MAKEDEV pty0 pty3
and/or
# rm -rf /dev/ptyp0

and expect all programs that use openpty() to still try to find available ptys.
2001-03-10 10:39:52 +00:00
okazaki
2d1e8b393b Fix typo.
Approved by:	tanimura
2001-03-10 10:19:38 +00:00
bp
e9b6e3c42c Add documentation for mchain API.
Reviewed by:	asmodai, ru (mbchain.9)
2001-03-10 06:10:48 +00:00
bp
eacd05832f Remove now unused opt_ipx.h and opt_inet.h 2001-03-10 05:42:44 +00:00
bp
cc5c440cbf Slightly reorganize allocation of new vnode. Use bit NVOLUME to detected
vnodes which represent volumes (before it was done via strcmp()).
Turn n_refparent into bit in the n_flag field.
2001-03-10 05:39:03 +00:00
dougb
020bef59da Avoid complicated tests of whether devices are present or not, and
enable all harvesting options by default since having them on for
devices not present doesn't hurt anything. Leave them on by default
since for the most part they are not producing noticable slowdown,
and are about to get a lot more efficient.

Re-order part of the cheesy entropy process in preparation for
its complete removal.
2001-03-10 05:33:38 +00:00
bp
a7f5447c8f Synch with changes in the NCP requester. 2001-03-10 05:31:22 +00:00
billf
7093344718 fix spelling errors, clarify comment, add $FreeBSD$ 2001-03-10 05:28:46 +00:00
bp
dde3285364 Major update of NCP requester:
Use mchain API to work with mbuf chains.

Do not depend on INET and IPX options.

Allocate ncp_rq structure dynamically to prevent possible stack overflows.

Let ncp_request() dispose control structure if request failed.

Move all NCP wrappers to ncp_ncp.c file and all NCP request processing
functions to ncp_rq.c file.

Improve reconnection logic.

Misc style fixes.
2001-03-10 05:24:45 +00:00
bp
04dc7092d8 Specify packing for an entire structure, not for each element of it. 2001-03-10 05:06:29 +00:00
kris
72ebd29788 Add libdata, some ports were using it. 2001-03-10 03:34:14 +00:00
gshapiro
abe73c9b5e Use the correct path to the SASL .h files as installed by the SASL port.
MFC candidate.

Submitted by:	jeh
2001-03-10 00:31:07 +00:00
brian
b80431a105 MAXHOSTNAMELEN includes the NUL 2001-03-09 21:24:13 +00:00
sobomax
7197fe7761 In the absence of explicit `-t type'' option assume that `-f file''
implies ``-t vnode''.

Approved by:	phk
2001-03-09 21:15:08 +00:00
mjacob
a6a451d74a Fix a botch where we wrote the year register with > 2 digits (and
then knocked the extra digits off). Blegh. Update the comment and
adjustment method reading the chip clock year register to note that
anything less than 70 means we're past the year 2000.
2001-03-09 20:39:02 +00:00
brian
c46089815b MAXHOSTNAME includes space for a NUL 2001-03-09 20:31:02 +00:00
phk
872730b331 Remove vn(4) driver. 2001-03-09 20:10:35 +00:00
phk
553d1d6989 Make md(4) and mdconfig(8) take over the role of vn(4) and vnconfig(8)
entirely as previously advertised.

md(4) adopted all assets of vn(4) some time back and has proper devfs
support and cloning abilities to boot.
2001-03-09 20:09:28 +00:00
phk
54384d998a Make md(4) more in line with reality.
NB: probably contains mdoc mistakes, feel free to fix.
2001-03-09 20:07:37 +00:00
phk
b99d2e36eb Use a more BIOS friendly geometry.
Submitted by:	joe
2001-03-09 20:06:30 +00:00
phk
49329f2799 1) If mdconfig isn't given an action argument, it assumes detach.
2) Running `mdconfig -l` without any attached devices results in
mdconfig printing "md0" to standard output.

Submitted by:	dd [1]

[1] no, not "dd(1)" but "Dima Dorfman"
2001-03-09 20:05:06 +00:00
alfred
219bcef498 Don't call malloc with M_WAITOK while holding a mutex. 2001-03-09 18:40:34 +00:00
iedowse
80d8e16746 When creating a shadow vm_object in vmspace_fork(), only one
reference count was transferred to the new object, but both the
new and the old map entries had pointers to the new object.
Correct this by transferring the second reference.

This fixes a panic that can occur when mmap(2) is used with the
MAP_INHERIT flag.

PR:		i386/25603
Reviewed by:	dillon, alc
2001-03-09 18:25:54 +00:00
ru
5f61f8e47f mdoc(7) police: in mdocNG, -offset and -width values without scaling
indicator are treated as strings, so "-offset 0" will set the offset
to the width of the string "0", as opposed to "no offset".

TIP: if offset is not needed, the -offset clause may be omitted.
2001-03-09 16:22:37 +00:00
deischen
0d4935c84e Correct a race condition where it was possible for a signaled
thread to become stranded and not placed in the run queue.

MFC Candidate

Reported by:	tegge
2001-03-09 16:05:43 +00:00
alex
8080165a1b Add module.9 and DECLARE_MODULE.9 2001-03-09 14:16:46 +00:00
alex
4b52e64a12 Add a general manpage about kernel modules, similar to driver(9).
Reviewed by:	dfr, ru
2001-03-09 14:12:43 +00:00
alex
06c771f80f Add a manpage for the kernel macro DECLARE_MODULE.
Reviewed by:	dfr, ru
2001-03-09 14:11:56 +00:00
dfr
1946903531 Change the kernel layout to match Linux/ia64 more closely. This prevents
the Linux loader from corrupting our text section when it attempts to
write out boot options.
2001-03-09 13:47:25 +00:00
dfr
b3080d74b9 Add SKI_ROOT_FILESYSTEM option. 2001-03-09 13:46:03 +00:00
dfr
6a7b0959c8 Allow the config file to specify a root filesystem filename. 2001-03-09 13:45:31 +00:00
dfr
2498a26063 Adjust a comment slightly. 2001-03-09 13:44:53 +00:00
ru
af372cc53b Add new option -m which allows the user to set IP TTL. 2001-03-09 13:20:23 +00:00
obrien
81365aaa67 bye-bye documented raw devices 2001-03-09 13:06:53 +00:00
obrien
5c32390a19 bye-bye documented raw device 2001-03-09 13:06:09 +00:00
obrien
bacfc8e3b1 Remove tunefs'ing that was OBE by rev 1.30.
Submitted by:	bde
2001-03-09 12:33:53 +00:00
obrien
71b3f0ffdb Warner gave a nice followup in email, and I thought it would be nice to
get it in the CVS logs.  This pertains to rev 1.30 (and the MFC of it):

  Space optimization forces the kernel to always use fragments to store
  parts of file, rather than using an entire block when less than an
  entire block has been written.  This forces files to be as small as
  they can be at the minor cost of time to do all the fussy stuff.  The
  cpio image that we put on the disk was so close to filling the disk
  exactly that this minor minor difference made a big difference.  The
  system changed things to time optmization on the first write.  When
  the end of file was hit, it tried to allocate a full block (4k), but
  there was only 3k left on the disk (since you get only 1407 blocks on
  a 1.44 floppy) so it failed.  So this change nails the space
  optmiziation in place for the whole operation.
2001-03-09 12:29:08 +00:00
ru
5639e86bdd Make it possible to use IP_TTL and IP_TOS setsockopt(2) options
on certain types of SOCK_RAW sockets.  Also, use the ip.ttl MIB
variable instead of MAXTTL constant as the default time-to-live
value for outgoing IP packets all over the place, as we already
do this for TCP and UDP.

Reviewed by:	wollman
2001-03-09 12:22:51 +00:00
dfr
a64bcb9cca Define KINFO_PROC_SIZE for ia64. 2001-03-09 11:34:29 +00:00
ru
0edd53c0e0 This is the getsid() we are talking about, not setsid().
PR:		docs/25626
Submitted by:	Yoshihiko Sarumaru <mistral@imasy.or.jp>
2001-03-09 11:16:09 +00:00
ru
20da37272b mdoc(7) police revision 1.15:
- replaced Oo/Oc enclosures with Op;
- removed hard sentence breaks;
- removed doubled space.
2001-03-09 11:02:01 +00:00