30 #define MAXGROUPNODE 20
33 #define MAXLINKS MAXROUTES
37 #define MAP_VOID (1<<1)
38 #define MAP_HNODE (1<<2)
40 #define MAP_BNODE (1<<3)
44 #define MAP_ERNODE (1<<4)
45 #define MAP_GNODE (1<<5)
46 #define MAP_RNODE (1<<6)
47 #define MAP_UPDATE (1<<7)
49 #define QSPN_CLOSED (1<<8)
51 #define QSPN_OPENED (1<<9)
52 #define QSPN_OLD (1<<10)
56 #define QSPN_STARTER (1<<11)
58 #define QSPN_OPENER (1<<12)
60 #define QSPN_BACKPRO (1<<13)
83 { 0,
sizeof(int),
sizeof(
int)*2 },
86 #define MAP_RNODE_PACK_SZ (sizeof(int *)+sizeof(u_int)*2)
89 { 0,
sizeof(short),
sizeof(
short)+
sizeof(int) },
93 #define MAP_NODE_PACK_SZ (sizeof(u_short)*2 + sizeof(u_int))
95 #define MAXRNODEBLOCK (MAXLINKS * MAXGROUPNODE * sizeof(map_rnode))
96 #define MAXRNODEBLOCK_PACK_SZ (MAXLINKS * MAXGROUPNODE * MAP_RNODE_PACK_SZ)
97 #define INTMAP_END(mapstart) ((sizeof(map_node)*MAXGROUPNODE)+(mapstart))
107 {
sizeof(char),
sizeof(
char)+
sizeof(size_t) },
110 #define INT_MAP_BLOCK_SZ(int_map_sz, rblock_sz) (sizeof(struct int_map_hdr)+(int_map_sz)+(rblock_sz))
147 #define OP_REQUEST 82
148 #define OP_CLOSE OP_REQUEST
151 #define OP_BACKPRO 66
178 void thread_joint(
int joint,
void * (*start_routine)(
void *),
void *nopt);
179 void gen_rnd_map(
int start_node,
int back_link,
int back_link_rtt);
u_int flags
Definition: qspn-empiric.h:74
short rt_stat[20][20]
Definition: qspn-empiric.h:143
int q_id
Definition: qspn-empiric.h:127
size_t rblock_sz
Definition: map.h:153
void print_data(char *file)
Definition: qspn-empiric.c:1082
void * send_qspn_pkt(void *argv)
Definition: qspn-empiric.c:847
int qspn_replies
Definition: qspn-empiric.h:136
struct qspn_queue * qspn_q[20]
INT_INFO map_node_iinfo
Definition: qspn-empiric.h:87
INT_INFO int_map_hdr_iinfo
Definition: qspn-empiric.h:105
struct qstat gbl_stat
Definition: qspn-empiric.h:141
int join
Definition: qspn-empiric.h:175
void thread_joint(int joint, void *(*start_routine)(void *), void *nopt)
Definition: qspn-empiric.c:519
int q_sub_id
Definition: qspn-empiric.h:158
#define INT_TYPE_16BIT
Definition: endianness.h:36
size_t int_map_sz
Definition: map.h:152
Definition: qspn-empiric.h:125
short from
Definition: qspn-empiric.h:159
Definition: qspn-empiric.h:171
int total_pkts
Definition: qspn-empiric.h:134
char flags
Definition: qspn-empiric.h:163
int print_map(map_node *map, char *map_file)
Definition: qspn-empiric.c:1028
Definition: qspn-empiric.h:132
short to
Definition: qspn-empiric.h:160
int pkt_dbc[20]
Definition: qspn-empiric.h:169
int broadcast
Definition: qspn-empiric.h:161
int total_threads
Definition: qspn-empiric.h:119
int sleep
Definition: qspn-empiric.h:174
Definition: qspn-empiric.h:155
INT_INFO map_rnode_iinfo
Definition: qspn-empiric.h:81
char op
Definition: qspn-empiric.h:162
struct int_map_hdr _PACKED_
map_node * int_map
Definition: qspn-empiric.h:122
u_short flags
Definition: qspn-empiric.h:64
int disable_joint
Definition: qspn-empiric.h:119
#define MAXGROUPNODE
Definition: qspn-empiric.h:30
int time_stat
Definition: qspn-empiric.h:140
void * send_qspn_reply(void *argv)
Definition: qspn-empiric.c:728
struct q_pkt q
Definition: qspn-empiric.h:173
#define INT_INFO
Definition: endianness.h:90
int qspn_backpro
Definition: qspn-empiric.h:137
int qspn_requests
Definition: qspn-empiric.h:135
u_short replier[20]
Definition: qspn-empiric.h:128
struct qstat node_stat[20]
Definition: qspn-empiric.h:142
void gen_rnd_map(int start_node, int back_link, int back_link_rtt)
Definition: qspn-empiric.c:552
struct q_pkt ** pkt_db[20]
Definition: qspn-empiric.h:168
u_short flags[20]
Definition: qspn-empiric.h:129
short rt_total[20]
Definition: qspn-empiric.h:144
void * send_qspn_backpro(void *argv)
Definition: qspn-empiric.c:680
#define INT_TYPE_32BIT
Definition: endianness.h:35
pthread_mutex_t mutex[20]
Definition: qspn-empiric.h:118
int store_tracer_pkt(struct q_opt *qopt)
Definition: qspn-empiric.c:646
short routes
Definition: qspn-empiric.h:165
short * tracer
Definition: qspn-empiric.h:164
u_char root_node
Definition: map.h:151
int q_id
Definition: qspn-empiric.h:157
void * show_temp_stat(void *)
Definition: qspn-empiric.c:1014