dragonfly.git
15 years agoRename /kernel and /module to /boot/kernel and /boot/module where appropriate.
Matthias Schmidt [Tue, 2 Sep 2008 11:50:47 +0000 (11:50 +0000)]
Rename /kernel and /module to /boot/kernel and /boot/module where appropriate.

15 years agoRegenerate the pciconf(8) database from the following files:
Sascha Wildner [Tue, 2 Sep 2008 09:00:18 +0000 (09:00 +0000)]
Regenerate the pciconf(8) database from the following files:

Hart:    Jan 22, 2008 (version 671)
Boemler: Sep  1, 2008
Mares:   Sep  1, 2008

15 years agoBring in Louisa Luciani's GSoC 2008 work, a DragonFly LiveDVD that is
Sascha Wildner [Mon, 1 Sep 2008 21:20:31 +0000 (21:20 +0000)]
Bring in Louisa Luciani's GSoC 2008 work, a DragonFly LiveDVD that is
buildable using our nrelease framework.

Thank you very much, Louisa! :)

Louisa did a lot of work into this LiveDVD (which is something that
has been discussed for years on the lists and in IRC), and I am
really pleased with the result. Others who have already checked out
the ISO she put up liked it, too.

I did some minor changes, notably making sure that corecode's nightly
snapshot builds won't be influenced by this commit (by moving the
installer script from nrelease/installer to nrelease/gui for now).

Note that due to some pkgsrc problems a number of packages had to be
custom built for the ISO, and the LiveDVD will not build using only
the binary packages from pkgbox. The needed packages will be put up
shortly.

Submitted-by: Louisa Luciani <lolaluci@gmail.com>
15 years agoRemove any vestiges of the old pam, particularly /etc/pam.conf. pam config
Matthew Dillon [Mon, 1 Sep 2008 20:54:35 +0000 (20:54 +0000)]
Remove any vestiges of the old pam, particularly /etc/pam.conf.  pam config
was moved into /etc/pam.d a while ago.  An old pam.conf can interfere
with PAM's operation because it is still in its search path.

15 years agotest
Sascha Wildner [Mon, 1 Sep 2008 20:48:24 +0000 (20:48 +0000)]
test

15 years agoUpdate gpt.8:
Thomas Nikolajsen [Mon, 1 Sep 2008 20:26:49 +0000 (20:26 +0000)]
Update gpt.8:
 - change note on number of slices supported to 127
 - add more symlinks to Boot Setup example: /kernel and /modules, and /*.old,
/modules is needed to load modules after loader(8) phase,
/kernel is given by e.g. kern.bootfile (sysctl),
/*.old is needed for same purposes when this kernel/modules used

15 years agoUpdate MAKEDEV:
Thomas Nikolajsen [Mon, 1 Sep 2008 20:19:56 +0000 (20:19 +0000)]
Update MAKEDEV:
 - raise disk slice upper limit from 30 to 126 (lower limit is 0):
GPT supports 127 slices; MBR supports 32 slices
 - adjust a white space and a line break (no functional change)

15 years agoupdate fdisk.8:
Thomas Nikolajsen [Mon, 1 Sep 2008 20:13:32 +0000 (20:13 +0000)]
update fdisk.8:
 - add `MBR' to one line description (`.Nd')
 - add description on number of supported slices and usage
 - add note on `packet' mode and Xref boot0cfg
 - note that fdisk only can change s1-s4

15 years ago* Move /kernel to /boot/kernel and /modules to /boot/modules.
Matthew Dillon [Mon, 1 Sep 2008 19:39:49 +0000 (19:39 +0000)]
* Move /kernel to /boot/kernel and /modules to /boot/modules.

* Adjust the loader to check /boot before / (it still checks both).  Note
  that '/' from the point of view of the loader might be /boot from the
  point of view of the running kernel if /boot is a boot partition.

* Adjust make upgrade to move /kernel to /boot/kernel and /modules to
  /boot/modules.

* Installkernel now requires that you have built and installed a new world
  and done an upgrade, and will refuse to install if you haven't.

  This is so we don't end up with four copies of everything in / and
  potentially fill it up.  Plus it clears up any confusion as to which
  kernel the loader is loading.

NOTE: FreeBSD uses /boot/kernel/{kernel,modules}.  We will not be doing that.
To expand into multiple kernels our intention is to use /boot/kernel.NAME and
/boot/modules.NAME instead, which reduces the directory level clutter.

15 years agoUpdate fdisk.8:
Thomas Nikolajsen [Mon, 1 Sep 2008 19:27:31 +0000 (19:27 +0000)]
Update fdisk.8:
 - break lines at end of sentence (`.')
 - minor markup improvements

15 years agotest
Sascha Wildner [Mon, 1 Sep 2008 19:22:03 +0000 (19:22 +0000)]
test

15 years agoIn aue(4) txeof, differ ifnet.if_start to ifnet's CPU to:
Sepherosa Ziehau [Mon, 1 Sep 2008 13:05:42 +0000 (13:05 +0000)]
In aue(4) txeof, differ ifnet.if_start to ifnet's CPU to:
1) Keep if_start serialized
2) Avoid deadlock between USB sync operations and holding serializer in
   USB task thread (e.g. in txeof callback)

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1123>
Tested-by: Tim <t-df@timdarby.net>
15 years agoEnable intr_mpsafe by default
Sepherosa Ziehau [Mon, 1 Sep 2008 12:49:00 +0000 (12:49 +0000)]
Enable intr_mpsafe by default

Approved-by: dillon@
15 years agoFix some mdoc nits.
Sascha Wildner [Mon, 1 Sep 2008 10:48:29 +0000 (10:48 +0000)]
Fix some mdoc nits.

15 years agoAdd some more obsolete files from the dhcpd removal.
Sascha Wildner [Sun, 31 Aug 2008 18:19:33 +0000 (18:19 +0000)]
Add some more obsolete files from the dhcpd removal.

15 years agoAdd an autologin entry for the console.
Sascha Wildner [Sun, 31 Aug 2008 17:37:19 +0000 (17:37 +0000)]
Add an autologin entry for the console.

Submitted-by: Louisa Luciani <lolaluci@gmail.com> (GSoC LiveDVD project)
15 years agoBring in some entries from FreeBSD.
Sascha Wildner [Sun, 31 Aug 2008 17:31:31 +0000 (17:31 +0000)]
Bring in some entries from FreeBSD.

15 years agoAdd _dhcp user.
Sascha Wildner [Sun, 31 Aug 2008 17:12:13 +0000 (17:12 +0000)]
Add _dhcp user.

15 years agoRemove unused variable.
Sascha Wildner [Sun, 31 Aug 2008 15:46:48 +0000 (15:46 +0000)]
Remove unused variable.

Submitted-by: Louisa Luciani <lolaluci@gmail.com>
15 years agoSet fp to NULL on EINVAL
Aggelos Economopoulos [Sun, 31 Aug 2008 13:18:28 +0000 (13:18 +0000)]
Set fp to NULL on EINVAL

15 years agoAdd .tgz to the dhcpd packages.
Sascha Wildner [Sat, 30 Aug 2008 21:35:05 +0000 (21:35 +0000)]
Add .tgz to the dhcpd packages.

15 years agoThe new dhclient will go to the background automatically so there's no
Sascha Wildner [Sat, 30 Aug 2008 21:21:40 +0000 (21:21 +0000)]
The new dhclient will go to the background automatically so there's no
need to provide for background_dhclient etc. rc variables.

15 years agoSmall fixes.
Sascha Wildner [Sat, 30 Aug 2008 20:52:00 +0000 (20:52 +0000)]
Small fixes.

15 years agoAdd dhcp(8) which gives some general info on DHCP client/server
Sascha Wildner [Sat, 30 Aug 2008 20:27:25 +0000 (20:27 +0000)]
Add dhcp(8) which gives some general info on DHCP client/server
configuration.

Adapted-from: OpenBSD

15 years agoAdjust for dhcpd removal.
Sascha Wildner [Sat, 30 Aug 2008 19:02:49 +0000 (19:02 +0000)]
Adjust for dhcpd removal.

15 years agoAdjust for dhcpd/dhcrelay removal.
Sascha Wildner [Sat, 30 Aug 2008 17:50:43 +0000 (17:50 +0000)]
Adjust for dhcpd/dhcrelay removal.

15 years agoAdd /usr/include/machine/pci_cfgreg.h (moved).
Sascha Wildner [Sat, 30 Aug 2008 17:19:13 +0000 (17:19 +0000)]
Add /usr/include/machine/pci_cfgreg.h (moved).

15 years agoDocument kgetenv_ulong().
Sascha Wildner [Sat, 30 Aug 2008 17:11:42 +0000 (17:11 +0000)]
Document kgetenv_ulong().

15 years agoAdjust whitespace (reduce differences with FreeBSD).
Sascha Wildner [Sat, 30 Aug 2008 17:07:17 +0000 (17:07 +0000)]
Adjust whitespace (reduce differences with FreeBSD).

15 years agoUpdate elf(5) with the recent changes to elf64.h and bring in some changes
Sascha Wildner [Sat, 30 Aug 2008 17:01:17 +0000 (17:01 +0000)]
Update elf(5) with the recent changes to elf64.h and bring in some changes
from FreeBSD.

15 years agoMake BOOTP server in installer work with dhcp server from pkgsrc.
Hasso Tepper [Sat, 30 Aug 2008 16:47:47 +0000 (16:47 +0000)]
Make BOOTP server in installer work with dhcp server from pkgsrc.

15 years agoRemove dhcpd and dhcrelay remainings.
Hasso Tepper [Sat, 30 Aug 2008 16:40:17 +0000 (16:40 +0000)]
Remove dhcpd and dhcrelay remainings.

15 years agoUpgrade pieces for new dhclient and dhcpd/dhcrelay removal.
Hasso Tepper [Sat, 30 Aug 2008 16:34:29 +0000 (16:34 +0000)]
Upgrade pieces for new dhclient and dhcpd/dhcrelay removal.

15 years agoRemove dhcp-3.0 from base and import dhclient from OpenBSD. Porting work
Hasso Tepper [Sat, 30 Aug 2008 16:07:59 +0000 (16:07 +0000)]
Remove dhcp-3.0 from base and import dhclient from OpenBSD. Porting work
done by Matthias Schmidt and Andras Voroskoi.

15 years agoFlesh out BUF_CMD_FLUSH support.
Matthew Dillon [Sat, 30 Aug 2008 02:56:12 +0000 (02:56 +0000)]
Flesh out BUF_CMD_FLUSH support.

Obtained-from: Ported from FreeBSD.

15 years agoAdd obsolete version of acpi_toshiba(4).
Sascha Wildner [Fri, 29 Aug 2008 23:06:37 +0000 (23:06 +0000)]
Add obsolete version of acpi_toshiba(4).

15 years agoSome installer cleanup.
Sascha Wildner [Fri, 29 Aug 2008 22:51:56 +0000 (22:51 +0000)]
Some installer cleanup.

* In contrib/bsdinstaller-1.1.6, fix include names,
  e.g. "aura/..." -> "libaura/..."

* In usr.sbin/installer:

  - Include "../../Makefile.inc" to not have to define variables such
    as BINDIR ourselves

  - Use NOMAN

  - Remove -g

  - No longer install header files from libinstaller/ and add them to
    'make upgrade'

15 years agoAMD64: Fix the crossworld build.
Matthew Dillon [Fri, 29 Aug 2008 22:15:03 +0000 (22:15 +0000)]
AMD64: Fix the crossworld build.

15 years agoAMD64: Add JG64 config file for testing purposes.
Matthew Dillon [Fri, 29 Aug 2008 22:14:18 +0000 (22:14 +0000)]
AMD64: Add JG64 config file for testing purposes.

Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
15 years agoCommit our installer patches to contrib/ (that has already been committed to).
Sascha Wildner [Fri, 29 Aug 2008 20:41:01 +0000 (20:41 +0000)]
Commit our installer patches to contrib/ (that has already been committed to).

15 years agoHAMMER: Mass storage flush command support
Matthew Dillon [Fri, 29 Aug 2008 20:19:08 +0000 (20:19 +0000)]
HAMMER: Mass storage flush command support

Add mass storage flush command support to HAMMER.  The HAMMER flush cycle
issues async I/O in parallel and waits for it to complete before moving
onto the next stage.  This occurs in two places.  The new flush command
is issued after the async I/O, and then we wait on everything.

Due to HAMMER's ability to gang writes asynchronously between stages the
addition of the flush should not significantly impact performance.

15 years agoAdd BUF_CMD_FLUSH support - issue flush command to mass storage device.
Matthew Dillon [Fri, 29 Aug 2008 20:08:40 +0000 (20:08 +0000)]
Add BUF_CMD_FLUSH support - issue flush command to mass storage device.

15 years agoBack-out the tls change. The field must be signed or the system will not
Matthew Dillon [Fri, 29 Aug 2008 20:01:08 +0000 (20:01 +0000)]
Back-out the tls change.  The field must be signed or the system will not
boot due to the use of the variable's negative space.  Use long for now.

15 years agoAMD64 - Sync AMD64 support from Jordan Gordeev's svn repository and
Matthew Dillon [Fri, 29 Aug 2008 17:07:21 +0000 (17:07 +0000)]
AMD64 - Sync AMD64 support from Jordan Gordeev's svn repository and
Google SOC project.  This work is still continuing but represents
substantial progress in the effort.

With this commit the world builds and installs, the loader is able to
boot the kernel, and the kernel is able to initialize, probe devices, and
exec the init program.  The init program is then able to run until it hits
its first fork().  For the purposes of the GSOC the project is being
considered a big success!

The code has been adapted from multiple sources, most notably Peter Wemm
and other peoples work from FreeBSD, with many modifications to make it
work with DragonFly.  Also thanks go to Simon Schubert for working on gdb
and compiler issues, and to Noah Yan for a good chunk of precursor work
in 2007.

While Jordan wishes to be modest on his contribution, frankly we would
not have been able to make this much progress without the large number
of man-hours Jordan has dedicated to his GSOC project painstakingly gluing
code together, tracking down issues, and progressing the boot sequence.

Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
15 years agoFix some parenthesis/whitespace nits.
Sascha Wildner [Fri, 29 Aug 2008 07:44:09 +0000 (07:44 +0000)]
Fix some parenthesis/whitespace nits.

15 years agoAMD64: Fix bugs in cerror().
Matthew Dillon [Thu, 28 Aug 2008 23:38:52 +0000 (23:38 +0000)]
AMD64: Fix bugs in cerror().

Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
15 years agoAdjust the mcontext code to match amd64.
Matthew Dillon [Thu, 28 Aug 2008 23:36:47 +0000 (23:36 +0000)]
Adjust the mcontext code to match amd64.

Submitted-by: Matthew Dillon
15 years agoAdjust the mcontext code to match amd64.
Matthew Dillon [Thu, 28 Aug 2008 23:36:31 +0000 (23:36 +0000)]
Adjust the mcontext code to match amd64.

Submitted-by: Matthew Dillon
15 years ago* Add a flag to track an in-transit socket abort to avoid races when closing
Matthew Dillon [Thu, 28 Aug 2008 23:15:45 +0000 (23:15 +0000)]
* Add a flag to track an in-transit socket abort to avoid races when closing
  a socket.

* Abort sockets asynchronously to prevent socket proto threads from
  deadlocking each other.

Reported-by: Peter Avalos
15 years agoAdd memset() to help w/amd64 support.
Matthew Dillon [Thu, 28 Aug 2008 23:10:34 +0000 (23:10 +0000)]
Add memset() to help w/amd64 support.

Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Takenfrom: FreeBSD

15 years agoFix Boot Setup example:
Thomas Nikolajsen [Thu, 28 Aug 2008 21:12:44 +0000 (21:12 +0000)]
Fix Boot Setup example:
  - drop symlinks for /kernel as `make installkernel' can't use it
(install(1) deletes symlink and installs in root file system),
also drop symlinks for /modules and .old
 - rename mount point for boot filesystem from /boot_ to /boot-fs
 - add note on using DESTDIR=/boot-fs for installkernel
 - add more details to description

15 years agoGet rid of whitespace before the parenthesis.
Sascha Wildner [Thu, 28 Aug 2008 20:30:46 +0000 (20:30 +0000)]
Get rid of whitespace before the parenthesis.

15 years agoAdd comma.
Sascha Wildner [Thu, 28 Aug 2008 17:00:27 +0000 (17:00 +0000)]
Add comma.

15 years agoUnbreak build.
Hasso Tepper [Thu, 28 Aug 2008 16:46:54 +0000 (16:46 +0000)]
Unbreak build.

15 years agoSmall cleanup.
Sascha Wildner [Thu, 28 Aug 2008 16:39:22 +0000 (16:39 +0000)]
Small cleanup.

15 years agoAdd refs to acpi_toshiba(4) and acpi_thinkpad(4).
Sascha Wildner [Thu, 28 Aug 2008 16:38:59 +0000 (16:38 +0000)]
Add refs to acpi_toshiba(4) and acpi_thinkpad(4).

15 years agoMove IPDIVERT related declaration from netinet/ip_var.h to netinet/ip_divert.h
Sepherosa Ziehau [Thu, 28 Aug 2008 14:24:59 +0000 (14:24 +0000)]
Move IPDIVERT related declaration from netinet/ip_var.h to netinet/ip_divert.h

15 years agoFix comment
Sepherosa Ziehau [Thu, 28 Aug 2008 14:15:47 +0000 (14:15 +0000)]
Fix comment

15 years agoMake IPDIVERT transparent to ip reassemble code by fully utilizing the
Sepherosa Ziehau [Thu, 28 Aug 2008 14:10:03 +0000 (14:10 +0000)]
Make IPDIVERT transparent to ip reassemble code by fully utilizing the
divert information saved in the mbuf tag.

Idea-from: FreeBSD

15 years agoMove IPDIVERT processing from ip_input() normal code path to ipfw(4)
Sepherosa Ziehau [Thu, 28 Aug 2008 11:55:32 +0000 (11:55 +0000)]
Move IPDIVERT processing from ip_input() normal code path to ipfw(4)
processing code block.

15 years agoUnbreak compile: we have STAILQ_FOREACH_MUTABLE
Sepherosa Ziehau [Thu, 28 Aug 2008 11:05:34 +0000 (11:05 +0000)]
Unbreak compile: we have STAILQ_FOREACH_MUTABLE

15 years agoacpi_thinkad(4) manpage.
Hasso Tepper [Thu, 28 Aug 2008 10:32:27 +0000 (10:32 +0000)]
acpi_thinkad(4) manpage.

15 years agoAdd acpi_video(4) manpage and move acpi_toshiba(4) manpage out from man4.i386.
Hasso Tepper [Thu, 28 Aug 2008 09:47:04 +0000 (09:47 +0000)]
Add acpi_video(4) manpage and move acpi_toshiba(4) manpage out from man4.i386.

15 years agoDocument STAILQ_FOREACH_MUTABLE macro.
Hasso Tepper [Thu, 28 Aug 2008 09:35:53 +0000 (09:35 +0000)]
Document STAILQ_FOREACH_MUTABLE macro.

15 years agoAdd acpi_video(4) - a driver for ACPI video extensions.
Hasso Tepper [Thu, 28 Aug 2008 09:25:42 +0000 (09:25 +0000)]
Add acpi_video(4) - a driver for ACPI video extensions.

Obtained-from: FreeBSD with modifications

15 years agoAdd STAILQ_FOREACH_MUTABLE.
Hasso Tepper [Thu, 28 Aug 2008 08:42:29 +0000 (08:42 +0000)]
Add STAILQ_FOREACH_MUTABLE.

15 years agoAdd ACPI support module for IBM/Lenovo Thinkpad laptops. Work in progress,
Hasso Tepper [Thu, 28 Aug 2008 07:10:05 +0000 (07:10 +0000)]
Add ACPI support module for IBM/Lenovo Thinkpad laptops. Work in progress,
but already usable for most of Thinkpads.

Obtained-from: FreeBSD with modifications

15 years agoMove acpi_toshiba.c, it's not pc32 specific.
Hasso Tepper [Thu, 28 Aug 2008 06:16:32 +0000 (06:16 +0000)]
Move acpi_toshiba.c, it's not pc32 specific.

15 years agoAdd some methods to ACPI to handle embedded controllers and device matching.
Hasso Tepper [Wed, 27 Aug 2008 16:35:19 +0000 (16:35 +0000)]
Add some methods to ACPI to handle embedded controllers and device matching.

Obtained-from: FreeBSD

15 years agoPrepare to make IPDIVERT transparent to ip reassemble code:
Sepherosa Ziehau [Wed, 27 Aug 2008 14:00:45 +0000 (14:00 +0000)]
Prepare to make IPDIVERT transparent to ip reassemble code:
Include more information in divert mbuf tag

15 years agoAdd missing -s to usage string.
Matthias Schmidt [Wed, 27 Aug 2008 13:11:37 +0000 (13:11 +0000)]
Add missing -s to usage string.

15 years ago- Consistently test pkt_dst instead of ip_dst
Sepherosa Ziehau [Tue, 26 Aug 2008 12:05:10 +0000 (12:05 +0000)]
- Consistently test pkt_dst instead of ip_dst
- Clear M_MCAST if the ip packet is not destined to multicast address

15 years agoGrrr, forward address is in network byte order
Sepherosa Ziehau [Tue, 26 Aug 2008 11:42:40 +0000 (11:42 +0000)]
Grrr, forward address is in network byte order

15 years agoDon't allow multicast address to be used as the target address of a transparent
Sepherosa Ziehau [Tue, 26 Aug 2008 11:26:26 +0000 (11:26 +0000)]
Don't allow multicast address to be used as the target address of a transparent
forwarding rule.

15 years agoAMD64 Support:
Matthew Dillon [Mon, 25 Aug 2008 23:38:35 +0000 (23:38 +0000)]
AMD64 Support:

Adjust crt1 for amd64 to call _init_tls() and _rtld_call_init().  These
calls are needed to initialize TLS support, which we use unconditionally
to access errno.

15 years agoAMD64 Support:
Matthew Dillon [Mon, 25 Aug 2008 23:35:47 +0000 (23:35 +0000)]
AMD64 Support:

* Change the sysmsg fds[2] array from int to long and use the
  same double-register return trick that i386 uses for pipe(fds),
  and a few other specialized system calls.

15 years agoAMD64 Support:
Matthew Dillon [Mon, 25 Aug 2008 23:34:35 +0000 (23:34 +0000)]
AMD64 Support:

* Move amd64-specific signal.h defs to machine/signal.h

* Change size field in tls_info from 'int' to 'long' to accomodate
  64 bit architectures.

Submitted-by: Matthew Dillon
Obtained-from: FreeBSD, Jordan Gordeev <jgordeev@dir.bg>, and Matt

15 years agoAMD64 Support:
Matthew Dillon [Mon, 25 Aug 2008 17:11:23 +0000 (17:11 +0000)]
AMD64 Support:

* Add an identifier to SYSINIT structures for debugging purposes.

Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Obtained-from: FreeBSD, with modifications

15 years agoAMD64 Support:
Matthew Dillon [Mon, 25 Aug 2008 17:01:42 +0000 (17:01 +0000)]
AMD64 Support:

* Adjust certain common prototypes to be amd64-compatible.

* Add DDB 'cont' support for amd64.

Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
15 years agoAMD64 Support:
Matthew Dillon [Mon, 25 Aug 2008 16:58:41 +0000 (16:58 +0000)]
AMD64 Support:

* Allow booting a kernel with a 512M-aligned KERNBASE.

Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Obtained-from: FreeBSD, with modifications

15 years agoRemove __P.
Sascha Wildner [Sun, 24 Aug 2008 19:14:52 +0000 (19:14 +0000)]
Remove __P.

15 years agoFix null dereference.
Sascha Wildner [Sat, 23 Aug 2008 23:23:37 +0000 (23:23 +0000)]
Fix null dereference.

Found-by: LLVM/Clang Static Analyzer
15 years agoUpdate SCSI opcodes and ASCs.
Peter Avalos [Sat, 23 Aug 2008 22:27:27 +0000 (22:27 +0000)]
Update SCSI opcodes and ASCs.

http://www.t10.org/lists/1spc-lst.htm

Note opcodes for scanner and communication devices are taken from the
previous revision because they are not listed in the files any more.  Also,
note newly added ASCs are all marked with 'XXX TBD' and take SS_RDEF action
for now.  Some ASCs need SS_TUR for error recovery or SS_FATAL to prevent
further retrials.  We should deal with them later.

Obtained-from: FreeBSD

15 years agoIn print_mesg, remove unused FILE* argument. Also remove a dead increment.
Sascha Wildner [Sat, 23 Aug 2008 22:26:56 +0000 (22:26 +0000)]
In print_mesg, remove unused FILE* argument. Also remove a dead increment.

Found-by: LLVM/Clang Static Analyzer
15 years agoFix whitespace.
Peter Avalos [Sat, 23 Aug 2008 17:13:31 +0000 (17:13 +0000)]
Fix whitespace.

Obtained-from: FreeBSD

15 years agoWhite space
Sepherosa Ziehau [Sat, 23 Aug 2008 09:06:37 +0000 (09:06 +0000)]
White space

15 years agoIf a packet is to be reinjected by dummynet onto ethernet input path,
Sepherosa Ziehau [Sat, 23 Aug 2008 08:26:04 +0000 (08:26 +0000)]
If a packet is to be reinjected by dummynet onto ethernet input path,
pass 'ifp' to ether_demux_oncpu() then.

15 years agoSave srcroute options in a mtag associated the mbuf, mainly to eliminate two
Sepherosa Ziehau [Sat, 23 Aug 2008 06:56:22 +0000 (06:56 +0000)]
Save srcroute options in a mtag associated the mbuf, mainly to eliminate two
"ugly" global variables -- ip_nhops and ip_srcrt.

Obtained-from: FreeBSD

15 years agoStaticize save_rte()
Sepherosa Ziehau [Sat, 23 Aug 2008 04:50:29 +0000 (04:50 +0000)]
Staticize save_rte()

15 years ago- Test m_pkthdr.fw_flags against DUMMYNET_MBUF_TAGGED before trying to locate
Sepherosa Ziehau [Sat, 23 Aug 2008 04:12:23 +0000 (04:12 +0000)]
- Test m_pkthdr.fw_flags against DUMMYNET_MBUF_TAGGED before trying to locate
  dummynet mtag.
- Clear DUMMYNET_MBUF_TAGGED from m_pkthdr.fw_flags, once dummynet mtag is
  deleted.

15 years agoComment out some .Pp's as well.
Sascha Wildner [Fri, 22 Aug 2008 21:00:01 +0000 (21:00 +0000)]
Comment out some .Pp's as well.

15 years agoUpdate pf.conf.5:
Thomas Nikolajsen [Fri, 22 Aug 2008 20:53:00 +0000 (20:53 +0000)]
Update pf.conf.5:
 - add line break after sentence
 - add description for `set keep-policy'
 - drop note that RIO isn't in GENERIC kernel,
as this applies to OpenBSD when pf.conf.5 was imported;
in DragonFly altq isn't in GENERIC kernel at all
 - fix GRAMMAR by adding `set keep-policy', and `no state',
fixing scheduler defs and dropping unneeded parens & brackets
 - improve mark up a bit

15 years agoFix Boot Setup example:
Thomas Nikolajsen [Fri, 22 Aug 2008 20:38:38 +0000 (20:38 +0000)]
Fix Boot Setup example:
 - move, not copy, kernel & modules to boot slice
 - give hammer file system a more apropriate file system label

15 years agoRemove /* within block comment.
Sascha Wildner [Fri, 22 Aug 2008 14:47:47 +0000 (14:47 +0000)]
Remove /* within block comment.

15 years agoIn usage(), adjust number of %s's to match # of args.
Sascha Wildner [Fri, 22 Aug 2008 14:25:02 +0000 (14:25 +0000)]
In usage(), adjust number of %s's to match # of args.

15 years agoMove ip fragments reassemble related code from ip_input() to ip_reass()
Sepherosa Ziehau [Fri, 22 Aug 2008 13:37:22 +0000 (13:37 +0000)]
Move ip fragments reassemble related code from ip_input() to ip_reass()

Idea-from: FreeBSD

15 years agoMove ipstat.ips_reassembled updating from ip_input() into ip_reass()
Sepherosa Ziehau [Fri, 22 Aug 2008 11:58:49 +0000 (11:58 +0000)]
Move ipstat.ips_reassembled updating from ip_input() into ip_reass()

15 years agoWhite space
Sepherosa Ziehau [Fri, 22 Aug 2008 11:51:40 +0000 (11:51 +0000)]
White space

15 years agoRemove unused variable/assignment.
Sascha Wildner [Fri, 22 Aug 2008 10:27:16 +0000 (10:27 +0000)]
Remove unused variable/assignment.

Found-by: LLVM/Clang Static Analyzer
15 years agonext_hop information is now saved in mtag, so the netmsg_packet embedded in
Sepherosa Ziehau [Fri, 22 Aug 2008 10:19:27 +0000 (10:19 +0000)]
next_hop information is now saved in mtag, so the netmsg_packet embedded in
the mbuf.m_hdr is large enough to deliver all necessary information (hlen is
saved in lwkt_msg.u.ms_result) to transport layer.