]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoSet the format code and name correctly for:
kientzle [Sun, 23 Jan 2005 03:02:14 +0000 (03:02 +0000)]
Set the format code and name correctly for:
  * ISO9660 CDROM images
  * ISO9660 images with Rockridge extensions

19 years agoThis is a somewhat imperfect means to try and bring FreeBSD forward in
mjacob [Sat, 22 Jan 2005 22:46:45 +0000 (22:46 +0000)]
This is a somewhat imperfect means to try and bring FreeBSD forward in
its ability to automatically scan and attach luns for modern storage
which has luns in the 0..1000 range, not 0..7.

The correct thing would be to do REPORT LUNS for devices whose LUN0
version shows a version >= SCSI3, but lacking that we should be able
to search higher than LUN 7 if we're >= SCSI3 with no ill effects.

This change keeps all of the QUIRK_HILUNS quirks, obeys the QUIRK_NOLUNS,
and introduces a QUIRK_NOHILUNS which will keep searches above LUN 7
happening for devices that report >= SCSI3 compliance. I doubt the latter
will be needed, but you never know.

This allowed me to randomly scan and attach  > 500 disks at a time in
a situation where quirking for QUIRK_HILUNS wasn't practical (the
vendor id and product id changes of the virtualization changes
constantly).

Reviewed by: ken@freebsd.org, scottl@freebsd.org, gibbs@freebsd.org
MFC after: 2 weeks

19 years agoUse WARNS?= instead of WARNS= in Makefiles so that global warning
rwatson [Sat, 22 Jan 2005 22:42:39 +0000 (22:42 +0000)]
Use WARNS?= instead of WARNS= in Makefiles so that global warning
settings can override local ones.

Pointed out by: ru

19 years agoBring in support for SUGOI LAN GIGA NIC made by System TALKS, Inc from
imp [Sat, 22 Jan 2005 22:40:53 +0000 (22:40 +0000)]
Bring in support for SUGOI LAN GIGA NIC made by System TALKS, Inc from
a RealTek 8169SB.

PR: 74262
Submitted by: Yoshikazu GOTO-san

# Submitter notes that he's unsure of the revision string for 8169SB

19 years agoFix markup.
bms [Sat, 22 Jan 2005 21:54:29 +0000 (21:54 +0000)]
Fix markup.

Submitted by: ru

19 years agoScot pointed out that the dynamic zone example didn't seem to "flow"
dougb [Sat, 22 Jan 2005 21:34:10 +0000 (21:34 +0000)]
Scot pointed out that the dynamic zone example didn't seem to "flow"
with the rest of the examples, so after discussion with him and gshapiro,
re-sort the examples, and add more comments to make things very obvious.

Also, divide the examples between example.{com|net|org} to make things
even more obvious, and use the same RFC 1918 block for all examples.

Pointed out by: Scot W. Hetzel <hetzels@westbend.net>

19 years agoAdd a note about the slot number not necessarily indicating the physical
bms [Sat, 22 Jan 2005 21:14:46 +0000 (21:14 +0000)]
Add a note about the slot number not necessarily indicating the physical
location of a PCI device in the system chassis.
Remove the note about PAE.
Update document date.
Update my email address.
Update copyright.

MFC after: 1 week

19 years agoWhen DDB is not defined, don't implement witness_thread_has_locks() and
rwatson [Sat, 22 Jan 2005 21:14:21 +0000 (21:14 +0000)]
When DDB is not defined, don't implement witness_thread_has_locks() and
witness_proc_has_locks(), as they are unused, which results in a compiler
error.  This problem was introduced with the implementation of "show
alllocks".

Spotted by: Artem Kuchin <matrix at itlegion dot ru>

19 years agohandle potential stale values of bssid in neighbor nodes that
sam [Sat, 22 Jan 2005 20:33:37 +0000 (20:33 +0000)]
handle potential stale values of bssid in neighbor nodes that
can occur after an ibss merge

Submitted by: David Young

19 years agoUpdate mac_test for MAC Framework policy entry points System V IPC
rwatson [Sat, 22 Jan 2005 20:31:29 +0000 (20:31 +0000)]
Update mac_test for MAC Framework policy entry points System V IPC
objects (message queues, semaphores, shared memory), exercising and
validating MAC labels on these objects.

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research

19 years agowhen ssid suppression is enabled don't respond to probe requests
sam [Sat, 22 Jan 2005 20:31:22 +0000 (20:31 +0000)]
when ssid suppression is enabled don't respond to probe requests
unless our ssid is specified

19 years agobe consistent in naming inactivity timers;
sam [Sat, 22 Jan 2005 20:29:23 +0000 (20:29 +0000)]
be consistent in naming inactivity timers;
net.wlan.X.inact -> net.wlan.X.inact_run

19 years agoUpdate mac_stub for MAC Framework policy entry points System V IPC
rwatson [Sat, 22 Jan 2005 20:26:43 +0000 (20:26 +0000)]
Update mac_stub for MAC Framework policy entry points System V IPC
objects (message queues, semaphores, shared memory).

Submitted by:   Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from:  TrustedBSD Project
Sponsored by:   DARPA, SPAWAR, McAfee Research

19 years agoo replace out-of-line copy of FCS w/ a flag that indicates the
sam [Sat, 22 Jan 2005 20:12:05 +0000 (20:12 +0000)]
o replace out-of-line copy of FCS w/ a flag that indicates the
  frame includes FCS (requires applications to be updated, but since
  we weren't doing the out-of-line FCS stuff anyway app changes
  were needed already)
o add a flag to indicate padding exists between the 802.11 header and
  the payload (e.g. for Atheros cards)
o diff reducation against netbsd

MFC after: 1 week

19 years agoImplement MLS confidentiality protection for System V IPC objects
rwatson [Sat, 22 Jan 2005 20:11:16 +0000 (20:11 +0000)]
Implement MLS confidentiality protection for System V IPC objects
(message queues, semaphores, shared memory).

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research

19 years agoImplement Biba integrity protection for System V IPC objects (message
rwatson [Sat, 22 Jan 2005 20:07:11 +0000 (20:07 +0000)]
Implement Biba integrity protection for System V IPC objects (message
queues, semaphores, shared memory).

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research

19 years agoAllow to specify device size in bytes.
pjd [Sat, 22 Jan 2005 20:02:01 +0000 (20:02 +0000)]
Allow to specify device size in bytes.

MFC after: 1 week

19 years agos/principals/principles/
wilko [Sat, 22 Jan 2005 20:00:50 +0000 (20:00 +0000)]
s/principals/principles/

Fortune was duplicated, remove one copy.

19 years ago- Don't destroy UMA zone on error in mdcreate_malloc(), because we need it
pjd [Sat, 22 Jan 2005 19:56:03 +0000 (19:56 +0000)]
- Don't destroy UMA zone on error in mdcreate_malloc(), because we need it
  in mddestroy() to properly free already allocated memory.
  This fixes a panic when we want to create too big memory backed device
  with preallocate memory (-o reserve).
- Remove redundant { }.

MFC after: 1 week

19 years agoMake sure that we don't define INET6 when NO_INET6 is defined.
delphij [Sat, 22 Jan 2005 19:35:48 +0000 (19:35 +0000)]
Make sure that we don't define INET6 when NO_INET6 is defined.
Without this change, when running netstat with a kernel without
INET6 built in, you will get a complain at the end of "netstat -s"
output.

X-MFC: NO_INET6 was called "NOINET6" on RELENG_5

19 years agoGuard against address wrap in kernacc(). Otherwise, a program accessing a
alc [Sat, 22 Jan 2005 19:21:29 +0000 (19:21 +0000)]
Guard against address wrap in kernacc().  Otherwise, a program accessing a
bad address range through /dev/kmem can panic the machine.

Submitted by: Mark W. Krentel
Reported by: Kris Kennaway
MFC after: 1 week

19 years agoInvoke label initialization, creation, cleanup, and tear-down MAC
rwatson [Sat, 22 Jan 2005 19:10:25 +0000 (19:10 +0000)]
Invoke label initialization, creation, cleanup, and tear-down MAC
Framework entry points for System V IPC shared memory.

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research

19 years agoAdd a couple of mtx_asserts() to try to narrow down the window on
phk [Sat, 22 Jan 2005 19:08:50 +0000 (19:08 +0000)]
Add a couple of mtx_asserts() to try to narrow down the window on
a bug repeatedly reported.

19 years agoInvoke label initialization, creation, cleanup, and tear-down MAC
rwatson [Sat, 22 Jan 2005 19:04:17 +0000 (19:04 +0000)]
Invoke label initialization, creation, cleanup, and tear-down MAC
Framework entry points for System V IPC semaphores.

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research

19 years agoInvoke label initialization, creation, cleanup, and tear-down MAC
rwatson [Sat, 22 Jan 2005 18:51:43 +0000 (18:51 +0000)]
Invoke label initialization, creation, cleanup, and tear-down MAC
Framework entry points for System V IPC message queues.

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, SPAWAR, McAfee Research

19 years agoEspecially mention that setting errno to EINVAL in "no conversion" case
ache [Sat, 22 Jan 2005 18:02:58 +0000 (18:02 +0000)]
Especially mention that setting errno to EINVAL in "no conversion" case
is not portable.

Asked by:       joerg

19 years agoDocument -l and -n options in usage().
ru [Sat, 22 Jan 2005 14:37:57 +0000 (14:37 +0000)]
Document -l and -n options in usage().

19 years agoPolish previous revision:
ru [Sat, 22 Jan 2005 14:36:51 +0000 (14:36 +0000)]
Polish previous revision:

- Bump document date.
- Spell "file system" properly.
- Add missing markup bits.

19 years agoAdd fma() and fmaf(), which implement a fused multiply-add operation.
das [Sat, 22 Jan 2005 09:53:18 +0000 (09:53 +0000)]
Add fma() and fmaf(), which implement a fused multiply-add operation.

19 years agoDon't pass unadulterated unit numbers to make_dev and its ilk- if you
mjacob [Sat, 22 Jan 2005 07:21:25 +0000 (07:21 +0000)]
Don't pass unadulterated unit numbers to make_dev and its ilk- if you
have more than 256 units, you die. Horribly. Convert them using
unit2minor.

MFC after: 1 week

19 years agoReplace the ldexp() implementation in libc with a renamed copy of the
das [Sat, 22 Jan 2005 06:03:40 +0000 (06:03 +0000)]
Replace the ldexp() implementation in libc with a renamed copy of the
scalbn() implementation from libm.  (The two functions are defined to
be identical, but ldexp() lives in libc for backwards compatibility.)
The old ldexp() implementation...
  - was more complicated than this one
  - set errno instead of raising FP exceptions
  - got some corner cases wrong
    (e.g. ldexp(1.0, 2000) in round-to-zero mode)

The new implementation lives in libc/gen instead of
libc/$MACHINE_ARCH/gen, since we don't need N copies of a
machine-independent file.  The amd64 and i386 platforms
retain their fast and correct MD implementations and
override this one.

19 years agoEmbellish rev 1.61. If we're not building a debug kernel, use -O2 as before.
obrien [Sat, 22 Jan 2005 00:58:34 +0000 (00:58 +0000)]
Embellish rev 1.61.  If we're not building a debug kernel, use -O2 as before.

Submitted by: ru

19 years agos/round_page/trunc_page/g
bmilekic [Sat, 22 Jan 2005 00:09:34 +0000 (00:09 +0000)]
s/round_page/trunc_page/g

I meant trunc_page.  It's only a coincidence this hasn't caused
problems yet.

Pointed out by: Antoine Brodin <antoine.brodin@laposte.net>

19 years agoForced commit to note:
wes [Fri, 21 Jan 2005 22:53:51 +0000 (22:53 +0000)]
Forced commit to note:

MFC after: 2 weeks

19 years agoAdd an option to suppress the creation of the .snap directory in
wes [Fri, 21 Jan 2005 22:20:25 +0000 (22:20 +0000)]
Add an option to suppress the creation of the .snap directory in
the new filesystem.  This is intended for memory and vnode filesystems
that will never be fsck'ed or dumped.

Obtained from: St. Bernard Software RAPID
MFC after: 2 weeks

19 years agoImproved error checking for existence of a .snap directory to
wes [Fri, 21 Jan 2005 22:13:25 +0000 (22:13 +0000)]
Improved error checking for existence of a .snap directory to
generate snapshots in when -L is requested.  If the .snap directory
does not exist, or is not a directory, issue a warning and revert
to the non- live behavior.

Obtained from: St. Bernard Software RAPID

19 years ago- Soften sentence breaks.
ru [Fri, 21 Jan 2005 21:57:05 +0000 (21:57 +0000)]
- Soften sentence breaks.
- Remove double whitespace.
- Sort sections.

19 years agoFixed macro abuse.
ru [Fri, 21 Jan 2005 20:51:09 +0000 (20:51 +0000)]
Fixed macro abuse.

19 years agoFixed xrefs.
ru [Fri, 21 Jan 2005 20:50:39 +0000 (20:50 +0000)]
Fixed xrefs.

19 years agoFixed punctuation in xrefs.
ru [Fri, 21 Jan 2005 20:48:00 +0000 (20:48 +0000)]
Fixed punctuation in xrefs.

19 years agowe don't need the offset in the attr memory to get the ethernet
imp [Fri, 21 Jan 2005 19:51:23 +0000 (19:51 +0000)]
we don't need the offset in the attr memory to get the ethernet
address, nor do we need the alignment requirements, so eliminate them.
This likely means that we can now collapse some of the entries as we
have no need of them anymore (they match other entries and were there
only to get the right attr memory offset of the enet addr).

19 years agoOnly report state changes of subdisks and plexes when there's
le [Fri, 21 Jan 2005 18:27:23 +0000 (18:27 +0000)]
Only report state changes of subdisks and plexes when there's
really a state change.

Reword the info a bit.

19 years agoDon't initialize error with ENXIO as we might end up here when
le [Fri, 21 Jan 2005 18:24:20 +0000 (18:24 +0000)]
Don't initialize error with ENXIO as we might end up here when
the plex has no more consumers (e.g. orphaning).

19 years agoBraino. Revert previous commit, NO_MAN was already corrected.
bms [Fri, 21 Jan 2005 18:12:47 +0000 (18:12 +0000)]
Braino. Revert previous commit, NO_MAN was already corrected.

Noticed by: imp

19 years agowe don't need to make fake sockaddr_in6 to compare subject address.
ume [Fri, 21 Jan 2005 18:12:46 +0000 (18:12 +0000)]
we don't need to make fake sockaddr_in6 to compare subject address.

MFC after: 1 week

19 years agoBring in MemGuard, a very simple and small replacement allocator
bmilekic [Fri, 21 Jan 2005 18:09:17 +0000 (18:09 +0000)]
Bring in MemGuard, a very simple and small replacement allocator
designed to help detect tamper-after-free scenarios, a problem more
and more common and likely with multithreaded kernels where race
conditions are more prevalent.

Currently MemGuard can only take over malloc()/realloc()/free() for
particular (a) malloc type(s) and the code brought in with this
change manually instruments it to take over M_SUBPROC allocations
as an example.  If you are planning to use it, for now you must:

1) Put "options DEBUG_MEMGUARD" in your kernel config.
2) Edit src/sys/kern/kern_malloc.c manually, look for
   "XXX CHANGEME" and replace the M_SUBPROC comparison with
   the appropriate malloc type (this might require additional
   but small/simple code modification if, say, the malloc type
   is declared out of scope).
3) Build and install your kernel.  Tune vm.memguard_divisor
   boot-time tunable which is used to scale how much of kmem_map
   you want to allott for MemGuard's use.  The default is 10,
   so kmem_size/10.

ToDo:
1) Bring in a memguard(9) man page.
2) Better instrumentation (e.g., boot-time) of MemGuard taking
   over malloc types.
3) Teach UMA about MemGuard to allow MemGuard to override zone
   allocations too.
4) Improve MemGuard if necessary.

This work is partly based on some old patches from Ian Dowse.

19 years agoCatch up with NO_MAN->NOMAN change.
bms [Fri, 21 Jan 2005 17:38:02 +0000 (17:38 +0000)]
Catch up with NO_MAN->NOMAN change.

19 years agoIf a device resides in physical slot 0, report it as being on-board as
bms [Fri, 21 Jan 2005 17:11:38 +0000 (17:11 +0000)]
If a device resides in physical slot 0, report it as being on-board as
per PIR specification.
Add the VIA VT82C686 PCI interrupt routing function as a known chipset.

19 years agoFix a masking error. Update copyright.
bms [Fri, 21 Jan 2005 17:05:33 +0000 (17:05 +0000)]
Fix a masking error. Update copyright.

19 years agoDo not treat an invalid PIR table checksum as a fatal error condition, but
bms [Fri, 21 Jan 2005 16:15:24 +0000 (16:15 +0000)]
Do not treat an invalid PIR table checksum as a fatal error condition, but
do print a warning about it.
Correct a stupid logic error.
Update copyrights.  Fix whitespace bug.

MFC after: 1 week

19 years agoFix handling of providers with / in them (e.g. mirror/foo).
pjd [Fri, 21 Jan 2005 14:38:44 +0000 (14:38 +0000)]
Fix handling of providers with / in them (e.g. mirror/foo).

Submitted by: Attila Nagy <bra@fsn.hu>
MFC after: 1 week

19 years agoWhitespace/style tweaking of prev. commit.
ache [Fri, 21 Jan 2005 13:31:02 +0000 (13:31 +0000)]
Whitespace/style tweaking of prev. commit.

Noted by:       bde

19 years agoReflect the reality; only crypt(3) uses /etc/auth.conf
ru [Fri, 21 Jan 2005 12:07:46 +0000 (12:07 +0000)]
Reflect the reality; only crypt(3) uses /etc/auth.conf
for the time being.

19 years agoFixed xref.
ru [Fri, 21 Jan 2005 12:01:00 +0000 (12:01 +0000)]
Fixed xref.

19 years agoRemoved remnants of Kerberos support.
ru [Fri, 21 Jan 2005 11:22:34 +0000 (11:22 +0000)]
Removed remnants of Kerberos support.

19 years agoRemoved Kerberos remnants.
ru [Fri, 21 Jan 2005 11:09:40 +0000 (11:09 +0000)]
Removed Kerberos remnants.

19 years agoFixed xref.
ru [Fri, 21 Jan 2005 10:48:35 +0000 (10:48 +0000)]
Fixed xref.

19 years agoFixed macro abuse.
ru [Fri, 21 Jan 2005 10:46:36 +0000 (10:46 +0000)]
Fixed macro abuse.

19 years agoFixed xrefs.
ru [Fri, 21 Jan 2005 10:35:40 +0000 (10:35 +0000)]
Fixed xrefs.

19 years agoRemove prototype of undefined function so this compiles again.
phk [Fri, 21 Jan 2005 10:19:17 +0000 (10:19 +0000)]
Remove prototype of undefined function so this compiles again.

19 years agoFixed xref.
ru [Fri, 21 Jan 2005 10:17:17 +0000 (10:17 +0000)]
Fixed xref.

19 years agoDe-kerberize the manpage.
ru [Fri, 21 Jan 2005 09:31:38 +0000 (09:31 +0000)]
De-kerberize the manpage.

19 years agoFixed .Xr call.
ru [Fri, 21 Jan 2005 09:07:47 +0000 (09:07 +0000)]
Fixed .Xr call.

19 years agoSort sections.
ru [Fri, 21 Jan 2005 08:36:40 +0000 (08:36 +0000)]
Sort sections.

19 years agoFixes to previous revision:
ru [Fri, 21 Jan 2005 07:55:17 +0000 (07:55 +0000)]
Fixes to previous revision:

- bump document date
- break hard sentence break
- remove whitespace at EOL

19 years agoAdd two more pipe regression tests. Not yet hooked into the test framework.
silby [Fri, 21 Jan 2005 06:46:18 +0000 (06:46 +0000)]
Add two more pipe regression tests.  Not yet hooked into the test framework.

19 years agoJumboMFi386: use bitmapped IPI handler. Update elcr and default mptable
peter [Fri, 21 Jan 2005 06:01:20 +0000 (06:01 +0000)]
JumboMFi386: use bitmapped IPI handler.  Update elcr and default mptable
config handler.  Tidy up various local apic initialization.

19 years agoMFi386: handle PSL_T properly across fork. Typo fix.
peter [Fri, 21 Jan 2005 05:57:45 +0000 (05:57 +0000)]
MFi386: handle PSL_T properly across fork.  Typo fix.

19 years agoMFi386: whitespace, copyright header, etc updates
peter [Fri, 21 Jan 2005 05:56:41 +0000 (05:56 +0000)]
MFi386: whitespace, copyright header, etc updates

19 years agoMFi386: use %rip - 1 for the symbol search address (for noreturn funcs)
peter [Fri, 21 Jan 2005 05:54:05 +0000 (05:54 +0000)]
MFi386: use %rip - 1 for the symbol search address (for noreturn funcs)

19 years agoDocument the shiny new WITHOUT_MODULES knob in make.conf.
wes [Fri, 21 Jan 2005 03:51:07 +0000 (03:51 +0000)]
Document the shiny new WITHOUT_MODULES knob in make.conf.

PR: kern/76225
Prodded by: ru@, brueffer@
MFC after: 2 weeks

19 years agoRework pccard attachment a little. Now both of my fe based ethernet
imp [Fri, 21 Jan 2005 02:14:40 +0000 (02:14 +0000)]
Rework pccard attachment a little.  Now both of my fe based ethernet
cards work.  These changes depend on the expanded funce parsing that
just was committed to pccard_cis.c.  In NetBSD the ethernet address
was read out of attr memory directly.  We rely on the kernel pccard
parser to pulll this information out of what appears to be an obsolete
funce with the information in it.

# I'm still getting the no rx interrupt sometimes with some hub/switches
# for reasons unknown...  But usually only one and only when dhclient
# runs.

19 years agoSome older PC Cards have a weird format for FUNCE tuples. They appear
imp [Fri, 21 Jan 2005 02:11:48 +0000 (02:11 +0000)]
Some older PC Cards have a weird format for FUNCE tuples.  They appear
as type 0, rather than the usualy type 4.  Assume that this format is
from an old standard and go with it.  The Fujitsu FMV-186A and Silicom
Ethernet cards I have both have tuples with this format, and they are
both pretty old cards.

# if somebody knows for sure, please let me know.

19 years agoFix (accidental?) lock order reversal in pmap_remove. Found when
grehan [Fri, 21 Jan 2005 01:02:38 +0000 (01:02 +0000)]
Fix (accidental?) lock order reversal in pmap_remove. Found when
a process that has mmap'd device mem exits.

19 years agoPOSIX says that 0[xX] prefix is _optional_ even in base 16 case, make it
ache [Fri, 21 Jan 2005 00:42:13 +0000 (00:42 +0000)]
POSIX says that 0[xX] prefix is _optional_ even in base 16 case, make it
really so.

"If the value of base is 16, the characters 0x or 0X may optionally
precede the sequence of letters and digits, following the sign if
present."

Found by:       joerg

19 years agoRemove 6422, V100 and add the P600.
ps [Thu, 20 Jan 2005 22:51:38 +0000 (22:51 +0000)]
Remove 6422, V100 and add the P600.

Submitted by: John Cagle

19 years agoRemove references to non-existing symbols DO_corb and got_mmu.
cognet [Thu, 20 Jan 2005 22:23:26 +0000 (22:23 +0000)]
Remove references to non-existing symbols DO_corb and got_mmu.
While I'm there, remove dead code.

19 years agoProtect against recursive slices creation in simlar way as it is done
pjd [Thu, 20 Jan 2005 22:14:05 +0000 (22:14 +0000)]
Protect against recursive slices creation in simlar way as it is done
in BSD class, ie. if provider below us uses the same metadata, don't
create slices based on the metadata.
This allows to create slices on geoms with rank != 1 without hacks.

Discussed with: phk
Approved by: phk
MFC after: 2 weeks

19 years agoDon't print 'unknown id' in the ep_pccard_identify routine. It is
imp [Thu, 20 Jan 2005 20:36:59 +0000 (20:36 +0000)]
Don't print 'unknown id' in the ep_pccard_identify routine.  It is
expected to be unknown in some cases, and printing it clutters up
things too much.

19 years agoRemove now-stale comment
imp [Thu, 20 Jan 2005 20:32:56 +0000 (20:32 +0000)]
Remove now-stale comment

19 years agoOnly attach to network functions. This should be a nop since I'm not
imp [Thu, 20 Jan 2005 20:08:18 +0000 (20:08 +0000)]
Only attach to network functions.  This should be a nop since I'm not
aware of any fe based cards that do anything except network (well,
maybe the fujitsu scsi/lan card, but I've only seen two of those on
ebay in the last 3 years).

19 years agoInclude necessary declarations
imp [Thu, 20 Jan 2005 20:06:44 +0000 (20:06 +0000)]
Include necessary declarations

19 years agoOnly match ethernet functions. I've not seen any multifunction cards
imp [Thu, 20 Jan 2005 20:03:37 +0000 (20:03 +0000)]
Only match ethernet functions.  I've not seen any multifunction cards
(from a PC Card sense), so this should be a nop.  The
pseudo-multifunction cards (eg Silicom ones) need a special driver
anyway..

19 years agoOnly attach to network functions. I'm not aware of any multifunction
imp [Thu, 20 Jan 2005 19:59:31 +0000 (19:59 +0000)]
Only attach to network functions.  I'm not aware of any multifunction
(pccard sense) sn based cards, but this won't hurt.  The
pseudo-multifunction cards need a special driver anyway...

19 years agoOnly attach to network functions (unlikely to matter since I'm not
imp [Thu, 20 Jan 2005 19:56:22 +0000 (19:56 +0000)]
Only attach to network functions (unlikely to matter since I'm not
aware of any multi-function cs cards, but it doesn't hurt).

19 years agou_intXX_t -> uintXX_t while I'm here.
imp [Thu, 20 Jan 2005 19:39:33 +0000 (19:39 +0000)]
u_intXX_t -> uintXX_t while I'm here.

19 years agoOnly attach to network functions.
imp [Thu, 20 Jan 2005 19:37:22 +0000 (19:37 +0000)]
Only attach to network functions.

19 years agou_intXX_t -> uintXX_t
imp [Thu, 20 Jan 2005 19:32:37 +0000 (19:32 +0000)]
u_intXX_t -> uintXX_t
Fix a comment

19 years agoUse Intersil chip names for the symbols, since many makers use the
imp [Thu, 20 Jan 2005 18:34:22 +0000 (18:34 +0000)]
Use Intersil chip names for the symbols, since many makers use the
intersil IDs but their own name in the CIS.

19 years agoAdd intersil chip names we know we support since some OEMs use them
imp [Thu, 20 Jan 2005 18:33:07 +0000 (18:33 +0000)]
Add intersil chip names we know we support since some OEMs use them
very transparently.

19 years agoUse the packet's address family instead of the rule's when selecting a
dhartmei [Thu, 20 Jan 2005 18:07:35 +0000 (18:07 +0000)]
Use the packet's address family instead of the rule's when selecting a
replacement address for an rdr rule. Some rdr rules have no address family
(when the replacement is a table and no other criterion implies one AF).
In this case, pf would fail to select a replacement address and drop the
packet due to translation failure.

Found by: Gustavo A. Baratto

19 years agoNote SENAO SL-2511CD support
imp [Thu, 20 Jan 2005 17:48:01 +0000 (17:48 +0000)]
Note SENAO SL-2511CD support

19 years agoAdd support for SENAO SL-2511CD
imp [Thu, 20 Jan 2005 17:46:05 +0000 (17:46 +0000)]
Add support for SENAO SL-2511CD

Info submitted by: Paulo Fragoso

19 years agoMinor tweaks to properly order things.
imp [Thu, 20 Jan 2005 17:34:15 +0000 (17:34 +0000)]
Minor tweaks to properly order things.

19 years agoMask off the upper bits of the resource before using it as an index
imp [Thu, 20 Jan 2005 17:27:37 +0000 (17:27 +0000)]
Mask off the upper bits of the resource before using it as an index
into a small array.  Also, re-save the dev in attach to avoid
depending on side effects of the probe.

Weird stuff Reported by: jeffr

19 years agoAdd device description for the Dell Remote Access Card (DRAC) III and IV
bms [Thu, 20 Jan 2005 15:40:50 +0000 (15:40 +0000)]
Add device description for the Dell Remote Access Card (DRAC) III and IV
virtual COM port. This makes the use of the Dell OpenManage tools on FreeBSD
considerably easier, and is based on Chuck Cranor's original patch for 4.6.

Reviewed by: imp
Tested by: dpk at dpk dot net
MFC after: 1 week

19 years agoAt least on some U30 there's a spurious duplicate device node of an EBus
marius [Thu, 20 Jan 2005 13:29:31 +0000 (13:29 +0000)]
At least on some U30 there's a spurious duplicate device node of an EBus
bridge in the device tree which lacks the mandatory (also by the OFW PCI
bus binding spec) "reg" property. Change the code to just ignore nodes
missing the "reg" property instead of panicing when encountering such a
node. Also ignore nodes without a "name" property (guaranteed by the OFW
PCI bus binding spec). This brings the behaviour of the MD OFW PCI code
regarding such incomplete nodes in line with the EBus and the SBus code.

Tested by: Cyril Tikhomiroff <tikho@anor.net>
MFC after: 1 month

19 years agoUse log() instead of printf(), to reduce flood on console.
glebius [Thu, 20 Jan 2005 13:28:39 +0000 (13:28 +0000)]
Use log() instead of printf(), to reduce flood on console.

MFC after: 1 week

19 years agoIn crunchgen(1), when calling make(1), don't redirect stderr to stdout,
ru [Thu, 20 Jan 2005 10:49:03 +0000 (10:49 +0000)]
In crunchgen(1), when calling make(1), don't redirect stderr to stdout,
just rely on the exit status to detect an error.  This makes crunchgen(1)
safe to use with certain make(1) debugging flags.

MFC after: 1 week

19 years agoIgnoring MAKEFLAGS in rev. 1.15 was a very bad idea. This causes
ru [Thu, 20 Jan 2005 10:43:43 +0000 (10:43 +0000)]
Ignoring MAKEFLAGS in rev. 1.15 was a very bad idea.  This causes
wrong share/mk files to be used, which can be fatal with upgrades
or downgrades, e.g., when building RELENG_5 on HEAD.

Reported by: glebius

For now, just exclude -P from MAKEFLAGS when running crunchgen(1).
(Note that it will still break when run with certain -d options.)

The real solution is to fix make(1) to not print stuff on stdout
when it's not supposed to, e.g., through the -P and -dX options,
and to fix crunchgen(1) to not redirect stderr to stdout when
running make(1).  Once this is implemented, this hack can go.