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.3 by pcg, Mon Mar 17 15:23:15 2003 UTC vs.
Revision 1.5 by pcg, Sat Mar 22 02:35:57 2003 UTC

26 26
27#define RSA_KEYBITS 1280 // must be >= 1280 and divisible by 8 27#define RSA_KEYBITS 1280 // must be >= 1280 and divisible by 8
28#define RSA_KEYLEN ((RSA_KEYBITS) >> 3) 28#define RSA_KEYLEN ((RSA_KEYBITS) >> 3)
29#define RSA_OVERHEAD (41 + 1) // well, no define for OAEP 29#define RSA_OVERHEAD (41 + 1) // well, no define for OAEP
30 30
31#define CHALLENGE_TTL 30 // challenge bytes timeout after 30 seconds 31#define CHALLENGE_TTL 30 // challenge bytes timeout after n seconds
32 32
33#define CIPHER ENABLE_CIPHER () 33#define CIPHER ENABLE_CIPHER ()
34#define CIPHER_KEYLEN (EVP_CIPHER_key_length (CIPHER)) 34#define CIPHER_KEYLEN (EVP_CIPHER_key_length (CIPHER))
35#define DIGEST ENABLE_DIGEST () 35#define DIGEST ENABLE_DIGEST ()
36#define HMAC_KEYLEN (256 >> 3) // number of bits used for the HMAC key (also change CHG_HMAC_KEY) 36#define HMAC_KEYLEN (256 >> 3) // number of bits used for the HMAC key (also change CHG_HMAC_KEY)
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 512 // sliding window size
57 55
58extern char *confbase; // directory in which all config files are 56extern char *confbase; // directory in which all config files are
59extern char *thisnode; // config for current node (TODO: remove) 57extern char *thisnode; // config for current node (TODO: remove)
60extern char *pidfilename; // pid file location 58extern char *pidfilename; // pid file location
61 59
62extern time_t now; // globale now variable
63
64#endif 60#endif
65 61

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines