Matthew Dillon [Thu, 3 Jan 2008 06:48:49 +0000 (06:48 +0000)]
HAMMER 15/many - user utility infrastructure, refactor alists, misc
* Abstract out userland access to HAMMER's on-disk structures in
preparation for more userland work.
* Clean up compiler warnings.
* Refactor the A-list recursion API. Use another bit code (10) to indicate
the all-allocated & initialized state, verses an all-allocated &
uninitialized state.
This allows an all-empty flag to propogate up the chain properly which
in turn allows us to avoid flushing out dirty backing store for freed
disk blocks and will eventually lead to freeing typed buffers back to
the cluster's master a-list.
* Fix an edge case in the B-Tree code related to running out of space
during an insertion search. If the insertion search ran out of space
at a cluster boundary the spike code asserted because the parent B-Tree
node wasn't in the same cluster as the node it thought it had to spike.
(The root B-Tree node of a cluster cannot be spiked).
* Use a second cache pointer in the in-memory structure for directory
inodes. The second cache will be used for inode lookups relative to
the directory and will (eventually) greatly reduce the B-Tree search
overhead required to stat directory elements.
Sascha Wildner [Wed, 2 Jan 2008 23:06:44 +0000 (23:06 +0000)]
Add definitions for LONG_BIT and WORD_BIT.
Matthew Dillon [Wed, 2 Jan 2008 22:42:37 +0000 (22:42 +0000)]
Back out the last commit, it asserts in the getblk code due to the vnode
having zero references. I'll have to find another solution.
Matthew Dillon [Wed, 2 Jan 2008 20:15:48 +0000 (20:15 +0000)]
UFS vnodes must have VM objects before they can be truncated. This is
normally guarenteed when the vnode is instantiated but there is a degenerate
case in ufs_inactive() that wasn't handled.
Reported-by: "Sepherosa Ziehau" <sepherosa@gmail.com>
Hasso Tepper [Wed, 2 Jan 2008 19:29:59 +0000 (19:29 +0000)]
Pay attention to the timeout value passed down by the upper layer. This
fix makes USB CD/DVD writers work.
Obtained-from: NetBSD via FreeBSD
Matthias Schmidt [Wed, 2 Jan 2008 17:41:30 +0000 (17:41 +0000)]
Add pam_nologin(8) to the tree. pam_nologin verifies
whether logins are administratively disabled via nologin(5). It returns
success if the user's login class has an "ignorenologin" capability spec-
ified in login.conf(5) or the nologin(5) file does not exist.
Obtained-From: FreeBSD
Sepherosa Ziehau [Wed, 2 Jan 2008 12:30:34 +0000 (12:30 +0000)]
Add more sanity checks in bpf_validate():
- BPF programs with no instructions or with more than BPF_MAXINSNS
instructions.
- BPF_STX and BPF_LDX|BPF_MEM instructions that have out-of-range offsets
(which could be made to fetch or store into arbitrary memory locations).
- BPF_DIV instructions with a constant 0 divisor (that's a check also done
at run time).
Submitted-by: Guy Harris <guy@alum.mit.edu>
Obtained-from:
OpenBSD (with additional comments and modification from the submitter)
Hasso Tepper [Wed, 2 Jan 2008 11:41:52 +0000 (11:41 +0000)]
Add missing ';'.
Sepherosa Ziehau [Wed, 2 Jan 2008 11:22:03 +0000 (11:22 +0000)]
Make the cast (zero extension) consistent between non-indexed loads
and indexed loads.
Submitted-by: Guy Harris <guy@alum.mit.edu>
Hasso Tepper [Wed, 2 Jan 2008 10:45:31 +0000 (10:45 +0000)]
Make NO_GETMAXLUN quirk really do something useful.
Obtained-from: FreeBSD
Hasso Tepper [Wed, 2 Jan 2008 10:43:28 +0000 (10:43 +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.
Obtained-from: FreeBSD
Hasso Tepper [Wed, 2 Jan 2008 10:31:53 +0000 (10:31 +0000)]
Pass all ATAPI commands through. Fixes detecting capabilities of DVD
writers.
Obtained-from: FreeBSD with modifications.
Sascha Wildner [Tue, 1 Jan 2008 23:19:46 +0000 (23:19 +0000)]
Use .Bx 386 for 386BSD.
Matthias Schmidt [Tue, 1 Jan 2008 18:02:51 +0000 (18:02 +0000)]
Mention /etc/firmware for firmware(9) image files.
Matthias Schmidt [Tue, 1 Jan 2008 17:28:20 +0000 (17:28 +0000)]
Update to get entries for the Sun Grid Engine and iSCSI.
Obtained-From: FreeBSD
Matthias Schmidt [Tue, 1 Jan 2008 17:22:02 +0000 (17:22 +0000)]
o Add missing dot (.)
o Add /usr/pkg/etc to the list of important directories
Matthias Schmidt [Tue, 1 Jan 2008 14:09:02 +0000 (14:09 +0000)]
Update kdump(1) to print more human readable information.
This shows the difference between the old output and the new one:
-73540 telnet CALL mmap(0,0xb80,0x3,0x1000,0xffffffff,0,0,0)
+73540 telnet CALL mmap(0,0xb80,PROT_READ|PROT_WRITE,MAP_ANON,0xffffffff,0,0,0)
-73540 telnet CALL sigprocmask(0x1,0x2806f97c,0xbfbff2c8)
+73540 telnet CALL sigprocmask(SIG_BLOCK,0x2806f97c,0xbfbff2c8)
-73540 telnet CALL socket(0x1c,0x1,0x6)
+73540 telnet CALL socket(PF_INET6,SOCK_STREAM,0x6)
Obtained-from: FreeBSD
Matthias Schmidt [Tue, 1 Jan 2008 14:01:36 +0000 (14:01 +0000)]
Enclose O_ROOTCRED in _KERNEL_STRUCTURES. This is needed for the upcoming
kdump(1) work.
Sascha Wildner [Tue, 1 Jan 2008 12:16:40 +0000 (12:16 +0000)]
Add PCI IDs for ICH9.
Taken-from: FreeBSD
Matthew Dillon [Tue, 1 Jan 2008 01:00:03 +0000 (01:00 +0000)]
HAMMER 14/many - historical access cleanup, itimes, bug fixes.
With this commit most historical accesses work and I can go through at least
two cycles of cpdup / rm -rf without crashing.
* Fix a bug in the B-Tree code related to searches on historical records.
These records are differentiated by key.create_tid but unlike the rest
of the key the matching algorithm has to be somewhat more sophisticated.
e.g. A search as of time 10 needs to find a record with a create_tid of 5.
To make this work properly we use a trick when we generate the separator
when splitting a leaf. see hammer_btree.c / hammer_make_separator().
* Recycle inodes a link count of 0 immediately.
* Optimization: Do not flush backing store to disk on reclaim.
* Add a per-inode read-only flag. Mark all historical inodes as read-only
* Implement read-only semantics in the vnops and assert attempts to modify
inodes marked read-only.
* Properly record the last transaction id for use when synchronizing
inodes to the platter. There were a few cases when late synchronizations
were using the wrong transaction id, breaking user expectations when
accessing historical data after a sync.
* Update the itimes (atime and mtime). These are non-historical updates by
default (meaning we just overwrite the latest inode record instead of
deleting it and inserting a new one). A future mount option will allow
these updates to operate historically (the coding is trivial)... didn't
you always want to know the last time a file was accessed prior to a
particular date? Think about it...
* Fix an inode memory leak. The inode in-memory structure must be freed
on last reference. There were cases where it was being left in the
HAMMER cache.
* Optimization: Reduce vnode scan overhead during 'sync' by improving
on the inode flags which indicate that some sort of sync is required.
* Optimization: Don't flush inodes when their link count drops by 1, try
to only flush them when their link drops to 0.
* Fix a couple of potential deadlocks.
* Fix a case in the vnops code where an inode was not being properly flagged
as being dirty.
Matthew Dillon [Tue, 1 Jan 2008 00:57:57 +0000 (00:57 +0000)]
Add the 'hammer' utility. This is going to be a catch-all for various
hammer functions. At the moment it is just a skeleton.
hammer now - return timestamp suitable for historical access via
[path]@@<timestamp>
Sascha Wildner [Mon, 31 Dec 2007 23:53:32 +0000 (23:53 +0000)]
Add 2008 to our copyrights. Happy new year!
Sascha Wildner [Mon, 31 Dec 2007 17:26:20 +0000 (17:26 +0000)]
Sync zoneinfo database with tzdata2007k from elsie.
backward: 8.3 -> 8.4
europe: 8.11 -> 8.12
southamerica: 8.13 -> 8.15
zone.tab: 8.12 -> 8.13
From Paul Eggert's comments:
* Changes to the "southamerica" file (combinining material from
Jesper Norgaard Welen and Paul Eggert) to reflect Argentina's
readoption of daylight saving time
* Move Atlantic/Jan_Mayen to the 'backward' file
(thanks to Jonas Melian for this).
Matthew Dillon [Mon, 31 Dec 2007 05:44:33 +0000 (05:44 +0000)]
HAMMER 13B/many - addendum to 13.
* Fix ref count bug w/ hammer_volume.
Matthew Dillon [Mon, 31 Dec 2007 05:33:12 +0000 (05:33 +0000)]
HAMMER 13/many - Stabilization commit
* Clean up the in-memory record API.
* Add B-Tree boundary assertions and B-Tree debugging code.
* Delay freeing bits in the allocation bitmaps for B-Tree nodes and
clusters until the last reference to the in-memory structure goes away.
This avoids premature reallocation.
* Fix a bug in btree_split_leaf() - the cursor was not being properly
adjusted in a particular boundary case.
* Fix a recursive lock bug on a buffer cache buffer in hammer_io.c
* Do not allow a non-empty directory to be removed.
* Synthesize directory entries for "." and "..". Adjust the
hammer_directory_namekey() procedure to reserve key-space for the
synthesized entries.
* Fix memory leaks related to the hammer_node and hammer_record structures.
* Finish writing the rename code.
Sepherosa Ziehau [Mon, 31 Dec 2007 04:58:54 +0000 (04:58 +0000)]
- Factor out if_purgeaddrs_nolink(), which frees all non-link ifaddrs no
ifnet.if_addrhead
- Use above function in if_detach() and free link ifaddr manually, add some
assertion there to make sure ifnet.if_addrhead is in sane state
Submitted-by: pavalos@
Obtained-from: FreeBSD (w/ modification)
For tap(4)
- Use if_purgeaddrs_nolink() to clean up tap's if_addrhead
- Cleaning up ifaddrs has nothing to do with current tap's mode (vmnet/tap)
- In non-vmnet mode, clear IFF_RUNNING if_flags when a tap is brought down
For tun(4)
- Use if_purgeaddrs_nolink() to clean up tun's if_addrhead
- Cleaning up ifaddrs has nothing to do with IFF_RUNNING
- in_control() is clever enough to set the RTF_HOST flags for tun, so tun
does not need to record that dst addr has been set. Since net/tun/if_tunvar.h
was exposed to /usr/include "accidentally", instead of nuking TUN_DSTADDR,
I just mark it as "unused" in comment.
Hasso Tepper [Sun, 30 Dec 2007 20:02:57 +0000 (20:02 +0000)]
Kernel part of bluetooth stack ported by Dmitry Komissaroff. Very much work
in progress.
Obtained-from: NetBSD via OpenBSD
Sascha Wildner [Sun, 30 Dec 2007 16:15:05 +0000 (16:15 +0000)]
Make DDB optional in vkernels.
Submitted-by: Nuno Antunes <nuno.antunes@gmail.com>
Matthias Schmidt [Sun, 30 Dec 2007 13:44:33 +0000 (13:44 +0000)]
Remove 3rd clause of Berkely copyright, per letter. Don't rename 4. to 3.
to avoid diff mismatch against FreeBSD.
Sascha Wildner [Sun, 30 Dec 2007 11:56:54 +0000 (11:56 +0000)]
Bring in some fixes from FreeBSD.
Matthew Dillon [Sun, 30 Dec 2007 08:49:20 +0000 (08:49 +0000)]
HAMMER 12/many - buffer cache sync, buffer cache interactions, misc fixes.
As of this commit all vnops work, the filesystem remains consistent across
umount/remount, and the 'cpdup / /mnt/root' test succeeds. There is still
a ton of work to do but this is a major milestone.
* Get sync and umount working properly. Properly sync out in-memory records
and inode updates, and properly release buffer cache buffers so the
kernel can throw them away.
* Modifications to buffers backed by the buffer cache ensure that any
asynchronous writes complete to avoid a modify-write race.
* Fix miscellanious reference counting bugs.
* Fix two insertion bugs for internal B-Tree nodes that were causing the
code to blow up.
Matthew Dillon [Sun, 30 Dec 2007 00:47:22 +0000 (00:47 +0000)]
HAMMER 12/many - add VOPs for symlinks, device, and fifo support.
* Add some missing VOP bits. Add a fixed attribute record type and store
the symlink path as fixed attribute record #1.
* Adjust hammer_inode_data to add missing major and minor device fields.
* Add support for adding generic records and special case deletion of
an object's entire set of records.
* Fix a minor bug that was causing the root cluster to be improperly kfree()'d.
Matthias Schmidt [Sat, 29 Dec 2007 22:55:29 +0000 (22:55 +0000)]
Remove bogus non-reentrant "temporary" implementation of gethostbyaddr_r()
that has been here for a long time.
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue900>
Submitted-by: Frank W. Josellis <frank@dynamical-systems.org>
Obtained-from: FreeBSD
Hasso Tepper [Sat, 29 Dec 2007 22:15:06 +0000 (22:15 +0000)]
Don't show in netstat(1) output without the -a switch TCP socket in LISTEN
state if it happens to be bound to an interface.
Obtained-from: FreeBSD
Matthias Schmidt [Sat, 29 Dec 2007 21:57:58 +0000 (21:57 +0000)]
Update the man page to reflect the recent sync with FreeBSD.
Obtained-From: FreeBSD
Matthias Schmidt [Sat, 29 Dec 2007 21:44:44 +0000 (21:44 +0000)]
Sync etc/periodic with FreeBSD. Short summary:
- Display information about blocked counts from pf(4)
- Make df output more human readable
- Add login.conf checking to security
- Fix several bugs and add some enhancements to various scripts
The list of all relevant FreeBSD Revisions is available here:
http://leaf.dragonflybsd.org/mailarchive/submit/2007-12/msg00009.html
Obtained-From: FreeBSD
Sascha Wildner [Sat, 29 Dec 2007 21:00:42 +0000 (21:00 +0000)]
Sync with FreeBSD (adds NetBSD 4.0).
Sascha Wildner [Sat, 29 Dec 2007 18:18:00 +0000 (18:18 +0000)]
Remove trailing space.
Sascha Wildner [Sat, 29 Dec 2007 13:40:28 +0000 (13:40 +0000)]
Remove the xrpu driver as FreeBSD did ~1 month ago.
Sepherosa Ziehau [Sat, 29 Dec 2007 12:51:17 +0000 (12:51 +0000)]
Use TAILQ_HEAD_INITIALIZER to initialize global variable 'ifnet'
Matthew Dillon [Sat, 29 Dec 2007 09:01:27 +0000 (09:01 +0000)]
HAMMER 11/many - initial spike commit.
* Fix a bug in the cluster disk offset calculation.
* Implement the cluster allocator and related header initialization.
* Remove wildcarding from hammer_btree_cmp().
* Move the historical filter out of hammer_btree_cmp() and into its own
procedure.
* Allow the ending element in a B-Tree range iteration to be inclusive or
exclusive of the range.
* Add infrastructure for cluster-localizes searches.
* Initial commit of the spike code (still in progress).
This commit brings in most of the infrastructure needed for the spike code.
The spike code is what glues one cluster's B-Tree to another cluster's B-Tree.
At the moment we spike by taking the B-Tree leaf node at the cursor after
a search and moving all of its elements to a new cluster, then replacing
the pointer to that leaf node in the parent B-Tree node with a cluster
reference.
This is non-optimal at the moment. Several optimizations are possible and
will be eventually be implemented.
Matthias Schmidt [Fri, 28 Dec 2007 16:37:10 +0000 (16:37 +0000)]
Sync the adduser(8) command with FreeBSD. Summary:
o Check if a user already exists
o Correct nologin path (was /usr/sbin instead of /sbin)
o Man page fixes (mostly typos and some rewording)
Sepherosa Ziehau [Fri, 28 Dec 2007 14:09:25 +0000 (14:09 +0000)]
- Regroup global variables, function declarations and macros
- Nuke unused head file
- Minor style changes
# No functional changes
Sepherosa Ziehau [Fri, 28 Dec 2007 13:27:45 +0000 (13:27 +0000)]
Use M_ASSERTPKTHDR
Sepherosa Ziehau [Fri, 28 Dec 2007 13:16:10 +0000 (13:16 +0000)]
kmalloc(M_WAITOK) will not return NULL
Sascha Wildner [Fri, 28 Dec 2007 12:34:44 +0000 (12:34 +0000)]
Use the correct version.
Sepherosa Ziehau [Fri, 28 Dec 2007 11:46:38 +0000 (11:46 +0000)]
- Use NULL
- Shut up gcc4 warning; it seems to be confused by the code path
Sepherosa Ziehau [Fri, 28 Dec 2007 11:37:08 +0000 (11:37 +0000)]
- Use M_ZERO
- Minor cleanup
Sascha Wildner [Thu, 27 Dec 2007 23:52:35 +0000 (23:52 +0000)]
Testing
Matthias Schmidt [Thu, 27 Dec 2007 20:00:51 +0000 (20:00 +0000)]
Enhance the comment
Obtained-From: FreeBSD
Matthias Schmidt [Thu, 27 Dec 2007 15:40:59 +0000 (15:40 +0000)]
Test cvs add :)
Matthias Schmidt [Thu, 27 Dec 2007 15:29:40 +0000 (15:29 +0000)]
Pass NULL instead of getprogname() to pidfile(). pidfile() will automatically
detect if the option is NULL and insert the appropriate basename.
Matthias Schmidt [Thu, 27 Dec 2007 13:40:11 +0000 (13:40 +0000)]
Don't randomize fortune dat files during build time. fortune will display
its entries randomized anyway. Without this change comparing two trees
(for binary updates) will lead to false postives.
Matthias Schmidt [Thu, 27 Dec 2007 13:31:42 +0000 (13:31 +0000)]
Add 'H' to usage() options. This was missing from the last commit.
Matthias Schmidt [Thu, 27 Dec 2007 11:52:10 +0000 (11:52 +0000)]
o Change my personal copyright to the DragonFly copyright
o Add a HISTORY entry to the man page
Matthias Schmidt [Thu, 27 Dec 2007 10:47:55 +0000 (10:47 +0000)]
Hello :)
Sascha Wildner [Thu, 27 Dec 2007 04:00:03 +0000 (04:00 +0000)]
Use .Fa for struct members.
Sascha Wildner [Thu, 27 Dec 2007 02:25:41 +0000 (02:25 +0000)]
Use uintmax_t for printing/reading ino_t.
Nicolas Thery [Thu, 27 Dec 2007 00:59:25 +0000 (00:59 +0000)]
Fix off-by-one bug causing core dump when encountering syscall with index
one past the last one known to truss.
DragonFly-bug: <http://bugs.dragonflybsd.org/issue891>
Nicolas Thery [Thu, 27 Dec 2007 00:24:39 +0000 (00:24 +0000)]
Test commit bit :-).
Sascha Wildner [Wed, 26 Dec 2007 16:11:33 +0000 (16:11 +0000)]
Vlan tagging support in msk(4) is still missing.
Sascha Wildner [Wed, 26 Dec 2007 14:32:31 +0000 (14:32 +0000)]
Add et(4).
Sascha Wildner [Wed, 26 Dec 2007 14:29:30 +0000 (14:29 +0000)]
Adjust various manpages/files for the new msk(4) driver.
Sascha Wildner [Wed, 26 Dec 2007 14:27:58 +0000 (14:27 +0000)]
Add a manual page for msk(4).
Submitted-by: sephe
Taken-from: FreeBSD
Sepherosa Ziehau [Wed, 26 Dec 2007 14:02:36 +0000 (14:02 +0000)]
Import msk(4) which supports Marvell Yukon II based NICs (both gigE and fastE)
Obtained-from: FreeBSD (yongari@FreeBSD.org)
Tested-by: me, swildner@, Ferruccio Zamuner <nonsolosoft@diff.org>
# Hardware vlan tagging, hardware checksum offload and jumbo frame support
# are still missing as of this commit.
Sepherosa Ziehau [Wed, 26 Dec 2007 13:02:38 +0000 (13:02 +0000)]
regen
Sepherosa Ziehau [Wed, 26 Dec 2007 13:02:03 +0000 (13:02 +0000)]
Add PHY IDs for Broadcom 5906 10/100
Sepherosa Ziehau [Wed, 26 Dec 2007 12:59:09 +0000 (12:59 +0000)]
regen
Sepherosa Ziehau [Wed, 26 Dec 2007 12:57:52 +0000 (12:57 +0000)]
Add Broadcom 5906/5906M 10/100 NIC PCI IDs
Sascha Wildner [Wed, 26 Dec 2007 05:51:39 +0000 (05:51 +0000)]
Add /etc/pam.d, /etc/rc.d and /etc/ssh.
Taken-from: FreeBSD
Sascha Wildner [Wed, 26 Dec 2007 05:45:07 +0000 (05:45 +0000)]
Don't include .It in the width specifier.
Sascha Wildner [Tue, 25 Dec 2007 13:38:47 +0000 (13:38 +0000)]
Fix typo in kernel option.
Hasso Tepper [Tue, 25 Dec 2007 12:54:50 +0000 (12:54 +0000)]
Remove references to drivers which don't exist in DragonFly.
Sascha Wildner [Tue, 25 Dec 2007 12:40:32 +0000 (12:40 +0000)]
* Remove references to 'options GPL_MATH_EMULATE' which was removed
almost 3 years ago.
* Remove reference to the i387 since we dropped i386 support a while
ago.
* While I'm here, improve markup a bit and start sentences on a
new line.
Sascha Wildner [Mon, 24 Dec 2007 11:23:05 +0000 (11:23 +0000)]
Add some words about THREAD_LIB.
Peter Avalos [Mon, 24 Dec 2007 00:14:52 +0000 (00:14 +0000)]
Remove unused CTS_SPI_FLAGS_TAG_ENB.
Obtained-from: FreeBSD
Sascha Wildner [Sun, 23 Dec 2007 16:47:33 +0000 (16:47 +0000)]
Fix typo.
Sascha Wildner [Sun, 23 Dec 2007 16:47:00 +0000 (16:47 +0000)]
Remove CVS ids.
Sascha Wildner [Sun, 23 Dec 2007 15:31:29 +0000 (15:31 +0000)]
Fix various typos in our manpages.
Peter Avalos [Sun, 23 Dec 2007 07:00:57 +0000 (07:00 +0000)]
Fixes for CAM_NEW_TRAN_CODE.
This commit is taken from a FreeBSD changeset, and is not intended to
be comprehensive. Some drivers will still not compile/work with the
CAM_NEW_TRAN_CODE option, but this opens the door for wider testing.
Obtained-from: FreeBSD
Peter Avalos [Sun, 23 Dec 2007 04:46:04 +0000 (04:46 +0000)]
Fix typo that was causing CAM_NEW_TRAN_CODE to do nothing.
Sepherosa Ziehau [Sun, 23 Dec 2007 02:46:40 +0000 (02:46 +0000)]
- Add THREAD_LIB to make.conf
- Export LIBTHREAD in bsd.libnames.mk based on THREAD_LIB
- Bail out earlier, if NO_LIBC_R is defined and THREAD_LIB is "r_c"
- Set DPADD to LIBTHREAD in lib/libpthread/Makefile
# Default thread library is still lib/libthread_xu
Sascha Wildner [Sun, 23 Dec 2007 00:25:52 +0000 (00:25 +0000)]
Remove duplicate option.
Peter Avalos [Sat, 22 Dec 2007 21:53:04 +0000 (21:53 +0000)]
Merge from vendor branch LIBARCHIVE:
Import libarchive-2.4.8:
gzip and bzip2 compression now handle zero-byte writes correctly.
Fix a couple of minor memory leaks.
Peter Avalos [Sat, 22 Dec 2007 21:53:04 +0000 (21:53 +0000)]
Import libarchive-2.4.8:
gzip and bzip2 compression now handle zero-byte writes correctly.
Fix a couple of minor memory leaks.
Sascha Wildner [Sat, 22 Dec 2007 19:24:32 +0000 (19:24 +0000)]
Use normal date, we don't support $.
Sascha Wildner [Sat, 22 Dec 2007 19:07:00 +0000 (19:07 +0000)]
Use .In
Sascha Wildner [Fri, 21 Dec 2007 22:34:47 +0000 (22:34 +0000)]
Use .Dx
Sascha Wildner [Fri, 21 Dec 2007 22:14:04 +0000 (22:14 +0000)]
Bring in a script(7) manual page which describes some details about
interpreter script execution.
Add references to script(7).
Taken-from: OpenBSD & NetBSD
Sascha Wildner [Fri, 21 Dec 2007 19:13:35 +0000 (19:13 +0000)]
Fix yet another tunable name.
Sascha Wildner [Fri, 21 Dec 2007 19:02:29 +0000 (19:02 +0000)]
Fix tunable name.
Sepherosa Ziehau [Fri, 21 Dec 2007 13:17:51 +0000 (13:17 +0000)]
- All inpcb related operations are now CPU localized, so there is no need to
protect them with critical secion.
- Clean up div_bind() a little bit.
# divert(4) is CPU localized; I don't think a system will open more than
# one divert(4) socket.
Sepherosa Ziehau [Fri, 21 Dec 2007 12:51:51 +0000 (12:51 +0000)]
In divert_packet():
Dispatch mbuf to CPU0 if the current CPU is not CPU0, so we can safely
locate inpcb there.
This change does not affect UP system.
Sascha Wildner [Fri, 21 Dec 2007 10:43:59 +0000 (10:43 +0000)]
Remove NetBSD synopsis.
Sascha Wildner [Fri, 21 Dec 2007 09:51:11 +0000 (09:51 +0000)]
Fix accents.
Sascha Wildner [Fri, 21 Dec 2007 09:00:41 +0000 (09:00 +0000)]
Add a manual page for the est(4) driver.
Peter Avalos [Fri, 21 Dec 2007 00:14:58 +0000 (00:14 +0000)]
Add some quick documentation regarding the CAM_NEW_TRAN_CODE option.
Reviewed-by: swildner
Peter Avalos [Fri, 21 Dec 2007 00:02:53 +0000 (00:02 +0000)]
printf -> kprintf
Peter Avalos [Thu, 20 Dec 2007 23:31:26 +0000 (23:31 +0000)]
Add CAM_NEW_TRAN_CODE as a kernel option.
Sepherosa Ziehau [Thu, 20 Dec 2007 12:44:20 +0000 (12:44 +0000)]
In divert_packet():
- Since rcvif is checked on the main code path, we need to make sure that
the mbuf contains pkthdr.
- It is impossible for a mbuf that does not contain divert tag to sneak into
divert_packet(); add assertion about it.
- Rearrange code a little bit.