Joerg Sonnenberger [Mon, 6 Sep 2004 16:30:10 +0000 (16:30 +0000)]
Minor style cleanups.
Submitted-by: Yonetani Tomokazu <qhwt+dragonfly-submit@les.ath.cx>
Additionally cleanup Makefile as well.
Joerg Sonnenberger [Mon, 6 Sep 2004 13:52:24 +0000 (13:52 +0000)]
Import the new wi(4) driver based on the generic 802.11 layer.
Obtained-from: FreeBSD
Joerg Sonnenberger [Mon, 6 Sep 2004 13:24:05 +0000 (13:24 +0000)]
Add const for argument of argmatch to fix warnings.
Matthew Dillon [Mon, 6 Sep 2004 01:19:07 +0000 (01:19 +0000)]
The mount options matching code was incorrectly testing for string
termination or '=' of m->option[len], where len = strlen(m->option). Also,
at that particular point in the code the opt[] string has already been
stripped of any '='. The original code must have been intended to check
an unstripped opt[] string but with opt[] stripped it really just needs to
do a case case-insensitive match.
Noticed-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Matthew Dillon [Sun, 5 Sep 2004 21:25:53 +0000 (21:25 +0000)]
NULL out p_stats when detaching the underlying thread stack, since the
pointer will no longer be valid. This should solve occassional panics
that occur when procfs tries to read an invalid p_stats.
Crash-Reported-by: Rum <rumko@precious.networklinux.net>
Matthew Dillon [Sun, 5 Sep 2004 21:23:34 +0000 (21:23 +0000)]
Leave the USB keyboard registered with the keyboard subsystem even if the
USB keyboard is unplugged or reset. USB keyboard resets can occur under a
number of conditions, including during system boot and when other devices
on the same controller are pulled or create problems for the controller. If
we were to deregister the keyboard then the console would disconnect from it
and the keyboard would become unusable.
Use the new keyboard preference feature and give a USB keyboard a higher
priority then a standard atkbd keyboard. ATKBD keyboards often probe even
when no keyboard exists, especially if the BIOS was set to USB keyboard
compatibility mode. This way if there is a USB keyboard connected up, it
will get priority over the AT keyboard even if the system thinks an AT
keyboard exists.
Matthew Dillon [Sun, 5 Sep 2004 21:19:41 +0000 (21:19 +0000)]
Use the new keyboard preference feature.
Matthew Dillon [Sun, 5 Sep 2004 21:19:19 +0000 (21:19 +0000)]
Add a keyboard preference to kbd_init_struct(). When a wildcard keyboard is
allocated the highest priority unallocated keyboard will be returned.
Add kbd_reinit_struct() so USB can leave its keyboard registered.
Joerg Sonnenberger [Sun, 5 Sep 2004 13:34:56 +0000 (13:34 +0000)]
Save current version of wi(4) as owi before switching to generic 802.11
version.
Small modifications to allow kernels with both devices included.
if_owi.c: copy of if_wi.c, 1.15
if_owi_pccard.c: copy of if_wi_pccard.c, 1.5
if_owi_pci.c: copy of if_wi_pci.c, 1.4
if_wireg.h: copy of if_wireg.h, 1.3
if_wivar.h: copy of if_wivar.h, 1.4
owi_hostap.c: copy of wi_hostap.c, 1.9
wi_hostap.h: copy of wi_hostap.h, 1.2
Joerg Sonnenberger [Sun, 5 Sep 2004 13:06:18 +0000 (13:06 +0000)]
Create the dma maps before allocating the memory. Use WAITOK for the
RX and TX buffers.
Joerg Sonnenberger [Sun, 5 Sep 2004 12:36:16 +0000 (12:36 +0000)]
Remove the unit included in the softc, it is not used beside the call to
if_initname and can be fetched via device_get_unit anyway. Don't wire the
interface name to "nv", use the driver name instead.
Matthew Dillon [Sun, 5 Sep 2004 11:53:58 +0000 (11:53 +0000)]
Set OPENSSH_USE_POSIX_THREADS to 1 to work around a privilege separation
bug with PAM which causes dead sshd processes in [pam] mode to hang around
forever.
Matthew Dillon [Sun, 5 Sep 2004 02:20:15 +0000 (02:20 +0000)]
Remove function casts to (void).
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Sun, 5 Sep 2004 02:16:48 +0000 (02:16 +0000)]
Remove #ifdef sgi and related conditionals. Remove improper libc prototypes.
Inspired-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Sun, 5 Sep 2004 02:09:24 +0000 (02:09 +0000)]
Make timed WARNS 2 compatible.
Matthew Dillon [Sun, 5 Sep 2004 02:02:25 +0000 (02:02 +0000)]
Avoid WARNS=2 error by renaming the 'print' variable to 'printerr' to avoid
collision with the print() function in the same program, and renaming
the 'adjtime' variable to 'adjusttime' to avoid a conflict with adjtime().
Obtained-from: NetBSD
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Sun, 5 Sep 2004 01:59:44 +0000 (01:59 +0000)]
Replace all occurences of strcpy by the safe strlcpy where needed.
Replace all occurences of strncpy by the safer strlcpy where needed.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Sun, 5 Sep 2004 01:18:27 +0000 (01:18 +0000)]
Minor non-functional syntax changes. Remove (void) casts, and remove
the register keyword.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Sun, 5 Sep 2004 00:06:43 +0000 (00:06 +0000)]
Misc syntax cleanup.
Matthew Dillon [Sun, 5 Sep 2004 00:03:30 +0000 (00:03 +0000)]
Correct a bug introduced in a recent commit. This fixes touch -t.
Submitted-by: YONETANI Tomokazu <qhwt+dragonfly-bugs@les.ath.cx>
Matthew Dillon [Sat, 4 Sep 2004 23:12:55 +0000 (23:12 +0000)]
Fix a bug in sillyrename handling in nfs_inactive(). The code was improperly
ignoring the lock state of the passed vp and recursing nfs_inactive() by
calling vrele() from within nfs_inactive(). Since NFS uses real vnode
locking now, this resulted in a panic.
KDE startup problems reported by: Emiel Kollof <coolvibe@hackerheaven.org>
Eirik Nygaard [Sat, 4 Sep 2004 12:03:14 +0000 (12:03 +0000)]
Add noops for vga_pxlmouse_direct and vga_pxlmouse_planar in the case where
SC_NO_CUTPASTE is defined. Also remove the old vga_pxlmouse noop.
Matthew Dillon [Sat, 4 Sep 2004 06:15:08 +0000 (06:15 +0000)]
Add VESA mode support for syscons. The vesa.ko module must be loaded and
syscons (sc0) must be compiled with 'options SC_PIXEL_MODE'.
'vidcontrol -i mode' may then be used to list available modes and
'vidcontrol MODE_n' may be used to set the mode. This patch adds support
for 15, 16, 24, and 32 bit modes and also does a bit of related cleanup and
restructuring.
Submitted-by: Sascha Wildner <saw@online.de>
Testing-and-Discussion: Sarunas Vancevicius, YONETANI Tomokazu and Joerg Anslik
Matthew Dillon [Sat, 4 Sep 2004 04:00:39 +0000 (04:00 +0000)]
Reenable pkill. There wasn't actually a problem with it, it turned out to
be stale source on my part.
Matthew Dillon [Fri, 3 Sep 2004 20:48:16 +0000 (20:48 +0000)]
With the 'cu' program removed from the system (long ago), enable 'cu'
emulation in 'tip' to replace the functionality.
From discussions with: Jeroen Ruigrok/asmodai <asmodai@wxs.nl>, others
Matthew Dillon [Fri, 3 Sep 2004 20:38:01 +0000 (20:38 +0000)]
Remove some unnecessary extern's of libc functions.
Matthew Dillon [Fri, 3 Sep 2004 19:47:20 +0000 (19:47 +0000)]
pkill does not compile cleanly, remove it from the build.
Matthew Dillon [Fri, 3 Sep 2004 19:13:23 +0000 (19:13 +0000)]
Add the -8 option to finger for 8-bit output (from NetBSD).
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Fri, 3 Sep 2004 18:40:13 +0000 (18:40 +0000)]
Minor style cleanups. Start a list of obsolete functions that should no
longer be used, and add a warning about the use of unbounded string functions.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Additional-work-by: Matt Dillon
Joerg Sonnenberger [Fri, 3 Sep 2004 14:30:41 +0000 (14:30 +0000)]
Fix the way warnings are printed. Use warnx(3) if the message is provided,
default to warn(3) otherwise.
Noticed-by: corecode
Eirik Nygaard [Fri, 3 Sep 2004 08:50:47 +0000 (08:50 +0000)]
Move the simple pager from db_ps.c into the more obvious file db_output.c and
remove the static declaration of it so other files also can take use of it.
Eirik Nygaard [Thu, 2 Sep 2004 11:21:40 +0000 (11:21 +0000)]
sendsys.h is no longer needed.
Eirik Nygaard [Thu, 2 Sep 2004 11:21:12 +0000 (11:21 +0000)]
Redo the sysmsg test programs to match the changes done in the kernel to
properly support synchronous and asynchronous syscall messages.
Jeroen Ruigrok/asmodai [Thu, 2 Sep 2004 09:35:38 +0000 (09:35 +0000)]
Update per latest manual pages after 'man-update'.
Jeroen Ruigrok/asmodai [Thu, 2 Sep 2004 09:31:49 +0000 (09:31 +0000)]
Update per latest manual pages after running 'man-update'.
Jeroen Ruigrok/asmodai [Thu, 2 Sep 2004 09:27:41 +0000 (09:27 +0000)]
Update per latest manual pages.
Jeroen Ruigrok/asmodai [Thu, 2 Sep 2004 09:26:58 +0000 (09:26 +0000)]
Commit manual pages after running 'man-update' and add new manual pages.
Jeroen Ruigrok/asmodai [Thu, 2 Sep 2004 08:57:05 +0000 (08:57 +0000)]
Switch from OpenSSL 0.9.7a to OpenSSL 0.9.7d.
Jeroen Ruigrok/asmodai [Thu, 2 Sep 2004 05:45:20 +0000 (05:45 +0000)]
Fix it properly.
Submitted by: Simon 'corecode' Schubert
David Rhodus [Wed, 1 Sep 2004 18:49:25 +0000 (18:49 +0000)]
Fix a problem introduced by the last commit.
Jeroen Ruigrok/asmodai [Wed, 1 Sep 2004 14:30:05 +0000 (14:30 +0000)]
Synchronize with our current code.
Overhaul some other parts to keep it concise.
Jeroen Ruigrok/asmodai [Wed, 1 Sep 2004 14:13:55 +0000 (14:13 +0000)]
First stab at getting the Silicon Image (SiI) SATA controllers 3112 and
3124 working.
Jeroen Ruigrok/asmodai [Wed, 1 Sep 2004 12:11:16 +0000 (12:11 +0000)]
MLINK sata(4) to ata(4).
Jeroen Ruigrok/asmodai [Tue, 31 Aug 2004 20:02:04 +0000 (20:02 +0000)]
Merge from vendor branch OPENSSL:
Add OpenSSL 0.9.7d.
Jeroen Ruigrok/asmodai [Tue, 31 Aug 2004 20:02:04 +0000 (20:02 +0000)]
Add OpenSSL 0.9.7d.
Scott Ullrich [Tue, 31 Aug 2004 00:36:10 +0000 (00:36 +0000)]
Remove OpenSSH-3.8.1p1 from base.
Scott Ullrich [Mon, 30 Aug 2004 21:59:58 +0000 (21:59 +0000)]
Merge from vendor branch OPENSSH:
Import OpenSSH-3.9p1 from openbsd.org
Assistance-from: Chris Pressey, Jörg Sonnenberger
Testing-by: Guillermo García Rojas C, Chris Pressey & Jeroen Ruigrok van der Werven
Scott Ullrich [Mon, 30 Aug 2004 21:59:58 +0000 (21:59 +0000)]
Import OpenSSH-3.9p1 from openbsd.org
Assistance-from: Chris Pressey, Jörg Sonnenberger
Testing-by: Guillermo García Rojas C, Chris Pressey & Jeroen Ruigrok van der Werven
Scott Ullrich [Mon, 30 Aug 2004 21:59:58 +0000 (21:59 +0000)]
Import OpenSSH-3.9p1 from openbsd.org
Assistance-from: Chris Pressey, Jörg Sonnenberger
Testing-by: Guillermo García Rojas C, Chris Pressey & Jeroen Ruigrok van der Werven
Eirik Nygaard [Mon, 30 Aug 2004 19:27:22 +0000 (19:27 +0000)]
Use strchr instead of index, and strrchr instead of rindex because the str*chr
functions are standard compliant.
index() and rindex() do the same thing as repectively strchr() and strrchr() do.
Submitted by: Douwe Kiela <virtus@wanadoo.nl>
Eirik Nygaard [Mon, 30 Aug 2004 18:06:50 +0000 (18:06 +0000)]
Use strchr instead of index, and strrchr instead of rindex because the str*chr
functions are standard compliant.
index() and rindex() do the same thing as repectively strchr() and strrchr() do.
Submitted by: Douwe Kiela <virtus@wanadoo.nl>
Jeroen Ruigrok/asmodai [Mon, 30 Aug 2004 15:10:50 +0000 (15:10 +0000)]
Add 136: UDPLite [UDP for error prone networks]
Add 253, 254: Free for experimentation and testing.
In effect this means that divert (254) is on a slot that
more or less suits it.
Jeroen Ruigrok/asmodai [Mon, 30 Aug 2004 06:17:16 +0000 (06:17 +0000)]
-1, not -15.
Jeroen Ruigrok/asmodai [Mon, 30 Aug 2004 05:17:14 +0000 (05:17 +0000)]
Add missing entries for fo_FO, lt_LT, Argentina.
Jeroen Ruigrok/asmodai [Sun, 29 Aug 2004 16:14:25 +0000 (16:14 +0000)]
Use proper filenames for the Faroese locales.
Jeroen Ruigrok/asmodai [Sun, 29 Aug 2004 12:45:27 +0000 (12:45 +0000)]
Add OpenSSL 0.9.7d.
Jeroen Ruigrok/asmodai [Sun, 29 Aug 2004 12:45:27 +0000 (12:45 +0000)]
Merge from vendor branch OPENSSL:
Add OpenSSL 0.9.7d.
Jeroen Ruigrok/asmodai [Sun, 29 Aug 2004 09:57:46 +0000 (09:57 +0000)]
Forced commit to note that site_perl/5.005/i386-freebsd is now:
site_perl/5.005/dragonfly.
Jeroen Ruigrok/asmodai [Sun, 29 Aug 2004 09:46:37 +0000 (09:46 +0000)]
Get rid of the alpha entries.
Matthew Dillon [Sat, 28 Aug 2004 23:04:23 +0000 (23:04 +0000)]
Fix a bug that was causing a 'lockmgr: draining against myself' panic when
you operated on a NULL mount of a NFS partition. NFS's lookup() code was not
properly setting the CNP_PDIRUNLOCK flag. NULLFS's lookup code depends on
this flag to determine the proper lock state for the nullfs layer's vnode.
Jeroen Ruigrok/asmodai [Sat, 28 Aug 2004 22:39:04 +0000 (22:39 +0000)]
Add first stab at Faroese locale.
Matthew Dillon [Sat, 28 Aug 2004 21:32:28 +0000 (21:32 +0000)]
Fix handling of the recycling of vnodes from a failed hash collision.
Fix a hash table scan that was causing the root mount point to collide
when the same source directory is null-mounted multiple times.
Reported-by: esmith <esmith@patmedia.net>
Matthew Dillon [Sat, 28 Aug 2004 19:02:35 +0000 (19:02 +0000)]
VFS messaging/interfacing work stage 4/99. This stage goes a long ways
towards allowing us to move the vnode locking into a kernel layer. It
gets rid of a lot of cruft from FreeBSD-4. FreeBSD-5 has done some of this
stuff too (such as changing the default locking to stdlock from nolock),
but DragonFly is going further.
* Consolidate vnode locks into the vnode structure, add an embedded v_lock,
and getting rid of both v_vnlock and v_data based head-of-structure locks.
* Change the default vops to use a standard vnode lock rather then a fake
non-lock.
* Get rid of vop_nolock() and friends, we no longer support non-locking
vnodes.
* Get rid of vop_sharedlock(), we no longer support non standard shared-only
locks (only NFS was using it and the mount-crossing lookup code should
now prevent races to root from dead NFS volumes).
* Integrate lock initialization into getnewvnode(). We do not yet
incorporate automatically locking into getnewvnode(). getnewvnode()
now has two additional arguments, lktimeout and lkflags, for lock
structure initialization.
* Change the sync vnode lock from nolock to stdlock. This may require more
tuning down the line. Fix various sync_inactive() to properly unlock
the lock as per the VOP API.
* Properly flag the 'rename' vop operation regarding required tdvp and tvp
unlocks (the flags are only used by nullfs).
* Get rid of all inode-embedded vnode locks
* Remove manual lockinit and use new getnewvnode() args instead.
Lock the vnode prior to doing anything that might block in
order to avoid synclist access before the vnode has been properly
initialize.
* Generally change inode hash insertion to also check
for a hash collision and return failure if it occurs,
rather then doing (often non-atomic) relookups and
other checks. These sorts of collisions can occur
if a vnode is being destroyed at the same time a new
vnode is being created from an inode. A new vnode is
not generally accessible, except by the sync code (from
the mountlist) until it's underlying inode has been hashed
so dealing with a hash collision should be as simple as
throwing away the vnode with a vput().
* Do not initialize a new vnode's v_data until after
the associated inode has been successfully added to
the hash, and make the xxx_inactive() and xxx_reclaim()
code friendly towards vnodes with a NULL v_data.
* NFS now uses standard locks rather then shared-only locks.
* PROCFS now uses standard locks rather then non-locks, and PROCFS's
lookup code now understands VOP lookup semantics. PROCFS now uses
a real hash table for its node search rather then a single singly-linked
list (which should better scale to systems with thousands of processes).
* NULLFS should now properly handle lookup() and rename() locks. NULLFS's
node handling code has been rewritten. NULLFS's bypass code now understands
vnode unlocks (rename case).
* UFS no longer needs the ffs_inode_hash_lock hacks. It now uses the new
collision-on-hash-add methodology. This will speed up UFS when operating
on lots of small files (reported by David Rhodus).
Matthew Dillon [Sat, 28 Aug 2004 18:33:03 +0000 (18:33 +0000)]
Since ip_input() truncates the packet to ip->ip_len prior to entering the
protocol stack, ip_demux must incorporate an ip_len check in its tcp/udp
prechecks to avoid an assertion in the tcp/udp stacks if the packet is
malformed.
This is a temporary hack until Jeff and I can come up with a better way
to do per-protocol mbuf checks. Basically the issue involved is that we
want to pull up the entire tcp/udp/etc... header in order to be able to
trivially demux an IP packet (choose which protocol thread to route it to).
Since we have to m_pullup the packet in the demux we would rather do all
header length checks in the demux as well so as not have to repeat them in
the protocol code.
Reported-by: Sven Willenberger <sven@dmv.com>
In-discussion-with: Jeffrey Hsu
Jeroen Ruigrok/asmodai [Sat, 28 Aug 2004 17:57:51 +0000 (17:57 +0000)]
Get rid of COPY, its functionality has been superseded by install -C.
Inspired by: a FreeBSD commit message
Matthew Dillon [Sat, 28 Aug 2004 17:21:22 +0000 (17:21 +0000)]
Sync VESA support with FreeBSD-CURRENT, adding support for cards that
identify themselves as 'VIA CLE266' and fixing an ATI Radeon 7000
issue with the NON-VGA bit being set for all of its SVGA mods,
plus other minor changes.
Submitted-by: Sascha Wildner <saw@online.de>
Radeon-testing-by: Sarunas Vancevicius
Jeroen Ruigrok/asmodai [Sat, 28 Aug 2004 16:32:42 +0000 (16:32 +0000)]
Correct typo: mv -> nv.
Jeroen Ruigrok/asmodai [Sat, 28 Aug 2004 16:30:41 +0000 (16:30 +0000)]
Update zoneinfo database with the latest information.
Theory: 7.13 -> 7.15
asia: 7.71 -> 7.75
australasia: 7.68 -> 7.69
backward: 7.23 -> 7.26
europe: 7.83 -> 7.88
factory: use zic, not tzsetup
leapseconds: 7.15 -> 7.17
northamerica: 7.62 -> 7.69
southamerica: 7.46 -> 7.52
zone.tab: 1.28 -> 1.30
Jeroen Ruigrok/asmodai [Sat, 28 Aug 2004 15:17:37 +0000 (15:17 +0000)]
Add updated Lithuanian locale (lt_LT-ISO8859-13).
Bug: 8
Submitted by: Edmondas Girkantas <eg@zemaitija.net>
Taken from: FreeBSD
Originally submitted by: Kestutis Paulikas <kestas@elen.ktu.lt>
PR 44268
Joerg Sonnenberger [Sat, 28 Aug 2004 15:08:02 +0000 (15:08 +0000)]
Add support for Nforce onboard ethernet. This is the content of
net/nvnet.
Wrapper-written-by: Quinton Dolon
In-correspondenc-with: Nick Triantos (NVidia)
Jeroen Ruigrok/asmodai [Sat, 28 Aug 2004 14:15:18 +0000 (14:15 +0000)]
Change rcvar from "mixer" to `set_rcvar`.
This allows mixer to be properly started when doing:
# /etc/rc.d/mixer start
Matthew Dillon [Sat, 28 Aug 2004 07:27:02 +0000 (07:27 +0000)]
TCPS_CLOSED is no longer 0 in DragonFly. Because ipfilter was assuming
that TCPS_CLOSED was 0, the tcp keep state table was never properly
initialized and ipfilter considered most tcp packets to be bad. Change
ip_state.c to properly initialize the starting state for new tcp keep
state entries.
Problems reported by: Toma<9E> Bor<9A>tna <tomaz.borstnar@over.net>,
Bernhard Valenti <bernhard.valenti@gmx.net>,
Peter Kadau <peter.kadau@tuebingen.mpg.de>
Jeroen Ruigrok/asmodai [Fri, 27 Aug 2004 21:55:16 +0000 (21:55 +0000)]
Rework the wording in a different way. For send() and sendto() change
msg in the argument list to msgbuf and note in the text that this is,
surprise, a pointer to a buffer holding the message.
This should be more self-describing and less confusing with the msg mention
in sendmsg, which is a totally different thing.
Discussed with: eirikn
Jeroen Ruigrok/asmodai [Fri, 27 Aug 2004 21:27:41 +0000 (21:27 +0000)]
Remove a redundant call to gettimeofday().
Noticed by: eirikn
Jeroen Ruigrok/asmodai [Fri, 27 Aug 2004 21:23:32 +0000 (21:23 +0000)]
Clarify the 's' and 'msg' arguments and note how send() and sendto()'s msg
argument is different from sendmsg()'s. (Even though it later in
uipc_syscalls.c gets reintegrated.)
Jeroen Ruigrok/asmodai [Fri, 27 Aug 2004 18:30:37 +0000 (18:30 +0000)]
Add a commented out STRIP variable to show people how to make sure installed
files keep their debugging symbols.
Jeroen Ruigrok/asmodai [Fri, 27 Aug 2004 18:07:49 +0000 (18:07 +0000)]
Add a temporary hack to avoid the local files to be picked up.
Joerg Sonnenberger [Fri, 27 Aug 2004 12:08:41 +0000 (12:08 +0000)]
Fix linker set creation for GCC 3.4 with -funit-at-a-time.
GCC 3.4 optimizes away global statics, which are referenced. Define a new
macro __used, which expands to attribute((used)) and tells the compiler that
a certain static indead referenced. For older versions and other compilers
it defaults to the meaning of __unused to avoid warnings.
Matthew Dillon [Thu, 26 Aug 2004 21:21:46 +0000 (21:21 +0000)]
Bring in FreeBSD/1.218.
>date: 2004/05/11 19:14:44; author: maxim; state: Exp; lines: +1 -1
>o Calculate a number of bytes to copy (cnt) correctly:
>
> +----+-+-+-+-+----+----+- - - - - - - - - - - - -+----+
> | | |C| | | | | | |
> | IP |N|O|L|P| | IP | | IP |
> | #1 |O|D|E|T| | #2 | | #n |
> | |P|E|N|R| | | | |
> +----+-+-+-+-+----+----+- - - - - - - - - - - - -+----+
> ^ ^<---- cnt - (IPOPT_MINOFF - 1) ---->|
> | |
>src | +-- cp[IPOPT_OFF + 1] + sizeof(struct in_addr)
> |
>dst +-- cp[IPOPT_OFF + 1]
>
>PR: kern/66386
>Submitted by: Andrei Iltchenko
Matthew Dillon [Thu, 26 Aug 2004 20:59:07 +0000 (20:59 +0000)]
Bring in FreeBSD/1.214 - UC Regent's advertising clause removal per
per letter dated July 22, 1999 (see /usr/src/COPYRIGHT).
Matthew Dillon [Thu, 26 Aug 2004 20:57:02 +0000 (20:57 +0000)]
Merge FreeBSD/1.212 and FreeBSD/1.213. These only appear to have an
effect when multi-cast routing is enabled.
Suggested-by: David Rhodus <sdrhodus@gmail.com>
1.213:
>date: 2004/04/07 10:01:38; author: ru; state: Exp; lines: +8 -8
>Fixed a bug in previous revision: compute the payload checksum before
>we convert ip_len into a network byte order; in_delayed_cksum() still
>expects it in host byte order.
>
>The symtom was the ``in_cksum_skip: out of data by %d'' complaints
>from the kernel.
>
>To add to the previous commit log. These fixes make tcpdump(1) happy
>by not complaining about UDP/TCP checksum being bad for looped back
>IP multicast when multicast router is deactivated.
>Reported by: Vsevolod Lobko
1.212:
>date: 2004/03/25 08:46:27; author: ru; state: Exp; lines: +3 -13
>Untangle IP multicast routing interaction with delayed payload checksums.
>
>Compute the payload checksum for a locally originated IP multicast where
>God intended, in ip_mloopback(), rather than doing it in ip_output() and
>only when multicast router is active. This is more correct as we do not
>fool ip_input() that the packet has the correct payload checksum when in
>fact it does not (when multicast router is inactive). This is also more
>efficient if we don't join the multicast group we send to, thus allowing
>the hardware to checksum the payload.
Matthew Dillon [Thu, 26 Aug 2004 20:32:00 +0000 (20:32 +0000)]
Turn off the getty on ttyd0 by default to avoid certain machines from
crashing.
Chris Pressey [Wed, 25 Aug 2004 22:53:07 +0000 (22:53 +0000)]
Correct an inaccurate statement. According to my testing, cpdup never
crosses mountpoints in either the source or the destination.
Matthew Dillon [Wed, 25 Aug 2004 19:14:40 +0000 (19:14 +0000)]
VFS messaging/interfacing work stage 3/99: Bring in the journaling
(and other) facilities infrastructure. This is not yet operational and
will probably change, but is being brought in now to serve as a foil to
ensure that the namespace and range locking work is properly integrated with
the intended journaling and cache coherency infrastructure.
This commit also reserves some space in the vop_ops args structures to
reduce pain later on.
Since no flags are yet set in vop_ops this commit should not result in
any operational changes.
Matthew Dillon [Wed, 25 Aug 2004 19:02:42 +0000 (19:02 +0000)]
Get rid of dfly/fbsd4/fbsd5 checks for the ntohl() return type. We are
now compatible with fbsd5. This fixes a compile warning.
Matthew Dillon [Wed, 25 Aug 2004 16:07:18 +0000 (16:07 +0000)]
Correct a mistake in the last commit that caused usage() to seg-fault,
and document -j in the manual page options summary.
Submitted-by: Maxim Konovalov
Chris Pressey [Wed, 25 Aug 2004 03:12:14 +0000 (03:12 +0000)]
Update installer packages to 1.1.1, fixing a couple of minor bugs:
ability to install bootblocks on an unformatted disk drive, and
ability to install /usr as a plain directory in the / partition.
Matthew Dillon [Wed, 25 Aug 2004 01:56:49 +0000 (01:56 +0000)]
Output an error message if the open fails.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:53:39 +0000 (01:53 +0000)]
Cleanup various type-o's in comments.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:43:43 +0000 (01:43 +0000)]
Minor cleanups. Document -j in usage.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:42:26 +0000 (01:42 +0000)]
Check for a mkstemps() failure, generate a proper warning if the fopen()
fails.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:40:23 +0000 (01:40 +0000)]
Document the unorthordox use of getopt().
Matthew Dillon [Wed, 25 Aug 2004 01:38:50 +0000 (01:38 +0000)]
Minor cleanups. Also, change various exit(10) codes to exit(1).
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:23:15 +0000 (01:23 +0000)]
Minor cleanups.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:15:38 +0000 (01:15 +0000)]
Minor cleanups.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:05:29 +0000 (01:05 +0000)]
Minor cleanups, no operational changes other then to add an error message if
fdopen() fails.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 00:05:11 +0000 (00:05 +0000)]
doingdirectory is really a boolean, use an int rather then ino_t and cast
it properly for the one case where it needs to be cast. Document the special
case. Cast -1 to (daddr_t) when checking for daddr_t special cases.
Matthew Dillon [Tue, 24 Aug 2004 21:55:47 +0000 (21:55 +0000)]
M_EXT_CLUSTER was not being properly inherited in m_copym(), m_copypacket(),
and m_split(), resulting in potentially unnecessary extra copying.
Matthew Dillon [Tue, 24 Aug 2004 21:53:41 +0000 (21:53 +0000)]
Fix a SFBUF memory leak in sendfile(). We were not properly tracking
references which would lead to SFBUFs not getting freed when two or more
sendfile()'s are operating on the same file at the same time (e.g. parallel
ftp downloads of the same file).
Get rid of the sf_buf->aux1 and aux2 hacks for sendfile.
Add a sysctl to allow the number of free SFBUFs to be monitored.
Matthew Dillon [Tue, 24 Aug 2004 21:16:14 +0000 (21:16 +0000)]
The VFS work has made vnode_if.awk obsolete.