From f9d058498806c50deda704c754166c9118f7f8ec Mon Sep 17 00:00:00 2001 From: hsn <> Date: Thu, 17 Mar 2005 21:26:56 +0000 Subject: [PATCH] *** empty log message *** --- ChangeLog | 2 ++ doc/PROTOCOL | 1 + include/common_def.h | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0426491..ac19696 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ Version NEXT removed test for size of penis in configure.ac corrected misleading comment in client/lib.c + default packetsize changed to maximum 1500 mtu Ethernet + PROTOCOL: when computing checksum declare *t as unsigned char * type Version 2.8.1b24 - 19 Feb 2005 use getopt from stdio.h instead of getopt.h in fspscan.c diff --git a/doc/PROTOCOL b/doc/PROTOCOL index a43647b..e86d2e8 100644 --- a/doc/PROTOCOL +++ b/doc/PROTOCOL @@ -124,6 +124,7 @@ Checksums in server->client direction are computed as follows: /* assume that we have already zeroed checksum in packet */ unsigned int sum,checksum; + unsigned char *t; for(t = packet_start, sum = 0; t < packet_end; sum += *t++); checksum= sum + (sum >> 8); diff --git a/include/common_def.h b/include/common_def.h index fa6b818..a2a5fd2 100644 --- a/include/common_def.h +++ b/include/common_def.h @@ -54,7 +54,7 @@ #define UBUF_HSIZE 12 /* 12 bytes for the header */ #define UBUF_SPACE 1024 /* maximum standard payload. */ #define UBUF_MAXSPACE 4096 /* maximum payload supported by server */ -#define DEFAULT_SPACE 1370 /* Default packet size */ +#define DEFAULT_SPACE 1500-20-8-12 /* Max packet size for standard 1500 mtu ethernet */ #define NBSIZE (UBUF_MAXSPACE+UBUF_SPACE)