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.15 by pcg, Thu Oct 16 02:41:21 2003 UTC vs.
Revision 1.18 by pcg, Fri Apr 2 14:42:45 2004 UTC

1/* 1/*
2 global.h -- global variables and constants 2 global.h -- global variables and constants
3 Copyright (C) 2003 Marc Lehmann <pcg@goof.com> 3 Copyright (C) 2003-2004 Marc Lehmann <pcg@goof.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
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
70 70
71#define WINDOWSIZE 512 // sliding window size 71#define WINDOWSIZE 512 // sliding window size
72 72
73extern char *confbase; // directory in which all config files are 73extern char *confbase; // directory in which all config files are
74extern char *thisnode; // config for current node (TODO: remove) 74extern char *thisnode; // config for current node (TODO: remove)
75extern char *pidfilename; // pid file location
76 75
77#endif 76#endif
78 77

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines