FACT++  1.0
int get_dns_pars ( DNS_CONN connp,
char *  node,
int *  port 
)

Definition at line 206 of file open_dns.c.

References dns_ent::node_name, and dns_ent::port_number.

Referenced by dic_get_dns_node(), dic_get_dns_port(), dim_get_dns_node(), dim_get_dns_port(), dis_get_dns_node(), dis_get_dns_port(), open_dns(), and retry_dns_connection().

207 {
208  int exists = 0;
209 
210  if(connp->node_name[0])
211  {
212  strcpy(node, connp->node_name);
213  exists = 1;
214  }
215  *port = connp->port_number;
216  return exists;
217 }
Definition: dns.c:26
int port_number
Definition: open_dns.c:29
char node_name[MAX_DNS_NODE]
Definition: open_dns.c:27

+ Here is the caller graph for this function: