credit system
[cor_2_6_31.git] / net / cor / settings.h
blob9a7f6922ac011d62f8fd7f59592460f8dac806db
1 #define MAX_PACKETS_IN_RCVQUEUE 32
3 #define MAX_TOTAL_OOO_PACKETS 128
4 #define MAX_TOTAL_OOO_PER_NEIGH 32
5 #define MAX_TOTAL_OOO_PER_CONN 12
7 #define MAX_TOTAL_BUFFER_SIZE 256
9 #define MAX_CMSGS 1024
10 #define MAX_CMSGS_PER_NEIGH 64
11 #define GUARANTEED_CMSGS_PER_NEIGH 16
13 #define MAX_URGENT_CMSGS_PER_NEIGH 8
14 #define MAX_URGENT_CMSGS_PER_NEIGH_RETRANSALLOW 6
16 #define CMSG_INTERVAL_MS 100
18 #define ANNOUNCE_SEND_PACKETINTELVAL_MS 2000
20 #define PING_ALL_CONNS_TIMEOUT 5000
22 #define PING_COOKIES_PER_NEIGH 16
23 #define PING_COOKIES_NOTHROTTLE 3
24 #define PING_COOKIES_FIFO 5
25 #define PING_PONGLIMIT 2
26 #define PING_THROTTLE_LIMIT_MS 1000
27 #define PING_FORCETIME_MS 1000
28 #define PING_FORCETIME_ACTIVE_MS 5000
29 #define PING_FORCETIME_ACTIVEIDLE_MS 30000
31 #define INITIAL_TIME_MS 10000
32 #define PING_SUCCESS_CNT 10
34 #define NB_STALL_MINPINGS 10
35 #define NB_STALL_TIME_MS 10000
36 #define NB_KILL_TIME_MS 30000
38 #define CREDIT_REFRESHINTERVAL_SEC 30
39 /* time until half the credits are gone */
40 #define CREDIT_DECAYTIME_HOURS 600
42 #define BUFFERASSIGN_INIT 4194304
43 #define BUFFERASSIGN_SPEED 2097152
45 #define BUFFERSPACE_INIT 1048576
46 #define BUFFERSPACE_SPEED 1048576
47 #define BUFFERSPACE_ATA 1048576
48 #define BUFFERSPACE_RESERVE 1048576
50 #define MAX_ANNOUNCE_WINDOW 262144
52 #define BUFFERLIMIT_CONNDATA_GLOBAL 65536
53 #define BUFFERLIMIT_CONNDATA_PERCONN 4096
55 #define BUFFERLIMIT_SOCK_GLOBAL 262144
56 #define BUFFERLIMIT_SOCK_USER 131072
57 #define BUFFERLIMIT_SOCK_SOCK 65536