]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make kttcp work in -stable (and -current)
authorAndrew Gallatin <gallatin@FreeBSD.org>
Mon, 13 Dec 2004 20:40:16 +0000 (20:40 +0000)
committerAndrew Gallatin <gallatin@FreeBSD.org>
Mon, 13 Dec 2004 20:40:16 +0000 (20:40 +0000)
commitaee409b9872bee0ba8b0f1ab3c0f9e32310c8f34
tree421740bf8d6146e80adf8e3f79f6773d49380f99
parentfe10ebf1f46b3615509ac10f1543530cc0c4d436
Make kttcp work in -stable (and -current)

- Removed kttcp_sosend() and kttcp_soreceive() in favor of using
  sosend() / soreceive() with UIO_NOCOPY.  The locking changes in the
  socket layer make merging the kttcp_so* and the so* routines a real
  pain.  It was a lot easier to just use the integrated routines.

- Eliminated KTTCP_MAX_XMIT restrictions on send and receive sizes
  because I encountered no problems with streams larger than MAX_INT.
  MAX_INT bytes is only good for a few seconds at 4Gb/sec ;)

- Removed Giant from send / recv routines.

- Fixed character device protos, cdevsw init, etc, to work in 5.x /
  6.x

Reviewed by: sam
MFC after: 1 week
tools/tools/kttcp/kttcp.c
tools/tools/kttcp/sys/kttcp.c