FACT++  1.0
DIC_BAD_CONNECTION* locate_bad ( char *  node,
char *  task,
int  port 
)

Definition at line 1226 of file dic.c.

References Bad_connection_head, bad_conn::conn, dll_get_next(), DIC_CONNECTION::node_name, DIC_CONNECTION::port, and DIC_CONNECTION::task_name.

Referenced by handle_dns_info().

1227 {
1228  DIC_BAD_CONNECTION *bad_connp;
1229 
1230  if(!Bad_connection_head)
1231  return((DIC_BAD_CONNECTION *)0);
1232  bad_connp = Bad_connection_head;
1233  while( (bad_connp = (DIC_BAD_CONNECTION *) dll_get_next(
1235  (DLL *) bad_connp)) )
1236  {
1237  if((!strcmp(bad_connp->conn.node_name, node)) &&
1238  (!strcmp(bad_connp->conn.task_name, task)) &&
1239  (bad_connp->conn.port == port) )
1240  return(bad_connp);
1241  }
1242  return((DIC_BAD_CONNECTION *)0);
1243 }
Definition: dns.c:26
static DIC_BAD_CONNECTION * Bad_connection_head
Definition: dic.c:44
Definition: dim.h:530
int port
Definition: dim.h:422
char node_name[MAX_NODE_NAME]
Definition: dim.h:420
Definition: dic.c:33
DIC_CONNECTION conn
Definition: dic.c:36
DLL * dll_get_next(DLL *head, DLL *item)
Definition: dll.c:66
char task_name[MAX_TASK_NAME]
Definition: dim.h:421

+ Here is the call graph for this function:

+ Here is the caller graph for this function: