/* File that contains some constants that all other files use */ #ifndef __CONSTANTS_H #define __CONSTANTS_H #define __FAVOR_BSD 1 #define FALSE 0 #define TRUE 1 #define IGNORE 2 /* Hash constants */ #define FOUND -2 #define NOT_FOUND -1 #define EMPTY 0 #define VALID 1 #define DELETED 2 #define FULL_ALERT_LF 0.9 #define CONN_TABLE_SIZE 10003 #define PACK_TABLE_SIZE 100003 /* Stale periods */ #define CONN_STALE 300 #define MAX_APPLICATIONS 20 #define MAX_NAME 40 #define MAX_REASON 300 #define NUM_REASON 14 #define MAX_MESSAGE 100000 #define LU_PERIOD 0.05 #define MAX_WIN 100 #define MAX_REC_QUEUE 100000 #define MAX_DELAY 100 #define MAX_T 2000 #define MAX_TS 2000 #define REPORT_INTERVAL 1 #define MAX_SLOTS 5000 #define MAX_DNS_REQ 100 #define MACHINE 0 #define HUMAN 1 #define MAX_DESTS 70000 #define MAX_TIME 10000 #endif