Commit Graph

98524 Commits

Author SHA1 Message Date
yar
7e2d68f5cb As I've been pointed out by Andrew Gallatin, there are some
network interface cards smart (or twisted?) enough to be able
to calculate a TCP/UDP checksum for a packet fragmented by the
host CPU.  Therefore the paragraph on the case has been revised.
2004-01-21 23:32:50 +00:00
jhb
5690dee266 If a transfer to or from a floppy disk crosses a 64k boundary, we have to
use a bounce buffer for the actual transfer to avoid crossing a 64k
boundary.  To do this, we malloc a buffer twice as big as we need and then
find an aligned block within that buffer to do the transfer.  The check
to see which part of the block we use used the wrong variable for part of
the condition meaning that in certain edge cases we would ask the BIOS to
cross a 64k boundary.  The BIOS request would then fail resulting in file
transfers that just magically fail in the middle without any apparent
reason.  Specifically, my tests for the splitfs boot floppies managed to
trigger this edge case.

MFC after:	1 week
X-MFC-info:	along with fixes to libstand filesystems
2004-01-21 23:22:29 +00:00
wpaul
dda01dfaf8 Fix multicast and promiscuous mode handling for Yukon devices.
Submitted by:	Jung-uk Kim <jkim@niksun.com>
2004-01-21 22:32:15 +00:00
wpaul
305d902977 Calculate the right register offset when clearing TX buffer pointer
registers in rl_stop().

PR:		kern/60250
2004-01-21 22:29:51 +00:00
brooks
64e6eeb6c4 Use the length of the interface name, not the length of its address when
printing the name.

Approved by:	brian
2004-01-21 22:00:50 +00:00
sos
7b3d7d7361 Cosmetics 2004-01-21 21:31:19 +00:00
wpaul
d5408ce76d Add structures and definitions for task offload (TCP/IP checksum,
IPSec, TCP large send).
2004-01-21 21:09:09 +00:00
phk
03ff7a46df Add a sysctl (default: off) which enables a log(LOG_INFO...) warning
if the clock is stepped.
2004-01-21 21:05:40 +00:00
jhb
fffc52fe7a Clean up error handling in libstand filesystem code to be more consistent:
- bzipfs and gzipfs now properly return errno values directly from their
  read routines rather than returning -1.
- missing errno values on error returns for the seek routines on almost
  all filesystems were added.
- fstat() now returns -1 if an error occurs rather than ignoring it.
- nfs's readdir() routine now reports valid errno values if an error or
  EOF occurs rather than EPERM  (It was just returning 0 for success and
  1 for failure).
- nullfs used the wrong semantics for every function besides close() and
  seek().  Getting it right for close() appears to be an accident at that.
- read() for buffered files no longer returns 0 (EOF) if an error occurs,
  but returns -1 instead.
2004-01-21 20:12:23 +00:00
phk
c6b7068a7d Simplify timing gymnastics a bit. 2004-01-21 19:20:57 +00:00
wpaul
8a1da553d8 Make sure to trap failures correctly in ndis_get_info() and ndis_set_info(). 2004-01-21 19:14:52 +00:00
phk
20a9d324fd Remove #ifdef for ancient source FreeBSD compat. 2004-01-21 19:02:02 +00:00
schweikh
7093abc987 DTRT, quote parens in an extended regular expression.
PR:	61668
Submitted by:	Oliver Eikemeier <eikemeier@fillmore-labs.com>
MFC after:	1 week
2004-01-21 18:57:45 +00:00
philip
4ae2b4828b Add my birthday.
Approved by: njl (mentor)
2004-01-21 18:11:46 +00:00
brooks
ef614cbb12 Don't leak softc's when destroying interfaces.
Init the softc list when loaded.

Noticed by:	Maurycy Pawlowski-Wieronski <maurycy at fouk dot org>
2004-01-21 18:05:38 +00:00
cperciva
b9ee343f9e Fix style(9) of my previous commit.
Noticed by: nate
Approved by: nate, rwatson (mentor)
2004-01-21 18:03:54 +00:00
schweikh
46bc081858 Revert previous commit, ru has ideas how to better document this
elsewhere.
2004-01-21 17:58:33 +00:00
rwatson
9929c2e385 Reduce gratuitous includes: don't include jail.h if it's not needed.
Presumably, at some point, you had to include jail.h if you included
proc.h, but that is no longer required.

Result of:	self injury involving adding something to struct prison
2004-01-21 17:10:47 +00:00
bmah
df7a12142e New errata: IPsec bugs. Source material for this errata note was...
Submitted by:	Bjoern A. Zeeb < bzeeb at Zabbadoz dot NeT >
2004-01-21 17:03:13 +00:00
cperciva
8e5ee9b0a9 Disable constant merging in isdnd and isdnmonitor. This is a "make my
life easier" patch: I doubt this will affect anyone else, but the FreeBSD
Update build code was getting very confused by this.

Approved by: rwatson (mentor)
PR: bin/61087
2004-01-21 16:49:05 +00:00
imp
096bd8d35a Theo de Raadt has brought to our attention that he wrote at least part
file and that he has not released it under a free license.  Until the
matter can be resolved, honor his claim and remove it.

PR: misc/61676
2004-01-21 16:44:49 +00:00
cperciva
f2970382f1 Allow devfs path rules to work on directories. Without this fix,
devfs rule add path fd unhide
is a no-op, while it should unhide the fd subdirectory.

Approved by: phk, rwatson (mentor)
PR: kern/60897
2004-01-21 16:43:29 +00:00
cperciva
4f19a2bf30 After setting a ruleset on a new devfs mount, apply it.
Approved by: phk, rwatson (mentor)
PR: bin/61047
2004-01-21 16:36:17 +00:00
nectar
de2beba6ff Merge security fix from vendor branch (revision 1.1.1.14). 2004-01-21 16:29:16 +00:00
nyan
501b235121 MFi386: revisions from 1.1116 to 1.1119.
Remove NEWCARD related devices.
2004-01-21 16:28:19 +00:00
nectar
cf29303145 This commit was generated by cvs2svn to compensate for changes in r124793,
which included commits to RCS files with non-trunk default branches.
2004-01-21 16:27:56 +00:00
nectar
0de1aa939e Incorporate two security fixes from later versions of CVS.
From the NEWS file of cvs 1.11.11:

  * pserver can no longer be configured to run as root via the
    $CVSROOT/CVSROOT/passwd file, so if your passwd file is
    compromised, it no longer leads directly to a root hack.  Attempts
    to root will also be logged via the syslog.

  * Malformed module requests could cause the CVS server to attempt
    to create directories and possibly files at the root of the
    filesystem holding the CVS repository.  Filesystem permissions
    usually prevent the creation of these misplaced directories, but
    nevertheless, the CVS server now rejects the malformed requests.

Obtained from:	ccvs.cvshome.org
2004-01-21 16:27:56 +00:00
cperciva
681fd029d8 Bring ps.1 up to date with changes in the past seven years:
* Remove mention of '>', 'A', and 'S' states
* Mention 'W' state.
* List 'J' state in the correct location.
* Sync with flags in sys/proc.h

Approved by: rwatson (mentor)
MFC after: 7 days
2004-01-21 16:25:36 +00:00
nyan
f36f9e2c2f Merged from sys/dev/sio/sio.c revision 1.418. 2004-01-21 16:12:29 +00:00
ume
e8cce017e5 Sync to pccarddevs 1.81. 2004-01-21 16:03:40 +00:00
ume
1bc38b5944 There is PANASONIC KXLC005 which has another product id. 2004-01-21 16:02:20 +00:00
ru
99b2a16826 This is Sparc64-only. 2004-01-21 14:06:25 +00:00
ru
df17c2eb88 This is i386-only. 2004-01-21 14:01:29 +00:00
ru
1612d3d95f Mark APM manpages as i386-only. 2004-01-21 13:38:17 +00:00
ru
ca1efbafd6 Mark this manpage as i386-only. 2004-01-21 13:24:38 +00:00
yar
a260fb7b00 A couple of minor clarifications. 2004-01-21 13:17:24 +00:00
ru
1a98c079f6 Create section 4 and 8 man subdirectories for all Tier 1 architectures. 2004-01-21 13:15:19 +00:00
ru
191360285e Removed unused {man,cat}9/i386. 2004-01-21 13:09:16 +00:00
des
5bed8122fd Replace home-grown dup2() implementation with actual dup2() calls. This
should slightly reduce the number of system calls in critical portions of
the shell, and select a more efficient path through the fdalloc code.

Reviewed by:	bde
2004-01-21 12:50:01 +00:00
yar
c939cff388 Add a description for the hardware-assisted checksumming
facilities based on http://people.freebsd.org/~jlemon/csum.txt
and my own observations.
2004-01-21 12:45:37 +00:00
cognet
34be712a35 Setting pccb->ccb_h.status to CAM_REQ_CMP one time is enough. 2004-01-21 10:49:42 +00:00
ru
098ec0a40f Use the reinstallkernel.debug target, now that we have it. 2004-01-21 08:24:44 +00:00
ru
c570f2fdc7 The gdbinit.${MACHINE_ARCH} script may not exist. 2004-01-21 08:23:46 +00:00
grehan
c947492259 Add syscons options and enable USB, since there is no conflict between
the OpenFirmware console and the syscons console when using a USB
keyboard.
2004-01-21 05:22:53 +00:00
grehan
ec57f3baf0 Add required GFB options as well as one for ofw/syscons. 2004-01-21 05:20:58 +00:00
grehan
0c13682a92 Add syscons files, and also generate a syscons font since Apple
SVGA adapters don't have one available in their ROMs.
2004-01-21 05:19:59 +00:00
grehan
5f3a308886 - Catch up with panic __LINE__/__FILE__ changes by moving panic calls
out of asm.
- remove some long-dead code from machdep.c
2004-01-21 05:18:08 +00:00
grehan
ad056eebb8 A syscons implementation using the 8-bit framebuffer set up by
OpenFirmware. Not at all optimized, but provides a PC-style
user-experience.

Tested on revA imac, B&W G3, 2k iBook, and G4 eMac.
2004-01-21 05:16:23 +00:00
grehan
6825bfd3e6 __powerpc__ conditional code for the syscons OpenFirmware/PPC framebuffer.
Took the opportunity to reduce

 __i386__ || __ia64__ || __amd64__ || __sparc64__ || __powerpc__

 to

 !__alpha__

reviewed by: gallatin
2004-01-21 05:08:51 +00:00
grehan
6edaeaeefa Include <stdlib.h> to get abort() prototype. 2004-01-21 05:04:25 +00:00