FACT++  1.0
DNS_CONN* find_dns ( char *  node_name,
int  port_number,
SRC_TYPES  src_type 
)

Definition at line 219 of file open_dns.c.

References dll_get_next(), DNS_conn_head, dns_ent::node_name, dns_ent::port_number, and dns_ent::src_type.

Referenced by dic_add_dns(), and dis_add_dns().

220 {
221  DNS_CONN *connp;
222 
223  connp = DNS_conn_head;
224  while( (connp = (DNS_CONN *)dll_get_next( (DLL *) DNS_conn_head,
225  (DLL*) connp)) )
226  {
227  if(connp->src_type == src_type)
228  {
229  if((!strcmp(connp->node_name, node_name)) &&
230  (connp->port_number == port_number))
231  return connp;
232  }
233  }
234  return (DNS_CONN *)0;
235 }
SRC_TYPES src_type
Definition: open_dns.c:33
Definition: dim.h:530
int port_number
Definition: open_dns.c:29
char node_name[MAX_DNS_NODE]
Definition: open_dns.c:27
DLL * dll_get_next(DLL *head, DLL *item)
Definition: dll.c:66
static DNS_CONN * DNS_conn_head
Definition: open_dns.c:41

+ Here is the call graph for this function:

+ Here is the caller graph for this function: