]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoResolve conflicts from sendmail 8.13.3 import
Gregory Neil Shapiro [Mon, 14 Feb 2005 02:39:14 +0000 (02:39 +0000)]
Resolve conflicts from sendmail 8.13.3 import

MFC after: 4 days

19 years agoThis commit was generated by cvs2svn to compensate for changes in r141858,
Gregory Neil Shapiro [Mon, 14 Feb 2005 02:30:00 +0000 (02:30 +0000)]
This commit was generated by cvs2svn to compensate for changes in r141858,
which included commits to RCS files with non-trunk default branches.

19 years agoImport sendmail 8.13.3
Gregory Neil Shapiro [Mon, 14 Feb 2005 02:30:00 +0000 (02:30 +0000)]
Import sendmail 8.13.3

19 years agoAbort any active transfers when the device detaches. This fixes a
Ian Dowse [Mon, 14 Feb 2005 02:17:53 +0000 (02:17 +0000)]
Abort any active transfers when the device detaches. This fixes a
few situations where we used to crash, but by no means all of them.

19 years agoAdd a new function usbd_abort_default_pipe() that aborts any transfers
Ian Dowse [Mon, 14 Feb 2005 01:51:51 +0000 (01:51 +0000)]
Add a new function usbd_abort_default_pipe() that aborts any transfers
on the default pipe. This is helpful in device detach routines to
stop any active control transfers.

19 years agoFix a missing /*-
David E. O'Brien [Mon, 14 Feb 2005 01:10:50 +0000 (01:10 +0000)]
Fix a missing /*-

19 years agoExpand contractions.
Ruslan Ermilov [Sun, 13 Feb 2005 23:45:54 +0000 (23:45 +0000)]
Expand contractions.

19 years agoFix a buffer overflow in the "none" decompression handler that
Tim Kientzle [Sun, 13 Feb 2005 23:29:54 +0000 (23:29 +0000)]
Fix a buffer overflow in the "none" decompression handler that
occurred with large read-ahead requests.  This only affected
formats that incorrectly make large requests (ZIP did this until
recently) or with block sizes over 32k.

19 years agowho's -> whose
Ruslan Ermilov [Sun, 13 Feb 2005 23:23:30 +0000 (23:23 +0000)]
who's -> whose

19 years agoRequest a CPU private mapping from sf_buf_alloc().
Alan Cox [Sun, 13 Feb 2005 23:09:36 +0000 (23:09 +0000)]
Request a CPU private mapping from sf_buf_alloc().

19 years agoFix regression in output with -R compared to previous version.
David E. O'Brien [Sun, 13 Feb 2005 23:07:30 +0000 (23:07 +0000)]
Fix regression in output with -R compared to previous version.

PR: 77466
Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>

19 years agoExpand *n't contractions.
Ruslan Ermilov [Sun, 13 Feb 2005 22:25:33 +0000 (22:25 +0000)]
Expand *n't contractions.

19 years agoRequest a CPU private mapping from sf_buf_alloc(). If the swap-backed
Alan Cox [Sun, 13 Feb 2005 21:51:50 +0000 (21:51 +0000)]
Request a CPU private mapping from sf_buf_alloc().  If the swap-backed
memory disk is larger than the number of available sf_bufs, this improves
performance on SMPs by eliminating interprocessor TLB shootdowns.  For
example, with 6656 sf_bufs, the default on my test machine, and a 256MB
swap-backed memory disk, I see the command
"dd if=/dev/md0 of=/dev/null bs=64k" achieve ~489MB/sec with the default,
shared mappings, and ~587MB/sec with CPU private mappings.

19 years agoWhen attached to a high-speed device, report a more appropriate
Ian Dowse [Sun, 13 Feb 2005 21:38:34 +0000 (21:38 +0000)]
When attached to a high-speed device, report a more appropriate
base transfer speed to CAM. The actual value used (40MB/s) is fairly
arbitrary, but assumes the same 33% overhead as was implied by the
1MB/s figure we used for USB1 devices.

19 years agoLine up license text.
Ruslan Ermilov [Sun, 13 Feb 2005 21:31:50 +0000 (21:31 +0000)]
Line up license text.

19 years agomdoc(7) review.
Ruslan Ermilov [Sun, 13 Feb 2005 21:29:28 +0000 (21:29 +0000)]
mdoc(7) review.

(I thought Nate has committed it long ago, apparently not.)

19 years agoBump date. Reminded by: ru
Nate Lawson [Sun, 13 Feb 2005 21:23:23 +0000 (21:23 +0000)]
Bump date.  Reminded by: ru

19 years agoUpdate documentation of tunables.
Nate Lawson [Sun, 13 Feb 2005 20:26:04 +0000 (20:26 +0000)]
Update documentation of tunables.

19 years agoAllow users to manually override quirks with the tunable "debug.acpi.quirks".
Nate Lawson [Sun, 13 Feb 2005 20:10:28 +0000 (20:10 +0000)]
Allow users to manually override quirks with the tunable "debug.acpi.quirks".
Suggested by: Jung-uk Kim

19 years agoUnbreak the kernel build. Pointy hat to: sobomax.
Nate Lawson [Sun, 13 Feb 2005 19:50:57 +0000 (19:50 +0000)]
Unbreak the kernel build.  Pointy hat to: sobomax.

19 years agoAdd support for the CPUFREQ_FLAG_INFO_ONLY flag. Devices that report this
Nate Lawson [Sun, 13 Feb 2005 18:49:48 +0000 (18:49 +0000)]
Add support for the CPUFREQ_FLAG_INFO_ONLY flag.  Devices that report this
are not added to the list(s) of available settings.  However, other drivers
can call the CPUFREQ_DRV_SETTINGS() method on those devices directly to
get info about available settings.

Update the acpi_perf(4) driver to use this flag in the presence of
"functional fixed hardware."  Thus, future drivers like Powernow can
query acpi_perf for platform info but perform frequency transitions
themselves.

19 years agoIncrease the default stacksizes:
Daniel Eischen [Sun, 13 Feb 2005 18:38:06 +0000 (18:38 +0000)]
Increase the default stacksizes:

32-bit 64-bit
main thread   2MB   4MB
other threads   1MB   2MB

19 years agoDefine NIRQ to 64 for CPU_ARM9, because Cirrus Logic EP93XX cores provides
Olivier Houchard [Sun, 13 Feb 2005 18:26:31 +0000 (18:26 +0000)]
Define NIRQ to 64 for CPU_ARM9, because Cirrus Logic EP93XX cores provides
64 irqs.
This should be re-thought later.

19 years agoRemove unused prototype.
Olivier Houchard [Sun, 13 Feb 2005 18:20:39 +0000 (18:20 +0000)]
Remove unused prototype.

19 years agoRemove redondant includes.
Olivier Houchard [Sun, 13 Feb 2005 18:05:36 +0000 (18:05 +0000)]
Remove redondant includes.

19 years agoBackout addition of SIGTHR into the list of signals allowed to be delivered
Maxim Sobolev [Sun, 13 Feb 2005 17:51:47 +0000 (17:51 +0000)]
Backout addition of SIGTHR into the list of signals allowed to be delivered
to the suid/sugid process, since apparently it has security implications.

Suggested by:   rwatson

19 years agoBackout previous change (disabling of security checks for signals delivered
Maxim Sobolev [Sun, 13 Feb 2005 17:37:20 +0000 (17:37 +0000)]
Backout previous change (disabling of security checks for signals delivered
in emulation layers), since it appears to be too broad.

Requested by:   rwatson

19 years agoSet levels on all CPUs and attach a cpufreq device to each one. Sysctl
Nate Lawson [Sun, 13 Feb 2005 17:31:56 +0000 (17:31 +0000)]
Set levels on all CPUs and attach a cpufreq device to each one.  Sysctl
on dev.cpu.0 will affect all of the CPUs together.  In the future,
independent control will be supported but this is good enough for now.
Check that the timecounter isn't TSC before switching (from Colin Percival.)

19 years agoDon't prototype pmap_kenter().
Olivier Houchard [Sun, 13 Feb 2005 17:18:20 +0000 (17:18 +0000)]
Don't prototype pmap_kenter().

19 years agoSplit out kill(2) syscall service routine into user-level and kernel part, the
Maxim Sobolev [Sun, 13 Feb 2005 16:42:08 +0000 (16:42 +0000)]
Split out kill(2) syscall service routine into user-level and kernel part, the
former is callable from user space and the latter from the kernel one. Make
kernel version take additional argument which tells if the respective call
should check for additional restrictions for sending signals to suid/sugid
applications or not.

Make all emulation layers using non-checked version, since signal numbers in
emulation layers can have different meaning that in native mode and such
protection can cause misbehaviour.

As a result remove LIBTHR from the signals allowed to be delivered to a
suid/sugid application.

Requested (sorta) by: rwatson
MFC after: 2 weeks

19 years agoBump cookie value to reflect change in NGM_IFACE_GET_IFNAME semantics.
Archie Cobbs [Sun, 13 Feb 2005 16:36:41 +0000 (16:36 +0000)]
Bump cookie value to reflect change in NGM_IFACE_GET_IFNAME semantics.

19 years agoSynchronize HEAD copyright/license with RELENG_5 copyright/license:
Robert Watson [Sun, 13 Feb 2005 13:59:34 +0000 (13:59 +0000)]
Synchronize HEAD copyright/license with RELENG_5 copyright/license:
McAfee instead of NETA.

19 years agoNew order after _netcat has been changed to _nc: sort the list.
Xin LI [Sun, 13 Feb 2005 13:42:20 +0000 (13:42 +0000)]
New order after _netcat has been changed to _nc: sort the list.

Submitted by: ru
Pointy hat to: me

19 years agoBack out the previous commit. There is an obvious bug in it.
Hartmut Brandt [Sun, 13 Feb 2005 13:33:56 +0000 (13:33 +0000)]
Back out the previous commit. There is an obvious bug in it.

Pointy hat to: harti

19 years agoInstall netgraph type at an appropriate time.
Ruslan Ermilov [Sun, 13 Feb 2005 11:15:25 +0000 (11:15 +0000)]
Install netgraph type at an appropriate time.

19 years agoSpell the variable as underscore plus their possible value, to follow
Xin LI [Sun, 13 Feb 2005 10:11:21 +0000 (10:11 +0000)]
Spell the variable as underscore plus their possible value, to follow
the style nearby.

Submitted by: ru

19 years agoForgotten to commit this file during the last commit. Connect nc(1)
Xin LI [Sun, 13 Feb 2005 07:12:23 +0000 (07:12 +0000)]
Forgotten to commit this file during the last commit.  Connect nc(1)
to build.

19 years agoImplement support for CPU private mappings within sf_buf_alloc().
Alan Cox [Sun, 13 Feb 2005 06:23:13 +0000 (06:23 +0000)]
Implement support for CPU private mappings within sf_buf_alloc().

19 years agoUse the correct variable name in ibsad()
Scott Long [Sun, 13 Feb 2005 06:21:36 +0000 (06:21 +0000)]
Use the correct variable name in ibsad()

19 years agoBarrow from kmod.mk and protect against adding -fno-strict-aliasing
David E. O'Brien [Sun, 13 Feb 2005 05:58:40 +0000 (05:58 +0000)]
Barrow from kmod.mk and protect against adding -fno-strict-aliasing
when it is already in COPTFLAGS.

19 years agoAdd the new CPUFREQ_FLAG_INFO_ONLY flag for drivers which can attach to
Nate Lawson [Sun, 13 Feb 2005 05:37:19 +0000 (05:37 +0000)]
Add the new CPUFREQ_FLAG_INFO_ONLY flag for drivers which can attach to
read info about the possible settings for a CPU but cannot control them
directly.

19 years agoBe sure to register with cpufreq(4). On systems that only supported
Nate Lawson [Sun, 13 Feb 2005 05:34:52 +0000 (05:34 +0000)]
Be sure to register with cpufreq(4).  On systems that only supported
throttling, neglecting to do this kept the sysctls from appearing.
Attach an acpi_throttle device to each CPU that supports it.
Don't add a device if the P_BLK is invalid or if _PTC is not present.
This removes extraneous probe/attach failure messages on some machines.
Make the cpu throttle state local to the softc to account for partial
successes when changing the clock rate on MP machines.

19 years agoAttach an acpi_perf device for every processor that offers the right
Nate Lawson [Sun, 13 Feb 2005 05:25:27 +0000 (05:25 +0000)]
Attach an acpi_perf device for every processor that offers the right
methods.

19 years agoDrop mythical module dependency on ng_ether.
Ruslan Ermilov [Sun, 13 Feb 2005 00:50:18 +0000 (00:50 +0000)]
Drop mythical module dependency on ng_ether.

19 years agoCheck handle types.
Poul-Henning Kamp [Sat, 12 Feb 2005 23:52:44 +0000 (23:52 +0000)]
Check handle types.
Implement more device functions.
Make DMA optional.

19 years agoOops. I missed a 0 => '\0' correction.
Tim Kientzle [Sat, 12 Feb 2005 23:33:31 +0000 (23:33 +0000)]
Oops.  I missed a 0 => '\0' correction.

Thanks to: Ruslan

19 years agoReword a sentence to conform with our mdoc(7) style.
Tom Rhodes [Sat, 12 Feb 2005 23:23:53 +0000 (23:23 +0000)]
Reword a sentence to conform with our mdoc(7) style.
Modify wording in a sentence to avoid a run on within ().
Remove a contraction.

Submitted by: Joel Dahl <joel@automatvapen.se> (original version)

19 years agoClear the error message buffer on entry to major routines.
Tim Kientzle [Sat, 12 Feb 2005 23:11:29 +0000 (23:11 +0000)]
Clear the error message buffer on entry to major routines.
This avoids having error messages get concatenated over multiple calls.

19 years agoUpdate the format descriptions to include ISO9660 and ZIP support.
Tim Kientzle [Sat, 12 Feb 2005 23:09:44 +0000 (23:09 +0000)]
Update the format descriptions to include ISO9660 and ZIP support.
Also remove some unnecessary blank lines from archive_read.3.

19 years agoPerformance optimization, code clarification, and bug workaround.
Tim Kientzle [Sat, 12 Feb 2005 23:00:31 +0000 (23:00 +0000)]
Performance optimization, code clarification, and bug workaround.
When reading the bodies of Zip archive entries, request a minimum of 1
byte, rather than a minimum of the full entry size.  This is faster
(since it does not force the decompression layer to combine reads) and
works around a bug in the "none" decompression handler (which I'm
testing a separate fix for now).  I've also renamed "bytes_read" to
"bytes_avail" in several places to more accurately reflect that the
value returned from (a->compression_read_ahead) is the number of bytes
available, not necessarily the number of bytes requested.

19 years agoFill in some more Rockridge details in ISO9660 support: Ignore PD
Tim Kientzle [Sat, 12 Feb 2005 22:48:38 +0000 (22:48 +0000)]
Fill in some more Rockridge details in ISO9660 support: Ignore PD
(padding) entries, extract inode value from PX entry, recognize SP and
ST (start/end of SUSP extensions).

I don't enforce SP yet, as I've seen CDROMs which use Rockridge
extensions but don't have the SP record (which is officially
required).

The ISO9660 support is now mature enough to extract FreeBSD
distribution CDROMs created with mkisofs.

19 years agoFlush input when reading from pipe to avoid "broken pipe" warnings.
Tim Kientzle [Sat, 12 Feb 2005 22:44:50 +0000 (22:44 +0000)]
Flush input when reading from pipe to avoid "broken pipe" warnings.
For example, when using 'gunzip | tar' to decompress.
Also, fix some style issues (write null character as '\0').

Thanks to: Jaakko Heinonen

19 years ago- Fixed description of the "destroy" command options.
Ruslan Ermilov [Sat, 12 Feb 2005 21:47:05 +0000 (21:47 +0000)]
- Fixed description of the "destroy" command options.
- Document the "nuke" command.
- Mention which commands correspond to which functions.

19 years agoAdd ibcntl as alias for ibcnt
Poul-Henning Kamp [Sat, 12 Feb 2005 21:07:09 +0000 (21:07 +0000)]
Add ibcntl as alias for ibcnt
Add ibsta and start to use it.
Rename the argument structure more sensibly.
Improve timeout and error handling

19 years agoAlso build the netblast sub-directory, not just netreceive and netsend.
Robert Watson [Sat, 12 Feb 2005 20:04:23 +0000 (20:04 +0000)]
Also build the netblast sub-directory, not just netreceive and netsend.

MFC after: 3 days

19 years agoMark the signum argument to signal_handler() as __unused.
Robert Watson [Sat, 12 Feb 2005 20:03:30 +0000 (20:03 +0000)]
Mark the signum argument to signal_handler() as __unused.

MFC after: 3 days

19 years agoRestore previous cookie. Old programs will work with new node OK,
Gleb Smirnoff [Sat, 12 Feb 2005 19:23:20 +0000 (19:23 +0000)]
Restore previous cookie. Old programs will work with new node OK,
new programs with old node wil receive EINVAL trying to access new
messages.

Submitted by: ru

19 years ago- bzero sockaddr_dl
Gleb Smirnoff [Sat, 12 Feb 2005 19:19:29 +0000 (19:19 +0000)]
- bzero sockaddr_dl
- use constant instead of number

Suggested by: ru

19 years agoBack out no longer necessary work-arounds added in rev. 1.59 for building
Marius Strobl [Sat, 12 Feb 2005 19:19:20 +0000 (19:19 +0000)]
Back out no longer necessary work-arounds added in rev. 1.59 for building
SBus-only kernels regarding ofw_machdep.c.

19 years ago- Re-write OF_decode_addr() with a bus-neutral approach, adding support
Marius Strobl [Sat, 12 Feb 2005 19:13:51 +0000 (19:13 +0000)]
- Re-write OF_decode_addr() with a bus-neutral approach, adding support
  for nodes hanging off of Central (untested), FireHose (untested) and
  PCI (tested) busses.
- Add an additional parameter to OF_decode_addr() which specifies the
  index of the register bank to decode.

These should allow to eventually add support for the Z8530 hanging off of
FireHose to uart(4) and to write support for PCI-based graphics adapters.

Suggested by: tmm (back in '03)

19 years agoMerge revision 1.5 from NetBSD: Fix a typo in a comment.
Marius Strobl [Sat, 12 Feb 2005 19:12:17 +0000 (19:12 +0000)]
Merge revision 1.5 from NetBSD: Fix a typo in a comment.
NetBSD rev. 1.4 (addition of the OFW_PCI_PHYS_HI_BUS macro) had already
been merged prior to adding this file to FreeBSD (with the 1.3 tag though).

19 years agoFix typo in a comment.
Ruslan Ermilov [Sat, 12 Feb 2005 18:10:26 +0000 (18:10 +0000)]
Fix typo in a comment.

19 years agoAdd to CFLAGS.
Ruslan Ermilov [Sat, 12 Feb 2005 18:09:20 +0000 (18:09 +0000)]
Add to CFLAGS.

19 years agoValidate ifc->ifc_len before submitting its incarnation to sbuf_new,
Xin LI [Sat, 12 Feb 2005 17:51:12 +0000 (17:51 +0000)]
Validate ifc->ifc_len before submitting its incarnation to sbuf_new,
which will finally lead to kernel panic.

Security: This prevents a local (root-launched) DoS
Submitted by: Wojciech A. Koszek [dunstan at freebsd czest pl]
PR: 77421
MFC After: 1 week

19 years agoSplit the ibfoo API into its own file.
Poul-Henning Kamp [Sat, 12 Feb 2005 17:39:50 +0000 (17:39 +0000)]
Split the ibfoo API into its own file.
Implement ibdma() (only affects ibrd() mode)
Implement ibeot()

19 years agoConnect ng_source(4) to the build.
Ruslan Ermilov [Sat, 12 Feb 2005 17:04:21 +0000 (17:04 +0000)]
Connect ng_source(4) to the build.

19 years agoFallout from the ALTQ import.
Ruslan Ermilov [Sat, 12 Feb 2005 17:03:01 +0000 (17:03 +0000)]
Fallout from the ALTQ import.

19 years agoImprove the mining of MAC address from the card:
Warner Losh [Sat, 12 Feb 2005 16:44:15 +0000 (16:44 +0000)]
Improve the mining of MAC address from the card:
o Add a fallback location for the MAC address.  Most of the early ne2000
  PC Cards were built from the same parts, so most of them have the same
  address in the CIS to grab the MAC from.  Use this address as our
  fallback if we don't find anything better.
o Add printf, in bootverbose, noting the MAC addresses that we find along
  the way.

# Better sanity checking of the MAC address is needed.  Will have to
# investigate using/creating a centralized function to do this as a number
# of other PC Card drivers each have their own ad-hoc tests.

19 years agoAllocate enough space for new tag.
Gleb Smirnoff [Sat, 12 Feb 2005 16:26:36 +0000 (16:26 +0000)]
Allocate enough space for new tag.

Pointy hat to: glebius

19 years agoFix typo. We want to unlock mutex here.
Pawel Jakub Dawidek [Sat, 12 Feb 2005 16:19:03 +0000 (16:19 +0000)]
Fix typo. We want to unlock mutex here.

Submitted by: Andreas Kohn <andreas.kohn@gmail.com>
MFC after: 1 week

19 years agoFix prototype for ibeot()
Poul-Henning Kamp [Sat, 12 Feb 2005 15:49:50 +0000 (15:49 +0000)]
Fix prototype for ibeot()

19 years agoUse the eot argument field for ibeot().
Poul-Henning Kamp [Sat, 12 Feb 2005 15:49:20 +0000 (15:49 +0000)]
Use the eot argument field for ibeot().

19 years agoWhen netgraph(4) was converted to use mbuf_tags(9) instead of meta-data
Gleb Smirnoff [Sat, 12 Feb 2005 14:54:19 +0000 (14:54 +0000)]
When netgraph(4) was converted to use mbuf_tags(9) instead of meta-data
a definite setup was broken: two ng_ksockets are connected to each other,
connect()ed to different remote hosts, and bind()ed to different local
interfaces. In this case one ng_ksocket is fooled with tag from the other
one.

Put node id into tag. In rcvdata method utilize tag only if it has our
own id inside or id equals zero. The latter case is added to support
packets send by some third, not ng_ksocket node.

MFC after: 1 week

19 years agoBump __FreeBSD_version for removal of matherr() from libm. (matherr()
David Schultz [Sat, 12 Feb 2005 13:19:11 +0000 (13:19 +0000)]
Bump __FreeBSD_version for removal of matherr() from libm.  (matherr()
went out of fashion when the third edition of SVID de-supported it
nearly 20 years ago, and it has never actually worked in FreeBSD.)

19 years agoConnect ng_atmllc(4) to the build.
Ruslan Ermilov [Sat, 12 Feb 2005 12:49:32 +0000 (12:49 +0000)]
Connect ng_atmllc(4) to the build.

19 years agoDon't export symbols, all netgraph modules appear to have
Ruslan Ermilov [Sat, 12 Feb 2005 12:42:54 +0000 (12:42 +0000)]
Don't export symbols, all netgraph modules appear to have
proper module dependencies.

While here, removed stray -Wall from CFLAGS.

19 years agoBitrot: the ethernet parse type is long standard.
Ruslan Ermilov [Sat, 12 Feb 2005 12:35:56 +0000 (12:35 +0000)]
Bitrot: the ethernet parse type is long standard.

19 years agoTwo problems here:
Ruslan Ermilov [Sat, 12 Feb 2005 12:04:10 +0000 (12:04 +0000)]
Two problems here:

1.  Dependency on netgraph module was broken (wrong version).
2.  Netgraph node type was never destroyed on unload.  This
    was masked by problem #1.

Fixed both by using NETGRAPH_INIT().  Now netgraph node type
is created on module load, as in the rest of netgraph modules.

19 years agoDocument multicast membership control messages.
Gleb Smirnoff [Sat, 12 Feb 2005 11:52:14 +0000 (11:52 +0000)]
Document multicast membership control messages.

19 years agoAdd two new netgraph messages NGM_ETHER_ADD_MULTI and NGM_ETHER_DEL_MULTI,
Gleb Smirnoff [Sat, 12 Feb 2005 11:41:32 +0000 (11:41 +0000)]
Add two new netgraph messages NGM_ETHER_ADD_MULTI and NGM_ETHER_DEL_MULTI,
to join and leave Ethernet multicast membership, respectively. Messages
take MAC address as argument.

Sponsored by: Rinet ISP

19 years agoRemoved redundant MODULE_VERSION().
Ruslan Ermilov [Sat, 12 Feb 2005 11:14:25 +0000 (11:14 +0000)]
Removed redundant MODULE_VERSION().

19 years agoMake netgraph ISR and callout MPSAFE.
Gleb Smirnoff [Sat, 12 Feb 2005 09:52:36 +0000 (09:52 +0000)]
Make netgraph ISR and callout MPSAFE.

Reviewed by: rwatson, ru

19 years agoFix comparisons that test if an unsigned value is < 0.
Stefan Farfeleder [Sat, 12 Feb 2005 08:45:12 +0000 (08:45 +0000)]
Fix comparisons that test if an unsigned value is < 0.

Reviewed by: tjr

19 years agoAdd comment about MAC mining
Warner Losh [Sat, 12 Feb 2005 08:27:46 +0000 (08:27 +0000)]
Add comment about MAC mining

19 years agoRemove a shadow declaration of 'error' that caused certain tests to be
Scott Long [Sat, 12 Feb 2005 04:51:19 +0000 (04:51 +0000)]
Remove a shadow declaration of 'error' that caused certain tests to be
pointless.

Submitted by: Coverity Prevent analysis tool

19 years agoAdd lock assertion.
Alan Cox [Sat, 12 Feb 2005 03:48:54 +0000 (03:48 +0000)]
Add lock assertion.

Tested by: jhb

19 years agoAdd much needed descriptions for a number of the IPC related sysctl OIDs.
Christian S.J. Peron [Sat, 12 Feb 2005 01:22:39 +0000 (01:22 +0000)]
Add much needed descriptions for a number of the IPC related sysctl OIDs.
This information will be very useful for people who are tuning applications
which have a dependence on IPC mechanisms.

The following OIDs were documented:

Message queues:
 kern.ipc.msgmax
 kern.ipc.msgmni
 kern.ipc.msgmnb
 kern.ipc.msgtlq
 kern.ipc.msgssz
 kern.ipc.msgseg

Semaphores:
 kern.ipc.semmap
 kern.ipc.semmni
 kern.ipc.semmns
 kern.ipc.semmnu
 kern.ipc.semmsl
 kern.ipc.semopm
 kern.ipc.semume
 kern.ipc.semusz
 kern.ipc.semvmx
 kern.ipc.semaem

Shared memory:
 kern.ipc.shmmax
 kern.ipc.shmmin
 kern.ipc.shmmni
 kern.ipc.shmseg
 kern.ipc.shmall
 kern.ipc.shm_use_phys
 kern.ipc.shm_allow_removed
 kern.ipc.shmsegs

These new descriptions can be viewed using sysctl -d

PR: kern/65219
Submitted by: Dan Nelson <dnelson at allantgroup dot com> (modified)
No objections: developers@
Descriptions reviewed by: gnn
MFC after: 1 week

19 years agoBumped up the driver version, following recent changes.
Vinod Kashyap [Sat, 12 Feb 2005 01:16:28 +0000 (01:16 +0000)]
Bumped up the driver version, following recent changes.

19 years agoReally old PCMCIA cards stored the MAC address in the attribute memory
Warner Losh [Sat, 12 Feb 2005 00:45:22 +0000 (00:45 +0000)]
Really old PCMCIA cards stored the MAC address in the attribute memory
at some offset.  Unlike newer cards, the MAC address wasn't part of
the CIS as a specific FUNCE.  These older cards were having their MAC
address show up as 0:2:4:6:8:a because that's what's in the ROM
locations that would be there in a real ne2000.

This patch allows one to specify the offset for the MAC address for
these cards.  Specify one for the IBM Ethernet II card, as it is one
that has this problem.  One shouldn't specify this unless the MAC
address really isn't in the CIS at all.

Side note: The novell probe likely shouldn't read the MAC address, and
that should be moved to the bus specific attach routine(s), maybe as a
convenience function in if_ed_novell.c.

My IBM Ethernet II (aka Info Mover) now has a believable MAC address.

19 years agoNo one cares about when the manpage first appeared. Mention when the driver
Christian Brueffer [Sat, 12 Feb 2005 00:42:14 +0000 (00:42 +0000)]
No one cares about when the manpage first appeared.  Mention when the driver
appeared instead.

MFC after: 3 days

19 years agostyle: fix indentation and spacing.
Gleb Smirnoff [Fri, 11 Feb 2005 23:17:50 +0000 (23:17 +0000)]
style: fix indentation and spacing.

Submitted by: ru

19 years agoDo not trust ipfw: check m_len always, not only after m_dup.
Gleb Smirnoff [Fri, 11 Feb 2005 23:07:22 +0000 (23:07 +0000)]
Do not trust ipfw: check m_len always, not only after m_dup.

Submitted by: ru

19 years ago- do m_pullup() after m_dup()
Gleb Smirnoff [Fri, 11 Feb 2005 22:28:58 +0000 (22:28 +0000)]
- do m_pullup() after m_dup()
- clean style in previous commit

Suggested by: ru

19 years agoMake sure the last command byte makes it onto the wire.
Poul-Henning Kamp [Fri, 11 Feb 2005 22:24:02 +0000 (22:24 +0000)]
Make sure the last command byte makes it onto the wire.

19 years agopullup to sizeof struct ip before sending to ip_output.
Gleb Smirnoff [Fri, 11 Feb 2005 21:26:39 +0000 (21:26 +0000)]
pullup to sizeof struct ip before sending to ip_output.

Suggested by: ru

19 years agoDon't read more than the given 'len' bytes from the 'big' string.
Pawel Jakub Dawidek [Fri, 11 Feb 2005 21:07:51 +0000 (21:07 +0000)]
Don't read more than the given 'len' bytes from the 'big' string.

PR: misc/77369
Submitted by: Ed Maste <emaste@phaedrus.sandvine.ca>
MFC after: 1 week

19 years agoFurther embellish rev. 1.180: protect against -fno-strict-aliasing
Ruslan Ermilov [Fri, 11 Feb 2005 21:04:20 +0000 (21:04 +0000)]
Further embellish rev. 1.180: protect against -fno-strict-aliasing
being already in CFLAGS (as is the case with "make buildkernel").

NB: rev. 1.180 is only needed due to a broken setting of CFLAGS in
tinderbox.

19 years agoPackets from ipfw come with IP header in host byte order. Netgraph works
Gleb Smirnoff [Fri, 11 Feb 2005 20:53:41 +0000 (20:53 +0000)]
Packets from ipfw come with IP header in host byte order. Netgraph works
with net byte order. Change byte order to net in ng_ipfw_input(), change
byte order to host before ip_output(), do not change before ip_input().

In collaboration with: ru

19 years agoStylistic fixes: push variable into a local context (this part is going
Hartmut Brandt [Fri, 11 Feb 2005 17:03:18 +0000 (17:03 +0000)]
Stylistic fixes: push variable into a local context (this part is going
to be split out into a function soon). Also there is no need to write
back the colon that we have NUL-ed - the string is going to be freed
anyway.

Submitted by: Max Okumoto <okumoto@ucsd.edu>

19 years agosysctl node vm.stats can not be static (for ia64 reasons).
Poul-Henning Kamp [Fri, 11 Feb 2005 16:34:14 +0000 (16:34 +0000)]
sysctl node vm.stats can not be static (for ia64 reasons).