help
Benchmarking tool for determining TCP and UDP performance.
- ftp://ftp.sunet.se/pub/network/monitoring/ttcp/
+ ftp://ftp.sgi.com/sgi/src/ttcp/README
--- /dev/null
+Replace deprecated bcopy call by using memmove instead.
+
+Index: b/ttcp.c
+===================================================================
+--- a/ttcp.c
++++ b/ttcp.c
+@@ -241,7 +241,7 @@
+ if ((addr=gethostbyname(host)) == NULL)
+ err("bad hostname");
+ sinhim.sin_family = addr->h_addrtype;
+- bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length);
++ memmove((char*)&addr_tmp, addr->h_addr, addr->h_length);
+ #if defined(cray)
+ sinhim.sin_addr = addr_tmp;
+ #else
+++ /dev/null
-diff -urN ttcp-0rig/ttcp.c ttcp/ttcp.c
---- ttcp-0rig/ttcp.c 1993-05-17 00:00:00.000000000 +0200
-+++ ttcp/ttcp.c 2009-01-14 23:46:19.000000000 +0100
-@@ -241,7 +241,7 @@
- if ((addr=gethostbyname(host)) == NULL)
- err("bad hostname");
- sinhim.sin_family = addr->h_addrtype;
-- bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length);
-+ memmove((char*)&addr_tmp, addr->h_addr, addr->h_length);
- #if defined(cray)
- sinhim.sin_addr = addr_tmp;
- #else
#
################################################################################
-#
-TTCP_VERSION =
-TTCP_SITE = http://ftp.sunet.se/pub/network/monitoring/ttcp
+TTCP_VERSION = 1.12
+TTCP_SITE = ftp://ftp.sgi.com/sgi/src/ttcp/
TTCP_SOURCE = ttcp.c
TTCP_LICENSE = public domain