ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/global.h
(Generate patch)

Comparing gvpe/src/global.h (file contents):
Revision 1.16 by pcg, Sat Jan 17 01:18:36 2004 UTC vs.
Revision 1.17 by pcg, Mon Feb 9 00:47:15 2004 UTC

56// hdr seq len hmac MAC MAC 56// hdr seq len hmac MAC MAC
57#define VPE_OVERHEAD (4 + 4 + 4 + RAND_SIZE + HMACLENGTH - 6 - 6) 57#define VPE_OVERHEAD (4 + 4 + 4 + RAND_SIZE + HMACLENGTH - 6 - 6)
58#define IP_OVERHEAD 20 // size of a (normal) ip header 58#define IP_OVERHEAD 20 // size of a (normal) ip header
59#define GRE_OVERHEAD (IP_OVERHEAD + 4) 59#define GRE_OVERHEAD (IP_OVERHEAD + 4)
60#define ICMP_OVERHEAD (IP_OVERHEAD + 4) 60#define ICMP_OVERHEAD (IP_OVERHEAD + 4)
61#define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header 61#define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header (wrong, but don't care)
62#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + pakcetlength 62#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + packetlength
63#define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count) 63#define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count)
64#define ETH_OVERHEAD 14 // the size of an ethernet header 64#define ETH_OVERHEAD 14 // the size of an ethernet header
65#define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares 65#define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares
66 66
67#define PKTCACHESIZE 5 // the size of the memory pool for packets 67#define PKTCACHESIZE 5 // the size of the memory pool for packets

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines