FACT++  1.0
DNS_CONN* get_dns ( DNS_CONN connp,
SRC_TYPES  src_type 
)

Definition at line 279 of file open_dns.c.

References init_dns_list(), and dns_ent::src_type.

Referenced by close_dns(), and open_dns().

280 {
281  DNS_CONN *p = 0;
282 
283  init_dns_list();
284  if(connp)
285  {
286  if(connp->src_type == src_type)
287  {
288  p = connp;
289  }
290  }
291  else
292  {
293  p = DNS_ids[src_type];
294  }
295  return p;
296 }
void init_dns_list()
Definition: open_dns.c:171
SRC_TYPES src_type
Definition: open_dns.c:33
static DNS_CONN * DNS_ids[3]
Definition: open_dns.c:40

+ Here is the call graph for this function:

+ Here is the caller graph for this function: