]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoWarn that hex keys are the most portable.
imp [Mon, 12 Aug 2002 06:59:04 +0000 (06:59 +0000)]
Warn that hex keys are the most portable.

Submitted by: Gregory Bond <gnb@itga.com.au>
Pr: 40872

21 years agoAssert that the inpcb lock is held when calling tcp_output().
jennifer [Mon, 12 Aug 2002 03:22:46 +0000 (03:22 +0000)]
Assert that the inpcb lock is held when calling tcp_output().

Approved by: hsu

21 years agoDeclare a module service "kernel_mac_support" when MAC support is
rwatson [Mon, 12 Aug 2002 02:00:21 +0000 (02:00 +0000)]
Declare a module service "kernel_mac_support" when MAC support is
enabled and the kernel provides the MAC registration and entry point
service.  Declare a dependency on that module service for any
MAC module registered using mac_policy.h.  For now, hard code the
version as 1, but once we've come up with a versioning policy, we'll
move to a #define of some sort.  In the mean time, this will prevent
loading a MAC module when 'options MAC' isn't present, which (due to
a bug in the kernel linker) can result if the MAC module is preloaded
via loader.conf.

This particular evil recommended by: peter
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI LAbs

21 years agoIntroduce IO_NOMACCHECK, a flag that will be passed to vn_rdwr() to
rwatson [Mon, 12 Aug 2002 01:54:10 +0000 (01:54 +0000)]
Introduce IO_NOMACCHECK, a flag that will be passed to vn_rdwr() to
indicate that the calling code has already performed necessary MAC
checks (if any) for this operation.  This flag will help resolve
layering problems that existing because vn_rdwr() is called both
on behalf of user processes directly (such as in system calls of
various sorts, during core dumps, etc), as well as deep in the file
system code on behalf of the file system (such as in UFS, ext2fs,
etc).  Code that is acting on behalf of a kernel service rather
than explicitly on behalf of a user process will specify this flag.
By default, MAC checks will be performed (and generally should
be performed).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoAdd necessary instrumentation to IBCS2 emulation support for mandatory
rwatson [Mon, 12 Aug 2002 01:45:40 +0000 (01:45 +0000)]
Add necessary instrumentation to IBCS2 emulation support for mandatory
access control: as with SVR4, very few changes required since almost
all services are implemented by wrapping existing native FreeBSD
system calls.  Only readdir() calls need additional instrumentation.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoEnforce MAC policies for the locally implemented vnode services in
rwatson [Mon, 12 Aug 2002 01:42:21 +0000 (01:42 +0000)]
Enforce MAC policies for the locally implemented vnode services in
SVR4 emulation relating to readdir() and fd_revoke().  All other
services appear to be implemented by simply wrapping existing
FreeBSD native system call implementations, so don't require local
instrumentation in the emulator module.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoAdd opt_mac.h to dependencies for svr4 module, since I'm about to
rwatson [Mon, 12 Aug 2002 01:36:20 +0000 (01:36 +0000)]
Add opt_mac.h to dependencies for svr4 module, since I'm about to
commit the MAC checks for it.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoAnother fix that wasn't pulled in from the MAC branch: the
rwatson [Mon, 12 Aug 2002 01:24:26 +0000 (01:24 +0000)]
Another fix that wasn't pulled in from the MAC branch: the
struct mount is not cached as *mp at this point, so use
vp->v_mount directly, following the check that it's non-NULL.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoFix missing parens in MAC readdir() check. This fix was in the MAC
rwatson [Mon, 12 Aug 2002 01:18:33 +0000 (01:18 +0000)]
Fix missing parens in MAC readdir() check.  This fix was in the MAC
branch, but apparently didn't get moved over when it was made.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoTeach the OSF/1 emulation layer a little more about mandatory access
rwatson [Mon, 12 Aug 2002 01:16:55 +0000 (01:16 +0000)]
Teach the OSF/1 emulation layer a little more about mandatory access
control: perform checks during OSF/1 statfs()-related calls by
invoking mac_check_mount_stat().

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoAdd support for the LSI-Logic Fusion/MP architecture.
mjacob [Sun, 11 Aug 2002 23:34:20 +0000 (23:34 +0000)]
Add support for the LSI-Logic Fusion/MP architecture.

This is an architecture that present a thing message passing interface
to the OS. You can query as to how many ports and what kind are attached
and enable them and so on.

A less grand view is that this is just another way to package SCSI (SPI or
FC) and FC-IP into a one-driver interface set.

This driver support the following hardware:

LSI FC909: Single channel, 1Gbps, Fibre Channel (FC-SCSI only)
LSI FC929: Dual Channel, 1-2Gbps, Fibre Channel (FC-SCSI only)
LSI 53c1020: Single Channel, Ultra4 (320M) (Untested)
LSI 53c1030: Dual Channel, Ultra4 (320M)

Currently it's in fair shape, but expect a lot of changes over the
next few weeks as it stabilizes.

Credits:

The driver is mostly from some folks from Jeff Roberson's company- I've
been slowly migrating it to broader support that I it came to me as.

The hardware used in developing support came from:

FC909: LSI-Logic, Advansys (now Connetix)
FC929: LSI-Logic
53c1030: Antares Microsystems (they make a very fine board!)

MFC after: 3 weeks

21 years agoAdd the uftdi ucom driver which supports the following adapters:
joe [Sun, 11 Aug 2002 23:32:33 +0000 (23:32 +0000)]
Add the uftdi ucom driver which supports the following adapters:

Inland UAS111
QVS USC-1000
HP USB-Serial adapter shipped with some HP laptops

Submitted by: takawata
MFC After: 7 days

21 years agoRegen
joe [Sun, 11 Aug 2002 21:19:18 +0000 (21:19 +0000)]
Regen

21 years agoAdd Palm M515.
joe [Sun, 11 Aug 2002 21:11:14 +0000 (21:11 +0000)]
Add Palm M515.

Submitted by: Luiz Eduardo Roncato Cordeiro <cordeiro@nic.br>

21 years ago - Call a SHT_REL 'relocation section' rather than
robert [Sun, 11 Aug 2002 21:07:50 +0000 (21:07 +0000)]
 - Call a SHT_REL 'relocation section' rather than
   'relation section'.
 - Put a space between a word and the end of comment delimiter.

21 years agoFix sendfile(), who was calling vn_rdwr() without aresid parameter and
semenu [Sun, 11 Aug 2002 20:33:11 +0000 (20:33 +0000)]
Fix sendfile(), who was calling vn_rdwr() without aresid parameter and
thus hiting EIO at the end of file. This is believed to be a feature
(not a bug) of vn_rdwr(), so we turn it off by supplying aresid param.

Reviewed by: rwatson, dg

21 years agoFix conjugation of exists and add full stops to the messages I changed.
dwmalone [Sun, 11 Aug 2002 20:31:16 +0000 (20:31 +0000)]
Fix conjugation of exists and add full stops to the messages I changed.

PR: 38481
Submitted by: Kevin Kinsey <kadmin@elisha.daleco.biz>
MFC after: 1 week

21 years agoAdd a missing copyright for Doug. There are other files missing this
dwmalone [Sun, 11 Aug 2002 19:31:02 +0000 (19:31 +0000)]
Add a missing copyright for Doug. There are other files missing this
copyright in -stable.

PR: 41397
Submitted by: dfr

21 years ago o Make a correction to the last change: In aio_cancel(2) return AIO_ALLDONE
alc [Sun, 11 Aug 2002 19:04:17 +0000 (19:04 +0000)]
 o Make a correction to the last change: In aio_cancel(2) return AIO_ALLDONE
   instead of EINVAL if p->p_aioinfo is NULL.

21 years agoMake kern.log_console_output a tuneable aswell as a sysctl.
dwmalone [Sun, 11 Aug 2002 18:47:42 +0000 (18:47 +0000)]
Make kern.log_console_output a tuneable aswell as a sysctl.

MFC after: 1 week

21 years agoFix a bug where you couldn't start top in a very small window. Now
dwmalone [Sun, 11 Aug 2002 18:37:25 +0000 (18:37 +0000)]
Fix a bug where you couldn't start top in a very small window.  Now
you can start it in a small window, but it doesn't always display
anything sensible. Resizing the window does work though.

The patch is a slightly simpler one than Sheldon's in the PR.

PR: 21075

21 years agoadd experimental support for Data over Voice (DoV) outgoing calls.
hm [Sun, 11 Aug 2002 15:47:26 +0000 (15:47 +0000)]
add experimental support for Data over Voice (DoV) outgoing calls.
based on patches received from Guy Ellis (guy@traverse.com.au),
Chris Collins (xfire@xware.cx) and Phillip Musumeci (phillip@cs.jcu.edu.au).

21 years agoSimplify some things to use libufs-provided functionality here, such as the
jmallett [Sun, 11 Aug 2002 15:38:51 +0000 (15:38 +0000)]
Simplify some things to use libufs-provided functionality here, such as the
version of UFS on a disk, and bread() instead of other types of idiocy.

Obtained from: jmallett_libufs Perforce branch.

21 years ago Initialise disk->d_ufs so that in sblock.c it's always initialised
jmallett [Sun, 11 Aug 2002 15:37:10 +0000 (15:37 +0000)]
Initialise disk->d_ufs so that in sblock.c it's always initialised
(unless someone tries to use libufs support functions without using
_fillout or _ctor to construct a uufsd.)

Obtained from: jmallett_libufs Perforce branch.

21 years agoUpdate manpage to match the code, vfsload() isn't used
mux [Sun, 11 Aug 2002 15:21:06 +0000 (15:21 +0000)]
Update manpage to match the code, vfsload() isn't used
here since some time, kldload() is used instead.

21 years agoUpdate manpage to match the code, vfsload() is not used
mux [Sun, 11 Aug 2002 15:19:49 +0000 (15:19 +0000)]
Update manpage to match the code, vfsload() is not used
here since some time, kldload() is used instead.

21 years agoUpdate manpage to match the code, we don't use
mux [Sun, 11 Aug 2002 15:18:41 +0000 (15:18 +0000)]
Update manpage to match the code, we don't use
vfsload() here anymore.

21 years agoUpdate the manpage to match the code. The mount utilities
mux [Sun, 11 Aug 2002 15:17:01 +0000 (15:17 +0000)]
Update the manpage to match the code.  The mount utilities
now don't try to load the filesystem module, the kernel takes
care of this.

21 years agoPc98 does not have the agp device.
nyan [Sun, 11 Aug 2002 13:23:59 +0000 (13:23 +0000)]
Pc98 does not have the agp device.

21 years agoFix typos; each file has at least one s/seperat/separat/
schweikh [Sun, 11 Aug 2002 13:05:30 +0000 (13:05 +0000)]
Fix typos; each file has at least one s/seperat/separat/
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.

Suggested by: bde
MFC after: 3 days

21 years agoThe kldload() system call doesn't return 0 when it succeeded,
mux [Sun, 11 Aug 2002 11:32:02 +0000 (11:32 +0000)]
The kldload() system call doesn't return 0 when it succeeded,
so compare the return value against -1 to see if it failed
instead of simply doing if (kldload("nfs")).

21 years agomain.c:450: warning: `targs' might be used uninitialized in this function
ru [Sun, 11 Aug 2002 11:10:43 +0000 (11:10 +0000)]
main.c:450: warning: `targs' might be used uninitialized in this function

Spotted by: patrick@godloveya.com, naddy, -Wuninitialized

This segfaulted alpha and sparc64; i386 had this magically zeroed.

21 years agoLocale environment variables influence wc(1) regardless of whether the
tjr [Sun, 11 Aug 2002 10:54:19 +0000 (10:54 +0000)]
Locale environment variables influence wc(1) regardless of whether the
-m option is specified; correct ENVIRONMENT section.

21 years agoUse the iswspace(3) function now that it's been implemented.
tjr [Sun, 11 Aug 2002 10:52:13 +0000 (10:52 +0000)]
Use the iswspace(3) function now that it's been implemented.

21 years agoCorrect boundary condition error in `D' and `P' commands when the last
tjr [Sun, 11 Aug 2002 09:53:44 +0000 (09:53 +0000)]
Correct boundary condition error in `D' and `P' commands when the last
line of the pattern space is empty. Don't emit spurious newline when
EOF is reached with the `N' command.

Pointed out by: Oleg Osyka
MFC after: 1 week

21 years agoFollow NetBSD's lead and use WI_PORTTYPE_HOSTAP instead of _AP, since
imp [Sun, 11 Aug 2002 08:51:08 +0000 (08:51 +0000)]
Follow NetBSD's lead and use WI_PORTTYPE_HOSTAP instead of _AP, since
_AP might be used in the future for cards with firmware that does AP in
firmware.

21 years ago o In aio_cancel(2), make sure that p->p_aioinfo isn't NULL before
alc [Sun, 11 Aug 2002 04:09:14 +0000 (04:09 +0000)]
 o In aio_cancel(2), make sure that p->p_aioinfo isn't NULL before
   dereferencing it.

Submitted by: saureen <sshah@apple.com>

21 years agoAllow redirections by themselves between "&&" and "||" operators.
tjr [Sun, 11 Aug 2002 03:04:23 +0000 (03:04 +0000)]
Allow redirections by themselves between "&&" and "||" operators.
For example, >/dev/null && echo foo

Pointed out by: FUJISHIMA Satsuki
MFC after: 1 week

21 years agoAdd #include <sys/sysctl.h>. In my tree, mount.h includes
mux [Sun, 11 Aug 2002 02:07:43 +0000 (02:07 +0000)]
Add #include <sys/sysctl.h>.  In my tree, mount.h includes
sysctl.h and I was depending on this namespace pollution.

Submitted by: jake

21 years agoDon't #ifdef _KERNEL struct vfsconf, mount_smbfs(8)
mux [Sun, 11 Aug 2002 02:03:44 +0000 (02:03 +0000)]
Don't #ifdef _KERNEL struct vfsconf, mount_smbfs(8)
still uses it.

Submitted by: jake

21 years agoOne declaration for struct xvfsconf is enough. I have
mux [Sun, 11 Aug 2002 01:59:11 +0000 (01:59 +0000)]
One declaration for struct xvfsconf is enough.  I have
no idea how this happened. :-)

Reported by: Norman C. Rice <nrice@emu.sourcee.com>

21 years agoWhitespace cleanup--it's not style(9), but it is consistent. Prep
rwatson [Sun, 11 Aug 2002 01:48:43 +0000 (01:48 +0000)]
Whitespace cleanup--it's not style(9), but it is consistent.  Prep
for MAC-related commits to the login infrastructure.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years ago o Assert that the page queues lock is held in vm_page_activate().
alc [Sun, 11 Aug 2002 00:21:40 +0000 (00:21 +0000)]
 o Assert that the page queues lock is held in vm_page_activate().

21 years ago o Lock page queue accesses by vm_page_activate().
alc [Sun, 11 Aug 2002 00:14:10 +0000 (00:14 +0000)]
 o Lock page queue accesses by vm_page_activate().

21 years ago o Lock page queue accesses by vm_page_activate().
alc [Sat, 10 Aug 2002 23:53:59 +0000 (23:53 +0000)]
 o Lock page queue accesses by vm_page_activate().

21 years ago o Move a call to vm_page_wakeup() inside the scope of the page queues lock.
alc [Sat, 10 Aug 2002 23:27:06 +0000 (23:27 +0000)]
 o Move a call to vm_page_wakeup() inside the scope of the page queues lock.

21 years agoAuto size available kernel virtual address space based on phsyical memory
jake [Sat, 10 Aug 2002 22:14:16 +0000 (22:14 +0000)]
Auto size available kernel virtual address space based on phsyical memory
size.  This avoids blowing out kva in kmeminit() on large memory machines
(4 gigs or more).

Reviewed by: tmm

21 years agoRemove some unnecessary sanity checks that break "sh MAKEDEV cd"
iedowse [Sat, 10 Aug 2002 22:03:58 +0000 (22:03 +0000)]
Remove some unnecessary sanity checks that break "sh MAKEDEV cd"
and others, because test(1) does not do shortcut evaluation.

Fix the same off-by-one error for acd*t* that revision 1.326 fixed
for other *cd devices.

Suggested by: bde
Reviewed by: bde

21 years ago- Introduce a new struct xvfsconf, the userland version of struct vfsconf.
mux [Sat, 10 Aug 2002 20:19:04 +0000 (20:19 +0000)]
- Introduce a new struct xvfsconf, the userland version of struct vfsconf.
- Make getvfsbyname() take a struct xvfsconf *.
- Convert several consumers of getvfsbyname() to use struct xvfsconf.
- Correct the getvfsbyname.3 manpage.
- Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the
  kernel, and rewrite getvfsbyname() to use this instead of the weird
  existing API.
- Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist
  sysctl.
- Convert a vfsload() call in nfsiod.c to kldload() and remove the useless
  vfsisloadable() and endvfsent() calls.
- Add a warning printf() in vfs_sysctl() to tell people they are using
  an old userland.

After these changes, it's possible to modify struct vfsconf without
breaking the binary compatibility.  Please note that these changes don't
break this compatibility either.

When bp will have updated mount_smbfs(8) with the patch I sent him, there
will be no more consumers of the {set,get,end}vfsent(), vfsisloadable()
and vfsload() API, and I will promptly delete it.

21 years agoIntroduce a new sysctl flag, CTLFLAG_SKIP, which will cause
mux [Sat, 10 Aug 2002 19:56:45 +0000 (19:56 +0000)]
Introduce a new sysctl flag, CTLFLAG_SKIP, which will cause
sysctl_sysctl_next() to skip this sysctl.  The sysctl is
still available, but doesn't appear in a "sysctl -a".

This is especially useful when you want to deprecate a sysctl,
and add a warning into it to warn users that they are using
an old interface.  Without this flag, the warning would get
echoed when running "sysctl -a" (which happens at boot).

21 years agoFix GET_TRAN_SETTINGS to be more correct.
scottl [Sat, 10 Aug 2002 19:55:00 +0000 (19:55 +0000)]
Fix GET_TRAN_SETTINGS to be more correct.
Don't allow SCSI resets on the 5400S card, it seems to cause problems with
certain backplanes.

Submitted by: lnb@freebsdsystems.com
MFC after: 3 days

21 years agoFix the GET_TRAN_SETTINGS and SET_TRAN_SETTINGS ops to be more correct.
scottl [Sat, 10 Aug 2002 19:48:27 +0000 (19:48 +0000)]
Fix the GET_TRAN_SETTINGS and SET_TRAN_SETTINGS ops to be more correct.

21 years ago o Use the VM_ALLOC_WIRED flag instead of calling vm_page_wire().
alc [Sat, 10 Aug 2002 18:42:13 +0000 (18:42 +0000)]
 o Use the VM_ALLOC_WIRED flag instead of calling vm_page_wire().

21 years ago o Remove the setting and clearing of the PG_MAPPED flag from the alpha and
alc [Sat, 10 Aug 2002 18:01:39 +0000 (18:01 +0000)]
 o Remove the setting and clearing of the PG_MAPPED flag from the alpha and
   ia64 pmap.
 o Remove the PG_MAPPED flag's declaration.

21 years agoAdd missing ";". General entities should always have &foo; form.
hrs [Sat, 10 Aug 2002 17:34:49 +0000 (17:34 +0000)]
Add missing ";".  General entities should always have &foo; form.

21 years ago o Remove the setting and clearing of the PG_MAPPED flag. (This flag is
alc [Sat, 10 Aug 2002 17:14:14 +0000 (17:14 +0000)]
 o Remove the setting and clearing of the PG_MAPPED flag.  (This flag is
   obsolete.)

21 years agoFix one parsing bug introduced by last commit, and correct parsing
luigi [Sat, 10 Aug 2002 15:10:15 +0000 (15:10 +0000)]
Fix one parsing bug introduced by last commit, and correct parsing
and printing of or-blocks in address, ports and options lists.

21 years agoMajor revision of the ipfw manpage, trying to make it up-to-date
luigi [Sat, 10 Aug 2002 15:04:40 +0000 (15:04 +0000)]
Major revision of the ipfw manpage, trying to make it up-to-date
with ipfw2 extensions and give examples of use of the new features.

This is just a preliminary commit, where i simply added the basic
syntax for the extensions, and clean up the page (e.g. by listing
things in alphabetical rather than random order).
I would appreciate feedback and possible corrections/extensions
by interested parties.

Still missing are a more detailed description of stateful rules
(with keepalives), interaction with of stateful rules and natd (don't do
that!), examples of use with the recently introduced rule sets.

There is an issue related to the MFC: RELENG_4 still has ipfw as a
default, and ipfw2 is optional. We have two options here: MFC this
page as ipfw(8) adding a large number of "SORRY NOT IN IPFW" notes,
or create a new ipfw2(8) manpage just for -stable users.  I am all
for the first approach, but of course am listening to your comments.

21 years agoMinor corrections.
sos [Sat, 10 Aug 2002 11:56:03 +0000 (11:56 +0000)]
Minor corrections.

Suggested by: scottl <Scott Long>

21 years agoAdd break's to case blocks.
mikeh [Sat, 10 Aug 2002 08:42:10 +0000 (08:42 +0000)]
Add break's to case blocks.

PR: bin/41511
Submitted by: Daniel Hagan <dhagan@acm.vt.edu>

21 years ago o Remove the setting and clearing of the PG_MAPPED flag. (This flag is
alc [Sat, 10 Aug 2002 07:40:30 +0000 (07:40 +0000)]
 o Remove the setting and clearing of the PG_MAPPED flag.  (This flag is
   obsolete.)

21 years ago o Remove the setting and clearing of the PG_MAPPED flag. (This flag is
alc [Sat, 10 Aug 2002 07:11:16 +0000 (07:11 +0000)]
 o Remove the setting and clearing of the PG_MAPPED flag.  (This flag is
   obsolete.)

21 years agoWhen we allocate our bus address via the kludge that we have in the
imp [Sat, 10 Aug 2002 06:37:32 +0000 (06:37 +0000)]
When we allocate our bus address via the kludge that we have in the
code to do it when the bios doesn't do it for us, flag it.  Then, when
we dealloc, do an equal kludge to get rid of the address.  This should
address the can't get IRQ and panic bug in a more graceful way.

# really should write a dealloc routine and just call it instead, since
# this might not fix things in the kldunload case.

21 years agoconfirmed OZ6912 and 6972 share same pci ID
imp [Sat, 10 Aug 2002 06:35:03 +0000 (06:35 +0000)]
confirmed OZ6912 and 6972 share same pci ID

21 years agotruss hasn't been ported to ia64 yet.
jake [Sat, 10 Aug 2002 06:10:17 +0000 (06:10 +0000)]
truss hasn't been ported to ia64 yet.

Noticed by: ru

21 years agoxlint seems to build fine on sparc64.
jake [Sat, 10 Aug 2002 05:44:44 +0000 (05:44 +0000)]
xlint seems to build fine on sparc64.

21 years agoPut getconf in the right place.
jake [Sat, 10 Aug 2002 05:43:40 +0000 (05:43 +0000)]
Put getconf in the right place.

21 years agoOne bugfix and one new feature.
luigi [Sat, 10 Aug 2002 04:37:32 +0000 (04:37 +0000)]
One bugfix and one new feature.

The bugfix (ipfw2.c) makes the handling of port numbers with
a dash in the name, e.g. ftp-data, consistent with old ipfw:
use \\ before the - to consider it as part of the name and not
a range separator.

The new feature (all this description will go in the manpage):

each rule now belongs to one of 32 different sets, which can
be optionally specified in the following form:

ipfw add 100 set 23 allow ip from any to any

If "set N" is not specified, the rule belongs to set 0.

Individual sets can be disabled, enabled, and deleted with the commands:

ipfw disable set N
ipfw enable set N
ipfw delete set N

Enabling/disabling of a set is atomic. Rules belonging to a disabled
set are skipped during packet matching, and they are not listed
unless you use the '-S' flag in the show/list commands.
Note that dynamic rules, once created, are always active until
they expire or their parent rule is deleted.
Set 31 is reserved for the default rule and cannot be disabled.

All sets are enabled by default. The enable/disable status of the sets
can be shown with the command

ipfw show sets

Hopefully, this feature will make life easier to those who want to
have atomic ruleset addition/deletion/tests. Examples:

To add a set of rules atomically:

ipfw disable set 18
ipfw add ... set 18 ... # repeat as needed
ipfw enable set 18

To delete a set of rules atomically

ipfw disable set 18
ipfw delete set 18
ipfw enable set 18

To test a ruleset and disable it and regain control if something
goes wrong:

ipfw disable set 18
ipfw add ... set 18 ...         # repeat as needed
ipfw enable set 18 ; echo "done "; sleep 30 && ipfw disable set 18

    here if everything goes well, you press control-C before
    the "sleep" terminates, and your ruleset will be left
    active. Otherwise, e.g. if you cannot access your box,
    the ruleset will be disabled after the sleep terminates.

I think there is only one more thing that one might want, namely
a command to assign all rules in set X to set Y, so one can
test a ruleset using the above mechanisms, and once it is
considered acceptable, make it part of an existing ruleset.

21 years agoAdd ia64 to platforms supported by em(4).
bmah [Sat, 10 Aug 2002 03:39:05 +0000 (03:39 +0000)]
Add ia64 to platforms supported by em(4).

21 years agoMy quad cpu itanium2 box has its cpu's numbered with a lid starting
peter [Sat, 10 Aug 2002 03:36:42 +0000 (03:36 +0000)]
My quad cpu itanium2 box has its cpu's numbered with a lid starting
at 192.  Masking off bottom 4 bits is not very good here.

21 years agoNew release notes: No more TurboChannel Alpha support, drivers.flp.
bmah [Sat, 10 Aug 2002 03:35:58 +0000 (03:35 +0000)]
New release notes:  No more TurboChannel Alpha support, drivers.flp.

Modified release notes:  em(4) has been reported to work on ia64,
OpenSSL 0.9.6g, tweak cross-building note and note MFC.

Remove an obsolete release note about DEC 3000 support on floppies.

21 years agoFix the broken "avoid unaligned data" fix. The problem is that the builtin
peter [Sat, 10 Aug 2002 03:00:55 +0000 (03:00 +0000)]
Fix the broken "avoid unaligned data" fix.  The problem is that the builtin
gcc memcpy "knows" about types that are supposed to be actually already
aligned and triggers alignment errors doing the memcpy itself.
"Fix" this by changing it to a bcopy().  In this case, we had:
  struct timeval *tp;
  struct timeval tv1;
  memcpy(&tv1,tp,sizeof(tv1));
.. and since gcc *knows* that a pointer to a timeval is longword aligned
and that tv1 is longword aligned, then it can use an inline that assumes
alignment.  The following works too:
  cp = (char *)tp;
  memcpy(&tv1,cp,sizeof(tv1));
Simply casting (char *)tp  for the memcpy doesn't work. :-(
This affected different 64 bit platforms in different ways and depends
a lot on gcc as well.  I've seen this on alpha and ia64 at least, although
alpha isn't doing it right now.

21 years agoResolve conflicts.
nectar [Sat, 10 Aug 2002 01:50:50 +0000 (01:50 +0000)]
Resolve conflicts.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r101618,
nectar [Sat, 10 Aug 2002 01:48:01 +0000 (01:48 +0000)]
This commit was generated by cvs2svn to compensate for changes in r101618,
which included commits to RCS files with non-trunk default branches.

21 years agoImport of OpenSSL 0.9.6g.
nectar [Sat, 10 Aug 2002 01:48:01 +0000 (01:48 +0000)]
Import of OpenSSL 0.9.6g.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r101615,
nectar [Sat, 10 Aug 2002 01:46:10 +0000 (01:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r101615,
which included commits to RCS files with non-trunk default branches.

21 years agoImport of OpenSSL 0.9.6f.
nectar [Sat, 10 Aug 2002 01:46:10 +0000 (01:46 +0000)]
Import of OpenSSL 0.9.6f.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r101613,
nectar [Sat, 10 Aug 2002 01:40:00 +0000 (01:40 +0000)]
This commit was generated by cvs2svn to compensate for changes in r101613,
which included commits to RCS files with non-trunk default branches.

21 years agoImport of OpenSSL 0.9.6f.
nectar [Sat, 10 Aug 2002 01:40:00 +0000 (01:40 +0000)]
Import of OpenSSL 0.9.6f.

21 years agoPermit the creation of just cd0 if desired. Previously it always
iedowse [Sat, 10 Aug 2002 00:20:32 +0000 (00:20 +0000)]
Permit the creation of just cd0 if desired. Previously it always
created cd1 as well due to an off-by-one error left over from
revision 1.249.

PR: conf/20436
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
MFC after: 1 week

21 years agoUse the correct loop variable so that we print all IO addresses and
iedowse [Fri, 9 Aug 2002 22:04:54 +0000 (22:04 +0000)]
Use the correct loop variable so that we print all IO addresses and
not just 8 copies of the first one.

PR: bin/18157
Submitted by: German Tischler <tanis@gaspode.franken.de>

21 years agoNew release notes: ata(4)/burncd(8) support DVD+RW drives, atapicam.
bmah [Fri, 9 Aug 2002 21:14:55 +0000 (21:14 +0000)]
New release notes:  ata(4)/burncd(8) support DVD+RW drives, atapicam.

MFCs noted:  ucom(4)/uplcom(4)/uvscom(4), uvisor, IPFW2 (with some
wording tweaks), texinfo 4.2.

21 years agoRemove trailing whitespace.
fanf [Fri, 9 Aug 2002 20:58:54 +0000 (20:58 +0000)]
Remove trailing whitespace.

21 years agoAdd the ability to use ATAPI devices via CAM.
sos [Fri, 9 Aug 2002 20:54:06 +0000 (20:54 +0000)]
Add the ability to use ATAPI devices via CAM.

The CAM<>ATAPI layer was submitted by "Thomas Quinot <thomas@cuivre.fr.eu.org>"
changes form the version on the net by me (formatting, ability to be used
alone without the ATAPI native device driver, proper speed reporting...)

See /sys/conf/NOTES for usage.

Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>

21 years agoRemove some Dijkstra quotes from fortunes that are duplicated in fortunes2.
fanf [Fri, 9 Aug 2002 20:37:01 +0000 (20:37 +0000)]
Remove some Dijkstra quotes from fortunes that are duplicated in fortunes2.
Move the single remaining one across to fortunes2 to join its friends.
Spell his name consistently. Remove a couple of other duplicate fortunes.

21 years agoAdd help about hint.acpi.0.disable.
iwasaki [Fri, 9 Aug 2002 20:07:51 +0000 (20:07 +0000)]
Add help about hint.acpi.0.disable.

21 years agoRe-sort.
fanf [Fri, 9 Aug 2002 19:54:11 +0000 (19:54 +0000)]
Re-sort.

21 years agoRemove spurious quotes.
fanf [Fri, 9 Aug 2002 19:31:27 +0000 (19:31 +0000)]
Remove spurious quotes.

21 years agoCorrectly sort previous addition.
fanf [Fri, 9 Aug 2002 19:30:20 +0000 (19:30 +0000)]
Correctly sort previous addition.

21 years agoSome more advice from Dijkstra.
fanf [Fri, 9 Aug 2002 19:08:02 +0000 (19:08 +0000)]
Some more advice from Dijkstra.

21 years agoFix a couple of typos in a Dijkstra quote.
fanf [Fri, 9 Aug 2002 19:00:10 +0000 (19:00 +0000)]
Fix a couple of typos in a Dijkstra quote.

21 years agoMake the othermta script DTRT when an mta startup script is not specified.
gordon [Fri, 9 Aug 2002 17:45:04 +0000 (17:45 +0000)]
Make the othermta script DTRT when an mta startup script is not specified.

Submitted by: Mike Makonnen <makonnen@pacbell.net>

21 years agoCorrect comment. We use rpcbind now, not portmap
gordon [Fri, 9 Aug 2002 17:34:13 +0000 (17:34 +0000)]
Correct comment. We use rpcbind now, not portmap

Submitted by: Mike Makonnen <makonnen@pacbell.net>

21 years agoCorrect comment
gordon [Fri, 9 Aug 2002 17:33:07 +0000 (17:33 +0000)]
Correct comment

Submitted by: Mike Makonnen <makonnen@pacbell.net>

21 years agoFixup preen.c to match its new residence.
phk [Fri, 9 Aug 2002 16:25:32 +0000 (16:25 +0000)]
Fixup preen.c to match its new residence.

The blockcheck() function is still pulled from fsck_ffs, it probably should
live in libufs.

21 years agoIPv6 support for rcp.
ume [Fri, 9 Aug 2002 16:12:08 +0000 (16:12 +0000)]
IPv6 support for rcp.
You cannot specify a raw IPv6 address for now.

MFC after: 1 week

21 years agoThe boottime variable in sys/kern/kern_tc.c is a struct timeval, not a
tmm [Fri, 9 Aug 2002 15:47:43 +0000 (15:47 +0000)]
The boottime variable in sys/kern/kern_tc.c is a struct timeval, not a
time_t, so do not use the latter as type when retrieving the variable
via libkvm. This should fix vmstat on sparc64.

21 years agoMake ppp(4) devices clonable and unloadable.
brooks [Fri, 9 Aug 2002 15:30:48 +0000 (15:30 +0000)]
Make ppp(4) devices clonable and unloadable.

21 years agoUpdate ELAST.
phk [Fri, 9 Aug 2002 14:54:33 +0000 (14:54 +0000)]
Update ELAST.

21 years agopreen.c was a stragler after the fsck/fsck_ffs divorce.
phk [Fri, 9 Aug 2002 14:41:37 +0000 (14:41 +0000)]
preen.c was a stragler after the fsck/fsck_ffs divorce.
fsck_ffs did not need it, but quotacheck did include it from fsck_ffs.

A repocopy has now moved the fsck_ffs/preen.c file to quotacheck/preen.c

quotacheck and fsck should probably use the same checkfstab() function
and it should possibly live in libufs.

Trouble is: they have diverged in the meantime.

At least now fsck_ffs is not in the equation anymore.

Sponsored by: DARPA & NAI Labs.