--- gvpe/src/global.h 2003/10/16 02:41:21 1.15 +++ gvpe/src/global.h 2004/02/09 00:47:15 1.17 @@ -1,6 +1,6 @@ /* global.h -- global variables and constants - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003-2004 Marc Lehmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -58,8 +58,8 @@ #define IP_OVERHEAD 20 // size of a (normal) ip header #define GRE_OVERHEAD (IP_OVERHEAD + 4) #define ICMP_OVERHEAD (IP_OVERHEAD + 4) -#define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header -#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + pakcetlength +#define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header (wrong, but don't care) +#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + packetlength #define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count) #define ETH_OVERHEAD 14 // the size of an ethernet header #define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares