… | |
… | |
45 | #define VPE_OVERHEAD (4 + 4 + 4 + RAND_SIZE + HMACLENGTH - 6 - 6) |
45 | #define VPE_OVERHEAD (4 + 4 + 4 + RAND_SIZE + HMACLENGTH - 6 - 6) |
46 | #define UDP_OVERHEAD 40 // size of a (normal) ip + udp header |
46 | #define UDP_OVERHEAD 40 // size of a (normal) ip + udp header |
47 | #define ETH_OVERHEAD 14 // the size of an ethernet header |
47 | #define ETH_OVERHEAD 14 // the size of an ethernet header |
48 | #define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares |
48 | #define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares |
49 | |
49 | |
50 | #define TIMER_GRANULARITY 5 // check for events at least every 5 seconds |
|
|
51 | |
|
|
52 | #define PKTCACHESIZE 4 // the size of the memory pool for packets |
50 | #define PKTCACHESIZE 4 // the size of the memory pool for packets |
53 | |
51 | |
54 | #define QUEUEDEPTH 16 // the number of packets that will be queued (should be low) |
52 | #define QUEUEDEPTH 16 // the number of packets that will be queued (should be low) |
55 | |
53 | |
56 | #define WINDOWSIZE 1024 // sliding window size |
54 | #define WINDOWSIZE 1024 // sliding window size |
57 | |
55 | |
58 | extern char *confbase; // directory in which all config files are |
56 | extern char *confbase; // directory in which all config files are |
59 | extern char *thisnode; // config for current node (TODO: remove) |
57 | extern char *thisnode; // config for current node (TODO: remove) |
60 | extern char *pidfilename; // pid file location |
58 | extern char *pidfilename; // pid file location |
61 | |
59 | |
62 | extern time_t now; // globale now variable |
|
|
63 | |
|
|
64 | #endif |
60 | #endif |
65 | |
61 | |