--- gvpe/src/global.h 2003/03/26 01:58:46 1.6 +++ gvpe/src/global.h 2003/04/05 02:32:40 1.11 @@ -23,6 +23,12 @@ #include +/* Protocol version. Different major versions are incompatible, + * different minor versions probably are compatible ;) + */ + +#define PROTOCOL_MAJOR 0 +#define PROTOCOL_MINOR 0 #define RSA_KEYBITS 1280 // must be >= 1280 and divisible by 8 #define RSA_KEYLEN ((RSA_KEYBITS) >> 3) @@ -30,6 +36,7 @@ #define RSA_HASH EVP_ripemd160 ()// speed don't matter, boy, safety does.. I need sha256 :( #define RSA_HASHLEN (160 >> 3) +#define RSA_RESLEN RSA_HASHLEN #define RSA_IDLEN 16 // how many bytes are used to identify the challenge #define RSA_TTL 20 // challenge bytes timeout after n seconds @@ -53,7 +60,7 @@ #define ETH_OVERHEAD 14 // the size of an ethernet header #define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares -#define PKTCACHESIZE 4 // the size of the memory pool for packets +#define PKTCACHESIZE 5 // the size of the memory pool for packets #define QUEUEDEPTH 16 // the number of packets that will be queued (should be low)