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.34 by root, Thu Jan 29 00:21:39 2015 UTC vs.
Revision 1.35 by root, Sat Sep 5 17:40:22 2015 UTC

111#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + packetlength 111#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + packetlength
112#define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count) 112#define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count)
113#define ETH_OVERHEAD 14 // the size of an ethernet header 113#define ETH_OVERHEAD 14 // the size of an ethernet header
114#define MAXSIZE (MAX_MTU + IP_OVERHEAD) // slightly too large, but who cares 114#define MAXSIZE (MAX_MTU + IP_OVERHEAD) // slightly too large, but who cares
115 115
116#define PKTCACHESIZE 16 // the size of the memory pool for packets 116#define PKTCACHESIZE 128 // the size of the memory pool for packets
117 117
118extern char *confbase; // directory in which all config files are 118extern char *confbase; // directory in which all config files are
119extern char *thisnode; // config for current node (TODO: remove) 119extern char *thisnode; // config for current node (TODO: remove)
120 120
121template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; } 121template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines