summaryrefslogtreecommitdiff
path: root/net/brutecopy/files/patch-client
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-01-15 17:23:23 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-01-15 17:23:23 +0000
commit1454562dccd1db7545176abac991aa1187a5f1ef (patch)
tree6fa1c867e9df7244cf148b15ffafdfb52270571a /net/brutecopy/files/patch-client
parentDon't enable SSE code if sysctl hw.instruction_sse is 0. (diff)
Add brutecopy, an application that pushes data using UDP protocol through rotten,
overloaded and otherwise disgusting lines. It should work well even on lines on which TCP completely chokes. The transmission is performed at user-preprogrammed fixed data rate with no flow control, only with lost-packet retransmits. Brutalcopy always transfers the file without error, even on erroneous lines. It uses a CRC-32 checksum algorithm together with the checksum in the UDP packets. PR: ports/76239 Submitted by: Radim Kolar <hsn@netmag.cz>
Notes
Notes: svn path=/head/; revision=126508
Diffstat (limited to 'net/brutecopy/files/patch-client')
-rw-r--r--net/brutecopy/files/patch-client54
1 files changed, 54 insertions, 0 deletions
diff --git a/net/brutecopy/files/patch-client b/net/brutecopy/files/patch-client
new file mode 100644
index 000000000000..19dff38ec99c
--- /dev/null
+++ b/net/brutecopy/files/patch-client
@@ -0,0 +1,54 @@
+--- bcpc.c.orig Sat Dec 29 15:03:13 2001
++++ bcpc.c Tue Jan 11 18:49:25 2005
+@@ -80,24 +80,23 @@
+ void
+ print_help(void)
+ {
+- fprintf(stderr,"bcpc -- a Brutalcopy client half
+-Brutalcopy (c) 2000 Karel Kulhavy, Clocksoft
+-
+-Brutalcopy is a program for transferring rather large files by means of UDP
+-protocol in order to bypass TCP tendency to screw up on bad lines. Brutalcopy is
+-based on manual flow control.
+-
+-Usage: bcpc -l <server hostname> -p <server port> [-h] [-i
+-<filename>] [-s <payload_size>] [-r <sot_retransmit_time>] [-b <bytes_per_sec>]
+-
+--l <server> DNS name or IP address (in dot notation) of the server.
+--p <dist_port> Port must be some high number (>=1024). Default is 1235.
+--h Prints out help and ends.
+--i <filename> File to dump the received data from. Default is bcp.dat.
+--s <payload> Number of bytes as a data payload in a single packet.
+--r <srt> Number of microsecond after which is SOT retransmitted.
+--b <Bps> Bytes of payload per second
+-");
++ fprintf(stderr,"bcpc -- a Brutalcopy client half\n"
++"Brutalcopy (c) 2000 Karel Kulhavy, Clocksoft\n"
++"\n"
++"Brutalcopy is a program for transferring rather large files by means of UDP\n"
++"protocol in order to bypass TCP tendency to screw up on bad lines. Brutalcopy is\n"
++"based on manual flow control.\n"
++"\n"
++"Usage: bcpc -l <server hostname> -p <server port> [-h] [-i\n"
++"<filename>] [-s <payload_size>] [-r <sot_retransmit_time>] [-b <bytes_per_sec>]\n"
++"-l <server> DNS name or IP address (in dot notation) of the server.\n"
++"-p <dist_port> Port must be some high number (>=1024). Default is 1235.\n"
++"-h Prints out help and ends.\n"
++"-i <filename> File to dump the received data from. Default is bcp.dat.\n"
++"-s <payload> Number of bytes as a data payload in a single packet.\n"
++"-r <srt> Number of microsecond after which is SOT retransmitted.\n"
++"-b <Bps> Bytes of payload per second\n"
++"\n");
+ }
+
+ void
+@@ -289,8 +288,7 @@
+
+ if (n>=n_packets)
+ {
+- fprintf(stderr,"Invalid packet seq# of %u from %lu came! It means data are
+-corrupted. Quitting immediately.\n",n,n_packets);
++ fprintf(stderr,"Invalid packet seq# of %u from %lu came! It means data are\ncorrupted. Quitting immediately.\n",n,n_packets);
+ die();
+ }
+ if ((bitmap[byte]>>bit)&1) return;