Changeset 14403 for trunk/FACT++/dim/src
- Timestamp:
- 08/21/12 21:44:43 (12 years ago)
- Location:
- trunk/FACT++/dim/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/dns.c
r14286 r14403 525 525 { 526 526 strncpy(Dns_conns[conn_id].long_task_name, packet->services[i].service_name, 527 MAX_ TASK_NAME*10);527 MAX_NAME); 528 528 ptrt = strstr(Dns_conns[conn_id].long_task_name,"/CLIENT_LIST"); 529 529 *ptrt = '\0'; … … 1570 1570 int type; 1571 1571 1572 if(tag){} 1572 1573 if(size) 1573 1574 { -
trunk/FACT++/dim/src/open_dns.c
r11071 r14403 146 146 } 147 147 148 void rand_tmout_init() 149 { 150 char pid_str[MAX_TASK_NAME]; 151 int ip, pid; 152 extern int get_node_addr(); 153 extern int get_proc_name(); 154 155 get_node_addr((char *)&ip); 156 get_proc_name(pid_str); 157 sscanf(pid_str,"%d",&pid); 158 srand(ip+pid); 159 } 160 148 161 int rand_tmout( int min, int max ) 149 162 { … … 174 187 DNS_ids[SRC_DIS] = (DNS_CONN *)sid; 175 188 DNS_ids[SRC_DIC] = (DNS_CONN *)cid; 189 rand_tmout_init(); 176 190 } 177 191 ENABLE_AST
Note:
See TracChangeset
for help on using the changeset viewer.