24 #define QSPN_WAIT_ROUND 32
27 #define QSPN_WAIT_ROUND_MS QSPN_WAIT_ROUND*1000
28 #define QSPN_WAIT_DELTA_MS 64
33 #undef QSPN_WAIT_ROUND
34 #define QSPN_WAIT_ROUND 8
38 #define QSPN_WAIT_ROUND_LVL(level) ((level)*(QSPN_WAIT_ROUND/2) + \
39 QSPN_WAIT_ROUND/((level)+1))
40 #define QSPN_WAIT_ROUND_MS_LVL(level) (QSPN_WAIT_ROUND_LVL(level)*1000)
43 #define QSPN_WAIT_DELTA_MS_LVL(level) ((level)*(QSPN_WAIT_DELTA_MS/2) + \
44 2*QSPN_WAIT_DELTA_MS*(level) + QSPN_WAIT_DELTA_MS)
69 #define GCOUNT_LEVELS (MAX_LEVELS-ZERO_LEVEL+UNITY_LEVEL)
107 void qspn_new_round(u_char level,
int new_qspn_id, u_int new_qspn_time);
void update_qspn_time(u_char level, u_int new_qspn_time)
Definition: qspn.c:267
int qspn_b_find_reply(struct qspn_buffer *qb, int sub_id)
Definition: qspn.c:175
int qspn_b_add(struct qspn_buffer *qb, u_char replier, u_short flags)
Definition: qspn.c:154
struct qspn_buffer * qspn_b_find_rnode(struct qspn_buffer *qb, map_node *rnode)
Definition: qspn.c:167
void qspn_b_clean(u_char level)
Definition: qspn.c:133
int qspn_b_del_dead_rnodes(struct qspn_buffer **qb, map_node *root_node)
Definition: qspn.c:193
int * qspn_send_mutex
Definition: qspn.h:67
int qspn_send(u_char level)
Definition: qspn.c:579
void qspn_reset_counters(u_char levels)
Definition: qspn.c:84
#define GCOUNT_LEVELS
Definition: qspn.h:69
u_int qspn_gnode_count[((14+(1+1))-1+1)]
Definition: qspn.h:75
int qspn_close(PACKET rpkt)
Definition: qspn.c:838
map_node * rnode
Definition: qspn.h:53
void qspn_backup_gcount(u_int *old_gcount, int *gcount)
Definition: qspn.c:360
void qspn_time_reset(int start_level, int end_level, int levels)
Definition: qspn.c:65
void qspn_reset(u_char levels)
Definition: qspn.c:92
void qspn_reset_gcount(u_int *gcount, int level, int value)
Definition: qspn.c:346
void qspn_inc_gcount(u_int *gcount, int level, int inc)
Definition: qspn.c:307
void qspn_new_round(u_char level, int new_qspn_id, u_int new_qspn_time)
Definition: qspn.c:478
void qspn_b_del_all_dead_rnodes(void)
Definition: qspn.c:211
int qspn_round_left(u_char level)
Definition: qspn.c:226
u_short * flags
Definition: qspn.h:57
u_int replies
Definition: qspn.h:54
#define LLIST_HDR(_struct)
Definition: llist.c:44
int flags
Definition: if.c:39
u_char * replier
Definition: qspn.h:56
void qspn_free(void)
Definition: qspn.c:121
u_int qspn_old_gcount[((14+(1+1))-1+1)]
Definition: qspn.h:78
void qspn_set_map_vars(u_char level, map_node **map, map_node **root_node, int *root_node_pos, map_gnode **gmap)
Definition: qspn.c:38
int qspn_open(PACKET rpkt)
Definition: qspn.c:1089
struct qspn_buffer ** qspn_b
Definition: qspn.h:65
void qspn_init(u_char levels)
Definition: qspn.c:101
void qspn_dec_gcount(u_int *gcount, int level, int dec)
Definition: qspn.c:327