]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoUse the new resource_list_print_type() function to print resource list
tmm [Fri, 21 Dec 2001 21:49:57 +0000 (21:49 +0000)]
Use the new resource_list_print_type() function to print resource list
contents, and the new __BUS_ACCESSOR macro to construct the accessor
functions.

22 years agoMove the PCI_ENABLE_IO_MODES option from conf/options.i386 to
tmm [Fri, 21 Dec 2001 21:46:55 +0000 (21:46 +0000)]
Move the PCI_ENABLE_IO_MODES option from conf/options.i386 to
conf/options.

22 years agoAdd a generic __BUS_ACCESSOR macro to construct ivar accessor functions,
tmm [Fri, 21 Dec 2001 21:45:09 +0000 (21:45 +0000)]
Add a generic __BUS_ACCESSOR macro to construct ivar accessor functions,
and a generic resource_list_print_type() function to print all resouces
of a certain type in a resource list.
Use ulmin()/ulmax() instead of min()/max() in two places to handle
u_longs correctly.

22 years agoAdd a rman_reserve_resource_bound() function that takes an additional
tmm [Fri, 21 Dec 2001 21:40:55 +0000 (21:40 +0000)]
Add a rman_reserve_resource_bound() function that takes an additional
argument specifying the boundary for the resource allocation.
Use ulmin()/ulmax() instead of min()/max() in some places to correctly
deal with the u_long resource range specifications.

22 years agoAdd a workaround for quirky PCI devices that set the intpin register to
tmm [Fri, 21 Dec 2001 21:35:47 +0000 (21:35 +0000)]
Add a workaround for quirky PCI devices that set the intpin register to
0, but use this mechanism to generate interrupts.
Preserve the child device when setting up and tearing down interrupts.
Some style nits.

22 years agoFix a bug that was indroduced while moving this code around (use the
tmm [Fri, 21 Dec 2001 21:31:44 +0000 (21:31 +0000)]
Fix a bug that was indroduced while moving this code around (use the
correct length for ethernet addresses).

22 years agoMake the apb driver independent of the standard PCI bridge driver.
tmm [Fri, 21 Dec 2001 21:28:54 +0000 (21:28 +0000)]
Make the apb driver independent of the standard PCI bridge driver.

22 years agoAdd partial support for NFS_ROOT for sparc64 (only supported in in
tmm [Fri, 21 Dec 2001 21:27:01 +0000 (21:27 +0000)]
Add partial support for NFS_ROOT for sparc64 (only supported in in
connection with BOOTP_NFSROOT right now).

22 years agoo Wording and spelling fixes for security menu description.
rwatson [Fri, 21 Dec 2001 19:59:15 +0000 (19:59 +0000)]
o Wording and spelling fixes for security menu description.

22 years agoo Expand the text describing the Security options menu.
rwatson [Fri, 21 Dec 2001 19:51:44 +0000 (19:51 +0000)]
o Expand the text describing the Security options menu.
o Move nfs_reserved_port_only out of security profiles (where it was
  set somewhat improperly) to the Security options menu directly.
  Previously, the variable was set to true for Moderate, but not for
  Extreme, which is at best inconsistent.
o Update the Security Profiles help file to remove reference to the
  NFS reserved port.

o Note that the kernel currently defaults the sysctl to '0', but
  sysinstall has changed it to '1' as a default as of late; however,
  rc.conf sets the value to NO as the default.  This change brings
  them relatively into sync.

Sponsored by: DARPA, NAI Labs

22 years agoSave and restore state for suspend/resume.
orion [Fri, 21 Dec 2001 19:20:28 +0000 (19:20 +0000)]
Save and restore state for suspend/resume.

PR: kern/28692
Obtained from: SAKIYAMA Nobuo <sakichan@sakichan.org>

22 years agoImplement matching IP precedence in ipfw(4).
yar [Fri, 21 Dec 2001 18:43:37 +0000 (18:43 +0000)]
Implement matching IP precedence in ipfw(4).

Submitted by:   Igor Timkin <ivt@gamma.ru>

22 years agoImplement matching IP precedence in ipfw(4).
yar [Fri, 21 Dec 2001 18:43:02 +0000 (18:43 +0000)]
Implement matching IP precedence in ipfw(4).

Submitted by: Igor Timkin <ivt@gamma.ru>

22 years agoo Add a configSecurity menu to generally configure security settings,
rwatson [Fri, 21 Dec 2001 18:30:50 +0000 (18:30 +0000)]
o Add a configSecurity menu to generally configure security settings,
  and pull configSecurityProfile under that menu.  Add a menu option
  to determine whether LOMAC is enabled at boot.  Probably, eventually,
  many of the 'Security Profile' menu choices should be pulled out
  independently into the Security Menu, so as to make them individually
  selectable.

Sponsored by: DARPA, NAI Labs

22 years agoadd missing MLINKS
phantom [Fri, 21 Dec 2001 18:26:01 +0000 (18:26 +0000)]
add missing MLINKS

22 years agoMFCs noted: route(8) -ifa/-ifp, NTP 4.1.0.
bmah [Fri, 21 Dec 2001 18:17:32 +0000 (18:17 +0000)]
MFCs noted:  route(8) -ifa/-ifp, NTP 4.1.0.

22 years agoo Don't make 'Moderate Security Settings' the DEFAULT, as otherwise
rwatson [Fri, 21 Dec 2001 18:08:54 +0000 (18:08 +0000)]
o Don't make 'Moderate Security Settings' the DEFAULT, as otherwise
  selecting 'Cancel' to avoid making changes doesn't work.  Really, we
  should deprecate security profiles and move to a more fine-grained
  model.

22 years agoThe VM_STACK option is long dead. MAP_STACK is available everywhere.
peter [Fri, 21 Dec 2001 17:24:10 +0000 (17:24 +0000)]
The VM_STACK option is long dead.  MAP_STACK is available everywhere.

22 years agoSlightly re-work locale messages storage scheme. Before this commit
phantom [Fri, 21 Dec 2001 13:14:02 +0000 (13:14 +0000)]
Slightly re-work locale messages storage scheme. Before this commit
LC_MESSAGES related data was installed to <locale>/LC_MESSAGES file.
Now it go to <locale>/LC_MESSAGES/SYS_LC_MESSAGES file. LC_MESSAGES
directory is supposed to be storage of message catalogs of userland tools.
This should allow us to avoid many potential problems with future
libintl related functionality introduction.

Thanks for useful suggestions about correct way how to replace plain
files with directories at installworld stage to: Ruslan Ermilov <ru>

22 years agoThis commit was generated by cvs2svn to compensate for changes in r88345,
ru [Fri, 21 Dec 2001 11:46:21 +0000 (11:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r88345,
which included commits to RCS files with non-trunk default branches.

22 years agoBring in latest (cosmetic) vendor fixes to this file.
ru [Fri, 21 Dec 2001 11:46:21 +0000 (11:46 +0000)]
Bring in latest (cosmetic) vendor fixes to this file.

22 years agoMFV: Handle long document titles better.
ru [Fri, 21 Dec 2001 11:35:20 +0000 (11:35 +0000)]
MFV: Handle long document titles better.

22 years agoFrom ChangeLog:
ru [Fri, 21 Dec 2001 11:31:30 +0000 (11:31 +0000)]
From ChangeLog:

: 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
:
:         * tmac/doc-common (doc-header): Handle very long document titles
:         better.

PR: docs/10349

22 years agoForced commit to provide background for previous delta:
sheldonh [Fri, 21 Dec 2001 09:25:40 +0000 (09:25 +0000)]
Forced commit to provide background for previous delta:

There are two reasons why automounting remote filesystems can't be
delayed until after network initialization:

1) The right way would be to teach mount to distinguish between network
   filesystems and local filesystems.  This is not as easy as it was for
   df, because the latter only has to cope with filesystems for which
   kernel support is already present.

2) The easy way (see rev 1.268 of src/etc/rc for an extensible example)
   is made awkward by a problem reported by dougb and addressed in
   rev 1.286 of src/etc/rc, where mount_nfs misuses vfsload() and does
   not correctly arrage for the loading of nfsclient support.

Since neither of these problems looks like it will be solved before
4.5-RELEASE, the previous delta to this file provides a safety belt,
which I'd like to encourage folks to use by applying a change to
sysinstall, described in a message sent to the freebsd-audit list
(Message-ID <5062.1008868549@axl.seasidesoftware.co.za>).

22 years agomdoc(7) police: removed duplicate xref.
ru [Fri, 21 Dec 2001 08:40:52 +0000 (08:40 +0000)]
mdoc(7) police: removed duplicate xref.

22 years agomdoc(7) police: fix markup, remove stray .Xr.
ru [Fri, 21 Dec 2001 08:10:28 +0000 (08:10 +0000)]
mdoc(7) police: fix markup, remove stray .Xr.

22 years agoRemove a change that snuck in from my private tree.
jlemon [Fri, 21 Dec 2001 05:07:39 +0000 (05:07 +0000)]
Remove a change that snuck in from my private tree.

22 years agoIf syncookies are disabled (net.inet.tcp.syncookies) then use the faster
jlemon [Fri, 21 Dec 2001 04:41:08 +0000 (04:41 +0000)]
If syncookies are disabled (net.inet.tcp.syncookies) then use the faster
arc4random() routine to generate ISNs instead of creating them with MD5().

Suggested by: silby

22 years agoAvoid an interaction between syncache and accept filters. The syncache
peter [Fri, 21 Dec 2001 04:30:49 +0000 (04:30 +0000)]
Avoid an interaction between syncache and accept filters.  The syncache
code only passed up the connection to the tcp stack when it was complete,
so it went directly into the so_comp (complete) queue.  However, with
accept filters, there is an additional phase before calling it "complete".

Reviewed by: jlemon

22 years agoRemove duplicated chars
ache [Fri, 21 Dec 2001 03:31:12 +0000 (03:31 +0000)]
Remove duplicated chars

22 years agoNew release notes: sysinstall(8) now turns on Soft Updates by
bmah [Fri, 21 Dec 2001 02:27:46 +0000 (02:27 +0000)]
New release notes:  sysinstall(8) now turns on Soft Updates by
default for new filesystems, fdc(4) update.

22 years agoUse a more secure method of creating the temporary
jedgar [Fri, 21 Dec 2001 01:44:11 +0000 (01:44 +0000)]
Use a more secure method of creating the temporary
install directory.

22 years agoAdd support for the Intel 82443MX chipset
pirzyk [Fri, 21 Dec 2001 01:28:59 +0000 (01:28 +0000)]
Add support for the Intel 82443MX chipset

PR: kern/33032
MFC after: 1 month

22 years agoIntroduce a standard name for the lock protecting an interrupt controller
jhb [Thu, 20 Dec 2001 23:48:31 +0000 (23:48 +0000)]
Introduce a standard name for the lock protecting an interrupt controller
and it's associated state variables: icu_lock with the name "icu".  This
renames the imen_mtx for x86 SMP, but also uses the lock to protect
access to the 8259 PIC on x86 UP.  This also adds an appropriate lock to
the various Alpha chipsets which fixes problems with Alpha SMP machines
dropping interrupts with an SMP kernel.

22 years agoEnable soft updates by default for everything but the root filesystem.
jkh [Thu, 20 Dec 2001 23:39:30 +0000 (23:39 +0000)]
Enable soft updates by default for everything but the root filesystem.
The user can still toggle it back off in the label editor (or post-install
for that matter) if they explicitly do not want soft updates to be used
for some reason.

Agreed to be a good thing by: kirk

22 years agoFix typo. s/pa/va/. *blush*
peter [Thu, 20 Dec 2001 22:47:20 +0000 (22:47 +0000)]
Fix typo. s/pa/va/.  *blush*

22 years agoFix a BUF_TIMELOCK race against BUF_LOCK and fix a deadlock in vget()
dillon [Thu, 20 Dec 2001 22:42:27 +0000 (22:42 +0000)]
Fix a BUF_TIMELOCK race against BUF_LOCK and fix a deadlock in vget()
against VM_WAIT in the pageout code.  Both fixes involve adjusting
the lockmgr's timeout capability so locks obtained with timeouts do not
interfere with locks obtained without a timeout.

Hopefully MFC: before the 4.5 release

22 years agoAdd some remarks on em(4).
bmah [Thu, 20 Dec 2001 21:33:54 +0000 (21:33 +0000)]
Add some remarks on em(4).

MFC noted:  NFS/VM fixes.

22 years agoAdd uk_UA.ISO8859-5 locale
ache [Thu, 20 Dec 2001 20:48:31 +0000 (20:48 +0000)]
Add uk_UA.ISO8859-5 locale

PR: 32450
Submitted by: partially by Alexey Klimov <kao@wiuu.kiev.ua>

22 years agoFix codes
ache [Thu, 20 Dec 2001 20:33:30 +0000 (20:33 +0000)]
Fix codes

22 years agoDelete a release note regarding mergemaster(8) which, while true, was
bmah [Thu, 20 Dec 2001 19:45:14 +0000 (19:45 +0000)]
Delete a release note regarding mergemaster(8) which, while true, was
too vague to be useful.

22 years agoFix codes
ache [Thu, 20 Dec 2001 18:58:16 +0000 (18:58 +0000)]
Fix codes

PR: 33031
Submitted by: Statue <statue@softwareliberty.org>

22 years agostyle(9)'ify
phantom [Thu, 20 Dec 2001 18:28:52 +0000 (18:28 +0000)]
style(9)'ify

22 years ago-Remove unneeded include stddef.h
pdeuskar [Thu, 20 Dec 2001 17:55:49 +0000 (17:55 +0000)]
-Remove unneeded include stddef.h
-Modify modules Makefile so that em driver compiles only on
i386 platform. (Alpha not supported yet)

PR: kern/32993
MFC after: 1

22 years agoModified release note: syncache with syncookies.
bmah [Thu, 20 Dec 2001 17:42:49 +0000 (17:42 +0000)]
Modified release note:  syncache with syncookies.

22 years agoA case of ninfo (non-info)
wilko [Thu, 20 Dec 2001 17:25:45 +0000 (17:25 +0000)]
A case of ninfo (non-info)

Submitted by: Hans.VanSluis@compaq.com
MFC after: 1 month

22 years agoRecommend the use of 'noauto' for all remote filesystems other than
sheldonh [Thu, 20 Dec 2001 17:07:04 +0000 (17:07 +0000)]
Recommend the use of 'noauto' for all remote filesystems other than
NFS, so that rc(8) doesn't choke on them when it tries to mount
them before the network is initialized.

22 years agoNew release note: xl(4) bugfix.
bmah [Thu, 20 Dec 2001 16:45:21 +0000 (16:45 +0000)]
New release note:  xl(4) bugfix.

Modified release notes:  UFS_DIRHASH now in GENERIC,

MFC noted:  libfetch auth callback.

22 years agoUpdate smbfs release note for module-loading.
bmah [Thu, 20 Dec 2001 16:28:50 +0000 (16:28 +0000)]
Update smbfs release note for module-loading.

MFCs noted:  sbni driver, id(1) handles groups(1) and whoami(1),
sysctl(8) -e.

22 years agoCorrect the given path to nsmb.conf in the comments, now that it's
sheldonh [Thu, 20 Dec 2001 16:23:12 +0000 (16:23 +0000)]
Correct the given path to nsmb.conf in the comments, now that it's
corrected in libsmb.

22 years agoSupply SMB_CFG_FILE in CFLAGS. The newly imported smbfs-1.4.2
sheldonh [Thu, 20 Dec 2001 16:21:47 +0000 (16:21 +0000)]
Supply SMB_CFG_FILE in CFLAGS.  The newly imported smbfs-1.4.2
allows us to supply our own value for this, overriding the
default /usr/local/etc/nsmb.conf, which is not appropriate for
base system configuration files.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r88282,
sheldonh [Thu, 20 Dec 2001 16:16:25 +0000 (16:16 +0000)]
This commit was generated by cvs2svn to compensate for changes in r88282,
which included commits to RCS files with non-trunk default branches.

22 years agoImport smbfs-1.4.2.
sheldonh [Thu, 20 Dec 2001 16:16:25 +0000 (16:16 +0000)]
Import smbfs-1.4.2.

22 years agoUse correct mode for temporary file.
nectar [Thu, 20 Dec 2001 16:03:04 +0000 (16:03 +0000)]
Use correct mode for temporary file.

Reported by: ryan beasley <ryanb@goddamnbastard.org>

22 years agoPrevious commit was intented to silence a warning, not to change codepath.
bp [Thu, 20 Dec 2001 15:56:45 +0000 (15:56 +0000)]
Previous commit was intented to silence a warning, not to change codepath.

22 years agoAdd my e-mail to copyrights
phantom [Thu, 20 Dec 2001 15:30:02 +0000 (15:30 +0000)]
Add my e-mail to copyrights

22 years agoRe-enable tip, now that the import and merge are done.
markm [Thu, 20 Dec 2001 14:27:23 +0000 (14:27 +0000)]
Re-enable tip, now that the import and merge are done.

22 years agoFix merge conflicts, and because this still has a zillion warnings,
markm [Thu, 20 Dec 2001 14:25:46 +0000 (14:25 +0000)]
Fix merge conflicts, and because this still has a zillion warnings,
protect the build with a WARNS=2.

Fix the build.

22 years agoBring files back from the dead prior to remote commit to fix import
markm [Thu, 20 Dec 2001 13:40:48 +0000 (13:40 +0000)]
Bring files back from the dead prior to remote commit to fix import
conflicts.

22 years agoTemporarily remove tip(1) from the build while I upgrade it.
markm [Thu, 20 Dec 2001 13:01:47 +0000 (13:01 +0000)]
Temporarily remove tip(1) from the build while I upgrade it.

22 years agoSilence harmless "smbfs_closel: Negative opencount" messages at
sheldonh [Thu, 20 Dec 2001 11:23:49 +0000 (11:23 +0000)]
Silence harmless "smbfs_closel: Negative opencount" messages at
unmount time.

Thanks to iedowse for the background information.

Submitted by: bp

22 years agoAdd missing snd_ich_load entry.
jim [Thu, 20 Dec 2001 09:14:45 +0000 (09:14 +0000)]
Add missing snd_ich_load entry.

Noticed by: will
MFC after: 2 days

22 years agoActually make use of the md_version field of 'struct mdio'. In order
dd [Thu, 20 Dec 2001 06:38:21 +0000 (06:38 +0000)]
Actually make use of the md_version field of 'struct mdio'.  In order
not to needlessly break compatibility, decrement MDIOVERSION to 0.

Approved by: phk

22 years agoI am not sure if it is a good idea or not to have my id in the cvs log
peter [Thu, 20 Dec 2001 05:34:49 +0000 (05:34 +0000)]
I am not sure if it is a good idea or not to have my id in the cvs log
for this file, but here goes nothing.  This was my first attempt at
tidying up this file.  Unfortunately, it just exposes many more horrors
in the code itself that had been masked by the eyesore that was there
before.  I think this just needs to be put out of its misery.

22 years agoReplace a bunch of:
peter [Thu, 20 Dec 2001 05:29:59 +0000 (05:29 +0000)]
Replace a bunch of:
      for (pv = TAILQ_FIRST(&m->md.pv_list);
               pv;
               pv = TAILQ_NEXT(pv, pv_list)) {
with:
      TAILQ_FOREACH(pv, &m->md.pv_list, pv_list) {

22 years agoAdd Apple's filesystem exercising tool.
jkh [Thu, 20 Dec 2001 04:15:57 +0000 (04:15 +0000)]
Add Apple's filesystem exercising tool.

Submitted by:   Conrad Minshall <conrad@apple.com>
Obtained from:  Apple Computer

22 years agoFix some whitespace nits, and a minor error that I made in some unused
peter [Thu, 20 Dec 2001 03:49:31 +0000 (03:49 +0000)]
Fix some whitespace nits, and a minor error that I made in some unused
#ifdef DEBUG code (VM_MAXUSER_ADDRESS vs UPT_MAX_ADDRESS).

22 years agoFix some whitespace nits, converge with other pmap.c's
peter [Thu, 20 Dec 2001 03:44:43 +0000 (03:44 +0000)]
Fix some whitespace nits, converge with other pmap.c's

22 years agoThis commit was generated by cvs2svn to compensate for changes in r88237,
peter [Thu, 20 Dec 2001 02:23:44 +0000 (02:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r88237,
which included commits to RCS files with non-trunk default branches.

22 years agoFix the 'nm' -> segfault bug (on the vendor branch). This has been fixed
peter [Thu, 20 Dec 2001 02:23:44 +0000 (02:23 +0000)]
Fix the 'nm' -> segfault bug (on the vendor branch).  This has been fixed
the same way in the cygnus base source.  The problem was that bfd was
writing to memory obtained from malloc(0).    The next import will update
this if necessary.  I'm not sure of the origins of this patch.

Discussed with: obrien

22 years agoMention that the Xircom and Conexant chips are supported in
wpaul [Thu, 20 Dec 2001 00:02:13 +0000 (00:02 +0000)]
Mention that the Xircom and Conexant chips are supported in
the dc(4) man page.

22 years agoPseudofs was leaking VFS cache entries badly due to its cache and use of
dillon [Wed, 19 Dec 2001 23:58:09 +0000 (23:58 +0000)]
Pseudofs was leaking VFS cache entries badly due to its cache and use of
the wrong VOP descriptor.  This misuse caused VFS-cached vnodes to be
re-cached, resulting in the leak.  This commit is an interim fix until DES
has a chance to rework the code involved.

22 years agoClarify dirprefs release note.
bmah [Wed, 19 Dec 2001 23:38:11 +0000 (23:38 +0000)]
Clarify dirprefs release note.

22 years agoAdd missing {} to 'for'. It fix coredump (result of NetBSD changes merge)
ache [Wed, 19 Dec 2001 22:25:11 +0000 (22:25 +0000)]
Add missing {} to 'for'. It fix coredump (result of NetBSD changes merge)

22 years agoAdd (unsigned char) cast to ctype macros
ache [Wed, 19 Dec 2001 21:50:22 +0000 (21:50 +0000)]
Add (unsigned char) cast to ctype macros
ftell->ftello, fseek->fseeko
File 'newsize' type int->off_t
Add visible (long) cast to fsize() when it called to small one message file and
result is assigned to long.

22 years agoFix
phk [Wed, 19 Dec 2001 21:19:43 +0000 (21:19 +0000)]
Fix
        md5 -q -s foo
to not expect input on stdin after hashing the string.

MFC after:      1 week

22 years agoComment out DEVICE_POLLING so that LINT compiles again.
phk [Wed, 19 Dec 2001 20:53:54 +0000 (20:53 +0000)]
Comment out DEVICE_POLLING so that LINT compiles again.

22 years agoMake this driver a better citizen by moving dev creation and
imp [Wed, 19 Dec 2001 19:37:31 +0000 (19:37 +0000)]
Make this driver a better citizen by moving dev creation and
other initialization into attach from probe.  Also hide a few
printfs behind a bootverbose.

approved in principle by: phk

22 years agoCalculate whether the sbuf is dynamic *before* bzero()ing the
dillon [Wed, 19 Dec 2001 19:04:57 +0000 (19:04 +0000)]
Calculate whether the sbuf is dynamic *before* bzero()ing the
structure.  This fixes a serious memory leak in the sbuf code.

MFC after: 3 days

22 years agoCorrect unexpected interrupt detection.
orion [Wed, 19 Dec 2001 18:26:53 +0000 (18:26 +0000)]
Correct unexpected interrupt detection.

22 years agoFix the "conexant chips don't work in full duplexmode" problem. According
wpaul [Wed, 19 Dec 2001 18:23:45 +0000 (18:23 +0000)]
Fix the "conexant chips don't work in full duplexmode" problem. According
to Phil Kernick:

"The problem is that in full duplex mode, the Conexant chip always reports a
carrier lost error, even when the frame is successfully sent.  So, if we
have a Conexant chip, then ignore carrier lost when in full duplex
mode."

Since the Xircom chips seem to have the same issue and since we already
have a workaround for this, just expand the workaround test to also
check for DC_IS_CONEXANT().

22 years agoFix compiler warning in dc_intr(): if the only code that does a "goto"
wpaul [Wed, 19 Dec 2001 18:13:44 +0000 (18:13 +0000)]
Fix compiler warning in dc_intr(): if the only code that does a "goto"
to a label is inside an #ifdef block, then the label should *also* be
inside an #ifdef block. Hide the "done:" label which is only used if
DEVICE_POLLING is enabled under #ifdef DEVICE_POLLING.

22 years agoNitlets.
orion [Wed, 19 Dec 2001 18:04:04 +0000 (18:04 +0000)]
Nitlets.

22 years agoClear resume interrupts - these can occur during initialization and
orion [Wed, 19 Dec 2001 17:38:38 +0000 (17:38 +0000)]
Clear resume interrupts - these can occur during initialization and
must be cleared to prevent machine hanging (presently aflicts -current
and -stable).

Problem reported by Bruce Montague <brucem@cse.iitkgp.ernet.in>

PR: kern/29769 (probably)

22 years agoDon't assume that /var/run and /var/spool/lock are on the same
brian [Wed, 19 Dec 2001 16:10:25 +0000 (16:10 +0000)]
Don't assume that /var/run and /var/spool/lock are on the same
partition.

Submitted by: ru

22 years agoIt's no longer necessary to ensure that ``gate'' is set when RTF_GATEWAY
brian [Wed, 19 Dec 2001 16:05:27 +0000 (16:05 +0000)]
It's no longer necessary to ensure that ``gate'' is set when RTF_GATEWAY
is passed, as subsequent code does that check now anyway.

Submitted by: ru

22 years agoOnly call rt_getifa() if we've either been passed a gateway or
brian [Wed, 19 Dec 2001 16:03:27 +0000 (16:03 +0000)]
Only call rt_getifa() if we've either been passed a gateway or
if we've been given an RTA_IFP or changed RTA_IFA sockaddr.

This fixes the following bug:
  >/dev/tun100
  >/dev/tun101
  ifconfig tun100 1.2.3.4 5.6.7.8
  ifconfig tun101 1.2.3.4 6.7.8.9
  route change 6.7.8.9 -ifa 1.2.3.4 -iface -mtu 500
which erroneously changed tun101's host route to have an ifp of tun100
(rt_getifa() sets the ifp after calling ifa_ifwithnet(1.2.3.4))

This incarnation submitted by: ru

22 years agoWhen storing an int value in a void *, use intptr_t as the cast type
jlemon [Wed, 19 Dec 2001 15:57:43 +0000 (15:57 +0000)]
When storing an int value in a void *, use intptr_t as the cast type
(instead of int) to keep the 64 bit platforms happy.

22 years agoDon't try to free a NULL route when doing IPFIREWALL_FORWARD.
yar [Wed, 19 Dec 2001 14:54:13 +0000 (14:54 +0000)]
Don't try to free a NULL route when doing IPFIREWALL_FORWARD.
An old route will be NULL at that point if a packet were initially
routed to an interface (using the IP_ROUTETOIF flag.)

Submitted by: Igor Timkin <ivt@gamma.ru>

22 years agoAdd another PS2 PNP id.
sheldonh [Wed, 19 Dec 2001 13:32:21 +0000 (13:32 +0000)]
Add another PS2 PNP id.

PR: 32973
Submitted by: KT Sin <ktsin@acm.org>

22 years agoAllow retrieval of the virtual address of the AGP aperture
mdodd [Wed, 19 Dec 2001 08:54:29 +0000 (08:54 +0000)]
Allow retrieval of the virtual address of the AGP aperture
using agp_get_info().

MFC after: 1 week

22 years agoDon't put variable declarations in header files, put prototypes.
mdodd [Wed, 19 Dec 2001 08:49:11 +0000 (08:49 +0000)]
Don't put variable declarations in header files, put prototypes.

'pci_devq' provides useful information now.

22 years agoMake ``df -l'' work when no network filesystems are loaded.
ru [Wed, 19 Dec 2001 08:38:02 +0000 (08:38 +0000)]
Make ``df -l'' work when no network filesystems are loaded.

PR: bin/32397

22 years agoExtend the SYN DoS defense by adding syncookies to the syncache.
jlemon [Wed, 19 Dec 2001 06:12:14 +0000 (06:12 +0000)]
Extend the SYN DoS defense by adding syncookies to the syncache.
All TCP ISNs that are sent out are valid cookies, which allows entries
in the syncache to be dropped and still have the ACK accepted later.
As all entries pass through the syncache, there is no sudden switchover
from cache -> cookies when the cache is full; instead, syncache entries
simply have a reduced lifetime.  More details may be found in the
"Resisting DoS attacks with a SYN cache" paper in the Usenix BSDCon 2002
conference proceedings.

Sponsored by: DARPA, NAI Labs

22 years agoxinstall is part of the upgrade path for 4.4-RELEASE as well.
imp [Wed, 19 Dec 2001 06:05:42 +0000 (06:05 +0000)]
xinstall is part of the upgrade path for 4.4-RELEASE as well.
Do the usualy ifdef trick here.

Reported by: dworkin muller <addr-removed> and faried nawaz <fn@hungry.com>

22 years agoForced commit: Previous commit message should have read:
bmah [Wed, 19 Dec 2001 05:34:40 +0000 (05:34 +0000)]
Forced commit:  Previous commit message should have read:

MFCs noted:  sh(1) "test" built-in, ftpd(8) -o/-O

22 years agoMFC: ftpd(8) -o/-O.
bmah [Wed, 19 Dec 2001 05:30:35 +0000 (05:30 +0000)]
MFC:  ftpd(8) -o/-O.

Requested by: sheldonh

22 years agoNew release note: i386 performance enhancements for dc(4) and sis(4).
bmah [Wed, 19 Dec 2001 05:21:43 +0000 (05:21 +0000)]
New release note:  i386 performance enhancements for dc(4) and sis(4).

Suggested by: luigi

22 years agoDisplay the right message for the SiS 645 chipset.
jhb [Wed, 19 Dec 2001 01:53:11 +0000 (01:53 +0000)]
Display the right message for the SiS 645 chipset.

Submitted by: Kent Stewart <kstewart@owt.com>

22 years agoDo not initialize static/global variables to 0. Use bss instead of
peter [Wed, 19 Dec 2001 01:35:18 +0000 (01:35 +0000)]
Do not initialize static/global variables to 0. Use bss instead of
taking up space in the data section.