dragonfly.git
11 years agopfil_hook_get() is only used in pfil.c, so hide it
Sepherosa Ziehau [Sun, 14 Sep 2008 02:05:07 +0000 (02:05 +0000)]
pfil_hook_get() is only used in pfil.c, so hide it

11 years agoAdd line width calculations for 15/16 and 24/32 bit modes in case
Sascha Wildner [Sat, 13 Sep 2008 19:08:05 +0000 (19:08 +0000)]
Add line width calculations for 15/16 and 24/32 bit modes in case
the "Get Scan Line Length" function fails, as it does in Parallels
(in Version 2.2, Build 2112 at least).

11 years agoMove ipfw(4) code for ip_{input,output}() into ip_fw2.c to create in/out
Sepherosa Ziehau [Sat, 13 Sep 2008 12:57:07 +0000 (12:57 +0000)]
Move ipfw(4) code for ip_{input,output}() into ip_fw2.c to create in/out
pfil hooks for AF_INET pfil head.

During ipfw(4) module loading, ipfw(4) pfil hooks will be added to AF_INET
pfil head, only if fw_enable is 1.  ipfw(4) pfil hooks could be added and
deleted from AF_INET pfil head dynamicly by setting net.inet.ip.fw.enable
(1 to add, 0 to delete)

11 years agoConsolidate moved variables.
Simon Schubert [Sat, 13 Sep 2008 11:46:28 +0000 (11:46 +0000)]
Consolidate moved variables.

11 years agoEnable hammer read support in boot2.
Simon Schubert [Sat, 13 Sep 2008 11:45:45 +0000 (11:45 +0000)]
Enable hammer read support in boot2.

11 years agoAdd hammer read support for loader.
Simon Schubert [Sat, 13 Sep 2008 11:38:58 +0000 (11:38 +0000)]
Add hammer read support for loader.

11 years agoAdd a place holder sysctl function to enable and disable ipfw(4)
Sepherosa Ziehau [Sat, 13 Sep 2008 10:47:23 +0000 (10:47 +0000)]
Add a place holder sysctl function to enable and disable ipfw(4)

11 years agoMove ipfw(4) related bits into ip_fw2_glue.c
Sepherosa Ziehau [Sat, 13 Sep 2008 10:23:39 +0000 (10:23 +0000)]
Move ipfw(4) related bits into ip_fw2_glue.c

11 years agopf(4) may reassemble ip fragments, so we probably should recalculate hlen
Sepherosa Ziehau [Sat, 13 Sep 2008 09:07:31 +0000 (09:07 +0000)]
pf(4) may reassemble ip fragments, so we probably should recalculate hlen

11 years ago- Move IPDIVERT related bits into netinet/ip_divert.c
Sepherosa Ziehau [Sat, 13 Sep 2008 08:48:42 +0000 (08:48 +0000)]
- Move IPDIVERT related bits into netinet/ip_divert.c
- Expose ip_reass(), which is used by ip_divert_in()
- Add function ptr ip_divert_p, which will be set to ip_divert(), if IPDIVERT
  support is compiled into kernel.  ip_divert() dispatches real work to either
  ip_divert_in() or ip_divert_out() based on the third parameter
- Hide divert_packet() after above change

11 years agoAdd FW_MBUF_REDISPATCH, which should be set by various firewall code,
Sepherosa Ziehau [Sat, 13 Sep 2008 07:15:14 +0000 (07:15 +0000)]
Add FW_MBUF_REDISPATCH, which should be set by various firewall code,
if ip fragments get reassembled.

11 years ago- Let caller of ip_fw_dn_io_ptr call ip_dn_queue(), so that callers have the
Sepherosa Ziehau [Sat, 13 Sep 2008 05:49:08 +0000 (05:49 +0000)]
- Let caller of ip_fw_dn_io_ptr call ip_dn_queue(), so that callers have the
  chance to save additional information to dummynet tag (e.g. ip_output)
- In ip_{input,output}(), call ip_dn_queue() outside of ipfw(4) processing
  code block
- Move saving dst, ro and flags from ipfw_dummynet_io() to ip_output()
- Remove unused fields in ip_fw_args
- Update comment

11 years agoUse extended interface FIFO depth to workaround CRC errors emitted by
Sepherosa Ziehau [Sat, 13 Sep 2008 04:04:39 +0000 (04:04 +0000)]
Use extended interface FIFO depth to workaround CRC errors emitted by
JMC250 chips before rev.B

Information provided by Ethan <ethanhsiao@jmicron.com>

11 years ago- Save device caps in device id array
Sepherosa Ziehau [Sat, 13 Sep 2008 03:12:23 +0000 (03:12 +0000)]
- Save device caps in device id array
- CAP_NOJUMBO -> CAP_JUMBO

11 years agoSplit capabilities and flags
Sepherosa Ziehau [Sat, 13 Sep 2008 03:04:17 +0000 (03:04 +0000)]
Split capabilities and flags

11 years ago- Clean up header inclusion
Sepherosa Ziehau [Sat, 13 Sep 2008 02:47:03 +0000 (02:47 +0000)]
- Clean up header inclusion
- Add revid for JMC250

11 years agoUse IDs from pcidevs.h
Sepherosa Ziehau [Sat, 13 Sep 2008 02:30:37 +0000 (02:30 +0000)]
Use IDs from pcidevs.h

11 years agoregen
Sepherosa Ziehau [Sat, 13 Sep 2008 02:22:40 +0000 (02:22 +0000)]
regen

11 years agoAdd IDs for JMicron and its JMC250/JMC260
Sepherosa Ziehau [Sat, 13 Sep 2008 02:21:56 +0000 (02:21 +0000)]
Add IDs for JMicron and its JMC250/JMC260

11 years ago- Fix function parameters order bug:
Sepherosa Ziehau [Fri, 12 Sep 2008 11:37:41 +0000 (11:37 +0000)]
- Fix function parameters order bug:
  udp_addrcpu() expects faddr,fport,laddr,lport not faddr,laddr,fport,lport
- Add IP_DEBUGROUTE flag to let ip_output() know that we have confidence in
  the inp's route cache.  Currently UDP output sets this flag, since after
  the above fix, UDP inp's route cache would only be used on its owner CPU
- Rename remote_free_panic to route_assert_owner_access, and expose it as
  global variable.  Keep net.route.remote_free_panic as an alias to
  net.route.assert_owner_access

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1134>

11 years agoSync libmd with FreeBSD:
Sascha Wildner [Thu, 11 Sep 2008 20:25:34 +0000 (20:25 +0000)]
Sync libmd with FreeBSD:

* Some bugfixes

* Addition of *_FileChunk()

* Minor changes/cleanup

11 years ago- Add rtfree_remote(), which send rtentry to its owner CPU to be freed.
Sepherosa Ziehau [Thu, 11 Sep 2008 11:23:29 +0000 (11:23 +0000)]
- Add rtfree_remote(), which send rtentry to its owner CPU to be freed.
  Print backtrace, if net.route.remote_free_panic is 0.  This function
  only serves as _temporary_ workaround.
- In ip_output(), if passed rtentry cache's owner CPU is not the current,
  then keep it untouched and use the stack variable to relocate the route.
  Add comment about it.  This at least could happen in the following
  callgraph on a TCP socket, on which listen(2) has been called:
  ip_input() -> tcp_input() -> tcp_respond() -> ip_output()

Related to Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1134>

11 years ago#ifdef DDB without including "opt_ddb.h"
YONETANI Tomokazu [Thu, 11 Sep 2008 01:11:42 +0000 (01:11 +0000)]
#ifdef DDB without including "opt_ddb.h"

11 years agoImprove code flow for KASSERT and KKASSERT using __predict_false().
Matthew Dillon [Thu, 11 Sep 2008 00:35:49 +0000 (00:35 +0000)]
Improve code flow for KASSERT and KKASSERT using __predict_false().

Fix a bug in KKASSERT related to the use of an else clause after
the KKASSERT.

11 years agoAugment loader.conf's manual page to describe hw.usb.hack_defer_exploration
Matthew Dillon [Wed, 10 Sep 2008 18:17:01 +0000 (18:17 +0000)]
Augment loader.conf's manual page to describe hw.usb.hack_defer_exploration
and vfs.root.mountfrom.

11 years agoFix spurious printing of the "got link" message.
Matthias Schmidt [Wed, 10 Sep 2008 10:01:18 +0000 (10:01 +0000)]
Fix spurious printing of the "got link" message.

11 years agomissing crit_exit()
YONETANI Tomokazu [Wed, 10 Sep 2008 09:50:09 +0000 (09:50 +0000)]
missing crit_exit()

11 years agoFix bug in hammer mirror command when used with a remote source
Matthew Dillon [Tue, 9 Sep 2008 23:34:21 +0000 (23:34 +0000)]
Fix bug in hammer mirror command when used with a remote source
specification.

Reported-by: Michael Neumann <mneumann@ntecs.de>
11 years agoAdd example crontab line to the prune section.
Matthias Schmidt [Tue, 9 Sep 2008 11:38:43 +0000 (11:38 +0000)]
Add example crontab line to the prune section.

11 years ago- ipfw(4) does not need opt_ipdn.h and opt_ipdivert.h
Sepherosa Ziehau [Tue, 9 Sep 2008 11:37:08 +0000 (11:37 +0000)]
- ipfw(4) does not need opt_ipdn.h and opt_ipdivert.h
- Use BUILDING_WITH_KERNEL in module Makefile
- Make ipfw(4) building depends on opt_inet.h and opt_ipfw.h

11 years agoAdd a MSGF_NORESCHED feature for lwkt thread-based message ports. The
Matthew Dillon [Tue, 9 Sep 2008 07:21:57 +0000 (07:21 +0000)]
Add a MSGF_NORESCHED feature for lwkt thread-based message ports.  The
idea is to use it to allow certain async messages to be queued to higher
priority system threads and schedule those threads without forcing an
immediate reschedule.

The feature will be used by the new socket code to prevent cavitation
between a user process and system protocol thread when the user process
is write()ing a lot of data over the network.

11 years agoFix issues with the scheduler that were causing unnecessary reschedules
Matthew Dillon [Tue, 9 Sep 2008 04:06:20 +0000 (04:06 +0000)]
Fix issues with the scheduler that were causing unnecessary reschedules
between tightly coupled processes as well as inefficient reschedules under
heavy loads.

The basic problem is that a process entering the kernel is 'passively
released', meaning its thread priority is left at TDPRI_USER_NORM.  The
thread priority is only raised to TDPRI_KERN_USER if the thread switches
out.  This has the side effect of forcing a LWKT reschedule when any other
user process woke up from a blocked condition in the kernel, regardless of
its user priority, because it's LWKT thread was at the higher
TDPRI_KERN_USER priority.   This resulted in some significant switching
cavitation under load.

There is a twist here because we do not want to starve threads running in
the kernel acting on behalf of a very low priority user process, because
doing so can deadlock the namecache or other kernel elements that sleep with
lockmgr locks held.  In addition, the 'other' LWKT thread might be associated
with a much higher priority user process that we *DO* in fact want to give
cpu to.

The solution is elegant.  First, do not force a LWKT reschedule for the
above case.  Second, force a LWKT reschedule on every hard clock.  Remove
all the old hacks.  That's it!

The result is that the current thread is allowed to return to user
mode and run until the next hard clock even if other LWKT threads (running
on behalf of a user process) are runnable.  Pure kernel LWKT threads still
get absolute priority, of course.  When the hard clock occurs the other LWKT
threads get the cpu and at the end of that whole mess most of those
LWKT threads will be trying to return to user mode and the user scheduler
will be able to select the best one.  Doing this on a hardclock boundary
prevents cavitation from occuring at the syscall enter and return boundary.

With this change the TDF_NORESCHED and PNORESCHED flags and their associated
code hacks have also been removed, along with lwkt_checkpri_self() which
is no longer needed.

11 years ago- Factor out ip_localforward()
Sepherosa Ziehau [Mon, 8 Sep 2008 12:41:39 +0000 (12:41 +0000)]
- Factor out ip_localforward()
- Reroute the packet using the route variable on the stack, if it could not
  be forwarded locally
- Move next_hop (transparent forwarding) processing out of ipfw code block

11 years agoTurn power off for detached (module unloaded) PCI devices. No power down is
Hasso Tepper [Mon, 8 Sep 2008 10:16:23 +0000 (10:16 +0000)]
Turn power off for detached (module unloaded) PCI devices. No power down is
done by default, you have to use hw.pci.do_power_nodriver sysctl.

11 years agoMove next_hop (tranparent forwarding) testing and extraction out of ipfw
Sepherosa Ziehau [Sun, 7 Sep 2008 11:12:15 +0000 (11:12 +0000)]
Move next_hop (tranparent forwarding) testing and extraction out of ipfw
processing code block

11 years agoLet ipfw_chk() return IP_FW_{PASS,DENY,DUMMYNET,TEE,DIVERT} and the caller
Sepherosa Ziehau [Sun, 7 Sep 2008 10:03:45 +0000 (10:03 +0000)]
Let ipfw_chk() return IP_FW_{PASS,DENY,DUMMYNET,TEE,DIVERT} and the caller
proceeds according to the return value in well strutured switch block.  The
additional information related to the return value (e.g. pipe/queue number
of IP_FW_DUMMYNET) is saved in ip_fw_args.cookie.

Idea-from: FreeBSD

11 years agoAdd missing .Nm
Sascha Wildner [Sun, 7 Sep 2008 08:36:54 +0000 (08:36 +0000)]
Add missing .Nm

11 years agoMinor wording improvement.
Sascha Wildner [Sun, 7 Sep 2008 08:24:40 +0000 (08:24 +0000)]
Minor wording improvement.

11 years agoAdd missing .Nm's
Sascha Wildner [Sun, 7 Sep 2008 08:21:57 +0000 (08:21 +0000)]
Add missing .Nm's

11 years agoUse FILES section for referencing files etc.
Sascha Wildner [Sun, 7 Sep 2008 08:18:54 +0000 (08:18 +0000)]
Use FILES section for referencing files etc.

11 years agoCheck the mbuf returned by ip_fw_chk_ptr against NULL before accessing the mbuf
Sepherosa Ziehau [Sun, 7 Sep 2008 08:15:25 +0000 (08:15 +0000)]
Check the mbuf returned by ip_fw_chk_ptr against NULL before accessing the mbuf

11 years agoRemove unused variables.
Sascha Wildner [Sun, 7 Sep 2008 08:09:39 +0000 (08:09 +0000)]
Remove unused variables.

Found-by: LLVM/Clang Static Analyzer
11 years agoUse standard section for examples.
Sascha Wildner [Sun, 7 Sep 2008 07:54:48 +0000 (07:54 +0000)]
Use standard section for examples.

11 years agoUse .Dq
Sascha Wildner [Sun, 7 Sep 2008 07:51:39 +0000 (07:51 +0000)]
Use .Dq

11 years agoRemove unused variable.
Sascha Wildner [Sun, 7 Sep 2008 07:48:29 +0000 (07:48 +0000)]
Remove unused variable.

Found-by: LLVM/Clang Static Analyzer
11 years agoRemove obsolete sentence about ports & improve wording.
Sascha Wildner [Sat, 6 Sep 2008 21:31:21 +0000 (21:31 +0000)]
Remove obsolete sentence about ports & improve wording.

11 years agoMake acpi support modules depend on acpi module.
Hasso Tepper [Sat, 6 Sep 2008 21:21:31 +0000 (21:21 +0000)]
Make acpi support modules depend on acpi module.

11 years agoSync pci_[gs]et_powerstate_method with FreeBSD which makes things a little
Hasso Tepper [Sat, 6 Sep 2008 21:18:39 +0000 (21:18 +0000)]
Sync pci_[gs]et_powerstate_method with FreeBSD which makes things a little
bit more friendly to devices.

Obtained-from: FreeBSD

11 years agoUpgrade to OpenSSL 0.9.8h.
Peter Avalos [Sat, 6 Sep 2008 20:43:02 +0000 (20:43 +0000)]
Upgrade to OpenSSL 0.9.8h.

Submitted-by: "VOROSKOI Andras" <voroskoi@gmail.com>
11 years agoMerge from vendor branch OPENSSL:
Peter Avalos [Sat, 6 Sep 2008 20:36:16 +0000 (20:36 +0000)]
Merge from vendor branch OPENSSL:
Import OpenSSL 0.9.8h.

11 years agoImport OpenSSL 0.9.8h.
Peter Avalos [Sat, 6 Sep 2008 20:36:16 +0000 (20:36 +0000)]
Import OpenSSL 0.9.8h.

11 years agoAdd markup.
Sascha Wildner [Sat, 6 Sep 2008 14:24:44 +0000 (14:24 +0000)]
Add markup.

11 years agoirregardless -> regardless
Sascha Wildner [Sat, 6 Sep 2008 14:18:29 +0000 (14:18 +0000)]
irregardless -> regardless

11 years ago1) Small mdoc nit 2) regardless if -> regardless of.
Sascha Wildner [Sat, 6 Sep 2008 14:17:56 +0000 (14:17 +0000)]
1) Small mdoc nit 2) regardless if -> regardless of.

11 years agoBreak long line
Sepherosa Ziehau [Sat, 6 Sep 2008 14:12:50 +0000 (14:12 +0000)]
Break long line

11 years ago- Save the route struct in dummynet mbuf tag into the route stack variable,
Sepherosa Ziehau [Sat, 6 Sep 2008 14:07:30 +0000 (14:07 +0000)]
- Save the route struct in dummynet mbuf tag into the route stack variable,
  so that ip_output() no longer depends on dummynet mbuf tag and firewall
  code could do anything with it (e.g. delete and free it).
- Move dummynet mbuf tag deletion and ipfw args setup code into ipfw processing
  code block.

11 years agoAdapt manual pages to change in boot code to support using
Thomas Nikolajsen [Sat, 6 Sep 2008 12:14:08 +0000 (12:14 +0000)]
Adapt manual pages to change in boot code to support using
either / or /boot on boot file system.

11 years agoMove dummynet tag extraction and ipfw args setup into ipfw processing
Sepherosa Ziehau [Sat, 6 Sep 2008 12:04:03 +0000 (12:04 +0000)]
Move dummynet tag extraction and ipfw args setup into ipfw processing
code block

11 years agoFix Xrefs for ata[control](4): add / change to nata[control](4) as appropriate.
Thomas Nikolajsen [Sat, 6 Sep 2008 10:36:27 +0000 (10:36 +0000)]
Fix Xrefs for ata[control](4): add / change to nata[control](4) as appropriate.

11 years agoAdd a bit markup.
Thomas Nikolajsen [Sat, 6 Sep 2008 10:25:04 +0000 (10:25 +0000)]
Add a bit markup.

11 years agoAdd a bit markup.
Thomas Nikolajsen [Sat, 6 Sep 2008 10:23:39 +0000 (10:23 +0000)]
Add a bit markup.

11 years agoDelete false note.
Thomas Nikolajsen [Sat, 6 Sep 2008 10:18:21 +0000 (10:18 +0000)]
Delete false note.

11 years agoAdd an example os how to change label format from 32 bit to 64 bit,
Thomas Nikolajsen [Sat, 6 Sep 2008 10:15:29 +0000 (10:15 +0000)]
Add an example os how to change label format from 32 bit to 64 bit,
and delete note that it require reboot.

Fix typo: missing line break, which got .Xr hide sentence.

11 years agoFix typo.
Thomas Nikolajsen [Sat, 6 Sep 2008 10:03:45 +0000 (10:03 +0000)]
Fix typo.

11 years agoAdd missing description on context addresses.
Thomas Nikolajsen [Sat, 6 Sep 2008 09:38:33 +0000 (09:38 +0000)]
Add missing description on context addresses.

Obtained-from: FreeBSD
with minor corrections and additions.

11 years ago- Staticize lo{output,ioctl}
Sepherosa Ziehau [Sat, 6 Sep 2008 06:09:42 +0000 (06:09 +0000)]
- Staticize lo{output,ioctl}
- Regroup function declaration

11 years ago- Move stack variable near its usage
Sepherosa Ziehau [Sat, 6 Sep 2008 05:46:47 +0000 (05:46 +0000)]
- Move stack variable near its usage
- Use M_ASSERTPKTHDR
- Minor style change

11 years agoIncrease sockbuf send and receive buffers to 57344 bytes. In particular,
Matthew Dillon [Sat, 6 Sep 2008 05:44:59 +0000 (05:44 +0000)]
Increase sockbuf send and receive buffers to 57344 bytes.  In particular,
note that we want to use buffer limits that allow lo0's mtu of 16384 to
be fully utilized.

11 years agoAdd hwcsum support to lo interface. This is mainly used to help new sockbuf
Sepherosa Ziehau [Sat, 6 Sep 2008 05:36:05 +0000 (05:36 +0000)]
Add hwcsum support to lo interface.  This is mainly used to help new sockbuf
testing, however, it accidentally doubles the current lo0 performance.

Suggested-by: dillon@
11 years agoBring in if_loop.c 1.47.2.9 from FreeBSD (silby@freebsd.org):
Sepherosa Ziehau [Sat, 6 Sep 2008 05:07:35 +0000 (05:07 +0000)]
Bring in if_loop.c 1.47.2.9 from FreeBSD (silby@freebsd.org):
  don't bother defragging mbuf chains sent to the loopback,
  the ipv6 stack can handle them just fine as is.

Noticed-by: dillon@
11 years agoAdd missing sleep.
Matthew Dillon [Sat, 6 Sep 2008 02:25:43 +0000 (02:25 +0000)]
Add missing sleep.

Reported-by: "Hale Boyes, Kevin " <Kevin.HaleBoyes@encana.com>
11 years agoBump up the size of the boot partition in the boot+HAMMER rconfig
Matthew Dillon [Sat, 6 Sep 2008 01:36:24 +0000 (01:36 +0000)]
Bump up the size of the boot partition in the boot+HAMMER rconfig
example from 128M to 256M.

11 years agoFix an endless recursion and double fault which could occur when accessing
Matthew Dillon [Fri, 5 Sep 2008 23:27:12 +0000 (23:27 +0000)]
Fix an endless recursion and double fault which could occur when accessing
a filesystem mounted via nullfs where the mount itself used a path through
another nullfs filesystem.

The forwarding nullm_vfs mount pointer must be set to the actual mount
point and not the governing nullfs.  Any read-only status from the governing
nullfs mount will still be inherited.

11 years agoBump .Dd, add .Lb, and use 'RFC xxxx'.
Sascha Wildner [Fri, 5 Sep 2008 20:43:08 +0000 (20:43 +0000)]
Bump .Dd, add .Lb, and use 'RFC xxxx'.

11 years agoFix a crash on access to TAP's owning thread. The owning thread can go away
Matthew Dillon [Fri, 5 Sep 2008 17:03:15 +0000 (17:03 +0000)]
Fix a crash on access to TAP's owning thread.  The owning thread can go away
with the descriptor still open, for example if the opening process forks
into a background daemon and the foreground process exits.

Use the SIGIO mechanic to record the owning thread so we can detect if
the process goes away.

11 years agoQuite minimal patchset to help to save some more power - put unused PCI
Hasso Tepper [Fri, 5 Sep 2008 10:39:36 +0000 (10:39 +0000)]
Quite minimal patchset to help to save some more power - put unused PCI
devices (devices with no drivers) into D3 state. Device has to support it
of course.

Obtained-from: FreeBSD

11 years agoacpi_cpu(4) update. It's now possible to use higher (lower power usage) C
Hasso Tepper [Fri, 5 Sep 2008 10:28:35 +0000 (10:28 +0000)]
acpi_cpu(4) update. It's now possible to use higher (lower power usage) C
states than C1 in modern (multicore) CPUs.

Obtained-from: FreeBSD

11 years agoDon't fail if the file flags of source and copied symlinks don't match.
YONETANI Tomokazu [Fri, 5 Sep 2008 03:16:55 +0000 (03:16 +0000)]
Don't fail if the file flags of source and copied symlinks don't match.
Although there's no lchflags(), symlinks inherit file flags of their
parent directory(for history retention flags), so file flags may be set
on symlinks.  chflags(1) on a symlink doesn't do anything nor does it
return an error code, so the new behavior is more consistent with
chflags(1)'s.
Symlinks don't inherit file flags on previous versions of DragonFly
or on FreeBSD, so this code has never had a chance to return ENOSYS.

Suggested-By: Matt
11 years agoAnsify (silence -Wold-style-definition)
Sascha Wildner [Thu, 4 Sep 2008 21:00:28 +0000 (21:00 +0000)]
Ansify (silence -Wold-style-definition)

11 years agoSilence warning.
Sascha Wildner [Thu, 4 Sep 2008 17:30:52 +0000 (17:30 +0000)]
Silence warning.

11 years agoAnsify (silence -Wold-style-definition)
Sascha Wildner [Thu, 4 Sep 2008 16:12:51 +0000 (16:12 +0000)]
Ansify (silence -Wold-style-definition)

11 years agoForgot this file in the "RFC3542 support" SoC project commit.
Hasso Tepper [Thu, 4 Sep 2008 11:54:24 +0000 (11:54 +0000)]
Forgot this file in the "RFC3542 support" SoC project commit.

11 years agoUpdate the usage message again to be even more clear about the available
Matthias Schmidt [Thu, 4 Sep 2008 10:33:50 +0000 (10:33 +0000)]
Update the usage message again to be even more clear about the available
options.

11 years agoBring in newer ping6(8) from KAME via FreeBSD lying in my disk quite some
Hasso Tepper [Thu, 4 Sep 2008 10:13:10 +0000 (10:13 +0000)]
Bring in newer ping6(8) from KAME via FreeBSD lying in my disk quite some
time. Most notably it includes select(2) -> poll(2) conversion and
arc4random(3) usage.

Obtained-from: KAME via FreeBSD

11 years agoThe result of the "RFC3542 support" SoC project by Dashu Huang.
Hasso Tepper [Thu, 4 Sep 2008 09:08:22 +0000 (09:08 +0000)]
The result of the "RFC3542 support" SoC project by Dashu Huang.

11 years agoSet .Dd and remove unnecessary .Nm arguments.
Sascha Wildner [Thu, 4 Sep 2008 07:35:06 +0000 (07:35 +0000)]
Set .Dd and remove unnecessary .Nm arguments.

11 years agoUpdate gpt.8:
Thomas Nikolajsen [Thu, 4 Sep 2008 05:37:24 +0000 (05:37 +0000)]
Update gpt.8:
 - delete occurrences of '/boot/' in boot/loader.rc

11 years agoMake pkgsrc/wip cvs checkout use -P.
Hasso Tepper [Wed, 3 Sep 2008 10:38:55 +0000 (10:38 +0000)]
Make pkgsrc/wip cvs checkout use -P.

Found-by: Jordan Gordeev
11 years agoNote that we imported the OpenBSD dhclient in 2.1.
Matthias Schmidt [Wed, 3 Sep 2008 08:02:34 +0000 (08:02 +0000)]
Note that we imported the OpenBSD dhclient in 2.1.

11 years agoAdd a reference for /usr/share/examples/rconfig to the rconfig manual page.
Matthew Dillon [Wed, 3 Sep 2008 02:24:04 +0000 (02:24 +0000)]
Add a reference for /usr/share/examples/rconfig to the rconfig manual page.

11 years agoUpdate the rconfig examples. Correct a bug in auto.sh and add hammer.sh.
Matthew Dillon [Wed, 3 Sep 2008 02:22:25 +0000 (02:22 +0000)]
Update the rconfig examples.  Correct a bug in auto.sh and add hammer.sh.

hammer.sh is a rconfig example which will format a BOOT+HAMMER system.

11 years agoChange vkernel.7:
Thomas Nikolajsen [Tue, 2 Sep 2008 22:41:19 +0000 (22:41 +0000)]
Change vkernel.7:
 - kernel (and modules) moved to boot directory
 - note on adding partition on vn0s0 made clearer

11 years agoUpdate gpt.8:
Thomas Nikolajsen [Tue, 2 Sep 2008 22:37:12 +0000 (22:37 +0000)]
Update gpt.8:
 - simplify Boot Setup example: kernel and modules moved to /boot

11 years agoRemove unused variable.
Sascha Wildner [Tue, 2 Sep 2008 22:20:55 +0000 (22:20 +0000)]
Remove unused variable.

Found-by: LLVM/Clang Static Analyzer
11 years agoRemove unused variable.
Sascha Wildner [Tue, 2 Sep 2008 22:13:11 +0000 (22:13 +0000)]
Remove unused variable.

Found-by: LLVM/Clang Static Analyzer
11 years agoBring hunt in from OpenBSD. The best multi-player terminal game ever!
Matthew Dillon [Tue, 2 Sep 2008 21:50:21 +0000 (21:50 +0000)]
Bring hunt in from OpenBSD.  The best multi-player terminal game ever!

11 years agoRemove boot0gpt - it isn't ready yet (and may never be).
Matthew Dillon [Tue, 2 Sep 2008 21:46:56 +0000 (21:46 +0000)]
Remove boot0gpt - it isn't ready yet (and may never be).

11 years agoFix coretemp(4) to provide temperatures from all cores (instead of reading
Hasso Tepper [Tue, 2 Sep 2008 18:12:48 +0000 (18:12 +0000)]
Fix coretemp(4) to provide temperatures from all cores (instead of reading
temperature only from the core current thread runs on).

Also use CPU device unit number as cpu identifier, not the one from coretemp
device (it doesn't matter in practice though, but still ...).

11 years agoHandle (unit == -1) case in the device_find_child() function as already used
Hasso Tepper [Tue, 2 Sep 2008 17:48:26 +0000 (17:48 +0000)]
Handle (unit == -1) case in the device_find_child() function as already used
by agp(4) and coretemp(4) code. Fixes unload/load cycle of the coretemp(4),
agp(4) has more problems.

Obtained-from: FreeBSD

11 years agoAdjust the boot code to boot from either a root with a /boot, or directly
Matthew Dillon [Tue, 2 Sep 2008 17:21:18 +0000 (17:21 +0000)]
Adjust the boot code to boot from either a root with a /boot, or directly
from a /boot partition (which will look like '/' to the loader).

These changes allow you to make your 'a' partition a /boot only partition.
Your /boot/loader.conf would then have a directive to tell the kernel where
the root partition is, e.g.:

    vfs.root.mountfrom="hammer:${disk}s1d"

* Add a chdir() hack and rel_open() that uses the chdir base.

* chdir("/boot")... if it exists.

* Change all config and most other paths to be relative

* boot2 does not have access to the chdir() hack.  Adjust boot2 to look
  for the loader as both "/loader" and "/boot/loader".