Commit Graph

29629 Commits

Author SHA1 Message Date
lukem
7da56091ad as inspired by a commit message of Todd Miller <millert@cvs.openbsd.org>:
* cleanup a bit for -Wall
* use __progname instead of "restore"
1997-07-06 08:51:28 +00:00
thorpej
e0acb98b94 Fix an old and obscure TCP bug, brought to my attention by Bill Fenner,
fixed in FreeBSD by John Polstra:

Fix a bug (apparently very old) that can cause a TCP connection to
be dropped when it has an unusual traffic pattern.  For full details
as well as a test case that demonstrates the failure, see the
referenced PR (FreeBSD's kern/3998).

   Under certain circumstances involving the persist state, it is
   possible for the receive side's tp->rcv_nxt to advance beyond its
   tp->rcv_adv.  This causes (tp->rcv_adv - tp->rcv_nxt) to become
   negative.  However, in the code affected by this fix, that difference
   was interpreted as an unsigned number by max().  Since it was
   negative, it was taken as a huge unsigned number.  The effect was
   to cause the receiver to believe that its receive window had negative
   size, thereby rejecting all received segments including ACKs.  As
   the test case shows, this led to fruitless retransmissions and
   eventually to a dropped connection.  Even connections using the
   loopback interface could be dropped.  The fix substitutes the signed
   imax() for the unsigned max() function.

Bill informs me that his research indicates this bug appeared in Reno.
1997-07-06 07:04:34 +00:00
thorpej
b19b36aff5 Restore original RCS IDs. 1997-07-06 05:29:13 +00:00
thorpej
7d072d8efa Add new ipfilter files. 1997-07-06 05:14:51 +00:00
thorpej
329a831bd5 Deal with a bogus warning from -Wuninitialized. 1997-07-06 05:14:08 +00:00
thorpej
0feb054b62 - Add a missing #ifdef SOLARIS
- Properly prototype ipfilterattach()/iplattach().
1997-07-06 05:13:40 +00:00
thorpej
c68633278f - Add a prototype for fixskip() so that this file compiles.
- Fix, ONCE AGAIN, semantics of ipfilterattach().  This time, not only
  was it semantically broken, it wasn't even close to compiling!
1997-07-06 05:13:00 +00:00
thorpej
3fb8ff16e8 The sheer number of #ifdef's around it should have been a hint that
#include <machine/mtpr.h> isn't something you're supposed to do in
NetBSD.
1997-07-06 05:11:28 +00:00
thorpej
ab01c534f6 Fix a bug caught by gcc: add parenthesis to properly group a test. 1997-07-06 05:10:41 +00:00
thorpej
7a42fa660c Update for new ip_auth.* files. (This should be done BEFORE running
it on a tree for import.)
1997-07-06 05:09:04 +00:00
thorpej
90c43e78e2 Import yet another missing piece of IPFilter 3.2beta1. 1997-07-06 05:02:26 +00:00
thorpej
5a85b0d9fa Import ip_auth.h from IPFilter 3.2beta1; this was missed during the
upgrade.
1997-07-06 04:58:52 +00:00
thorpej
3a3d0fcb0f Add new DDB and KGDB files. 1997-07-06 04:09:45 +00:00
christos
5accccd051 Fix problem introduced in yesterday's commit that broke both signed and
unsigned character machines. So that people don't have to reverse engineer
this again:
	mksyntax detects if characters are signed or not and builts a syntax
	table that has a base of 129 for signed characters or 1 for unsigned
	characters. This is so the largest negative signed char [-128] + the
	base == 1. 0 is special and means end of file in both cases. PEOF
	is -1 for the unsigned character case and -129 for the signed
	character case, so that syntax[PEOF + base] == syntax[0] == CEOF
	So PEOF has to be -1, but it is explicitly compared with
	unsigned characters on machines where characters are unsigned.
	The quick fix is to define UPEOF the (unsigned char) version of PEOF
	and use that. A better fix is to always use unsigned characters
	when referencing symbol table entries, but that would require
	extensive changes to the shell. So to summarize

	syntax[0] == CEOF, base + PEOF == 0

		unsigned	signed
	base	1		129
	PEOF	-1		-129
1997-07-05 21:25:09 +00:00
thorpej
55fdd1f6be Add a new line in a printf, for purely cosmetic reasons. 1997-07-05 20:58:30 +00:00
leo
cd3ee4b310 If booted with RB_ASKNAME, don't go looking for a root device. 1997-07-05 20:57:40 +00:00
thorpej
2252d1317b Add support for remote serial KGDB. 1997-07-05 20:52:40 +00:00
leo
a323500b0f Pull in latest Amiga bus/address error handling. 1997-07-05 20:50:41 +00:00
thorpej
15de91e26d Add a breakpoint() inline, used by DDB and KGDB. 1997-07-05 20:49:46 +00:00
thorpej
bbf08442c7 Define the ALTENTRY() macro here. 1997-07-05 20:49:19 +00:00
thorpej
bc831d9a96 Add glue for remote KGDB. 1997-07-05 20:48:12 +00:00
thorpej
9ae7db0945 Garbage-collect old KGDB glue. 1997-07-05 20:47:35 +00:00
thorpej
46222f0d29 Split the memory access functions out of db_interface.c, so that they can
be shared by DDB and KGDB.
1997-07-05 20:46:37 +00:00
thorpej
f796580395 Machine-dependent portions of remote serial KGDB, for NetBSD/i386. Based
on Matthias Pfaller's NetBSD/pc532 kgdb_machdep.c.
1997-07-05 20:44:57 +00:00
darrenr
7cf4820f1c these files are already found in /sys/netinet 1997-07-05 06:46:10 +00:00
darrenr
a7a52d12c8 fix conflicts from import 1997-07-05 05:52:39 +00:00
darrenr
729f0dc597 fix conflicts from import 1997-07-05 05:38:14 +00:00
darrenr
3c3c919d28 import 3.2beta1 IP Filter sources 1997-07-05 05:12:39 +00:00
pk
65daf28750 add ttymsg.0 & isofs/*.h 1997-07-04 22:33:48 +00:00
pk
b51e34014d /usr/sbin/installboot => /usr/mdec 1997-07-04 22:28:35 +00:00
pk
c7531c0573 State explicitly that an internal consistency check failed (PR#2660). 1997-07-04 22:15:41 +00:00
pk
90e6fb0581 NULL => 0 (from Arne Juul; addendum to PR#3237). 1997-07-04 21:54:06 +00:00
pk
67c9126d92 NULL => 0 (from Arne Juul; addendum to PR#3237) 1997-07-04 21:48:39 +00:00
christos
687f7852d9 Make the syntax tables work on machines where characters are unsigned. 1997-07-04 21:40:55 +00:00
christos
abc99479ba Fix compiler warnings. 1997-07-04 21:25:16 +00:00
christos
8ea378c6ac Rename err.h to errnum.h to avoid collision with err.h
Fix compiler warnings.
1997-07-04 21:23:50 +00:00
christos
cd799663e4 Fix compiler warnings. 1997-07-04 21:01:48 +00:00
christos
28f5c57bd5 Don't roll own rules to build helper programs.
Add WARNS
1997-07-04 21:00:36 +00:00
is
5171612d6c Multichannel output still doesn't work, but while working on it, I repaired
the double buffering code, and setting a couple of other parameters works now.
1997-07-04 21:00:15 +00:00
christos
cbf48b75c7 PR/3827: Wolfgang Rupprecht: cd ./. core dumps
Warning cleanups
1997-07-04 20:59:40 +00:00
is
e03fce55ed addql does set condition codes, so we are not allowed to put it in between
the andl and the jeq.
Mea maxima culpa.
1997-07-04 20:52:50 +00:00
drochner
8c0a9bab00 Don't cast 64bit (off_t) file sizes to vm_offset_t (32bit on many
architectures), truncate them intelligently instead.
The truncation is done centralized in vnode_pager.c.
This prevents from wrap-over effects when parts of large (>2^32 byte) files
are mmapped.
Don't allow to mmap above the numerical range of vm_offset_t.
This is considered a temporary solution until the vm system handles the
object sizes/offsets more cleanly.
1997-07-04 20:22:09 +00:00
drochner
aa015962db Since there is a "%qx" printf format, don't truncate to long for
debug output.
1997-07-04 19:22:48 +00:00
drochner
a8ac47dd1b Fix syntax error which appeared #ifdef DEBUG ("end[]").
Simplify the heap location stuff.
1997-07-04 18:47:25 +00:00
drochner
d9fbb6e1eb Catch errors from underlying reads, ie where oread() returns -1.
(Original code used fread() which never returns -1, so this case was
not handled.)
1997-07-04 18:45:11 +00:00
christos
599d8d864f Fix warnings. 1997-07-04 15:17:55 +00:00
ragge
59501e1879 Fix bug causing all uda's to be recognized as ctlr 1 from boot. 1997-07-04 13:26:02 +00:00
ragge
d7d40e44f6 Bugfix to mscp tape code; so that weof/eot works correctly. 1997-07-04 11:58:20 +00:00
drochner
41c3159f16 Emulate old bootblocks better: Use type of boot harddisk, extracted
from disklabel, as default.
(Pushed by Darren Reed <darrenr@cyber.com.au>:-)
1997-07-04 10:52:44 +00:00
kleink
8470989b67 Common sense dictates that the `basegid' paramater of initgroups(3) should
be of type gid_t, and not int.
1997-07-04 09:14:52 +00:00