FACT++  1.0
void init_dns_list ( )

Definition at line 171 of file open_dns.c.

References dic_add_dns(), dis_add_dns(), dll_init(), get_dns_node_name(), get_dns_port_number(), Memory::malloc(), MAX_DNS_NODE, rand_tmout_init(), SRC_DIC, and SRC_DIS.

Referenced by dic_add_dns(), dic_get_dns_node(), dic_get_dns_port(), dic_set_dns_node(), dic_set_dns_port(), dim_get_dns_node(), dim_get_dns_port(), dim_set_dns_node(), dim_set_dns_port(), dis_add_dns(), dis_get_dns_node(), dis_get_dns_port(), dis_set_dns_node(), dis_set_dns_port(), and get_dns().

172 {
173  char node[MAX_DNS_NODE];
174  int port;
175  dim_long sid, cid;
176 
177  DISABLE_AST
178  if(!DNS_conn_head)
179  {
180  DNS_conn_head = (DNS_CONN *)malloc(sizeof(DNS_CONN));
181  dll_init( (DLL *) DNS_conn_head );
182  node[0] = '\0';
183  get_dns_node_name(node);
184  port = get_dns_port_number();
185  sid = dis_add_dns(node, port);
186  cid = dic_add_dns(node, port);
187  DNS_ids[SRC_DIS] = (DNS_CONN *)sid;
188  DNS_ids[SRC_DIC] = (DNS_CONN *)cid;
189  rand_tmout_init();
190  }
191  ENABLE_AST
192 }
Definition: dns.c:26
dim_long dis_add_dns(char *node_name, int port_number)
Definition: open_dns.c:237
void * malloc()
Definition: EventBuilder.cc:99
void dll_init(DLL *head)
Definition: dll.c:14
#define MAX_DNS_NODE
Definition: open_dns.c:13
int get_dns_node_name(char *node_name)
Definition: utilities.c:204
Definition: dim.h:530
long dim_long
Definition: dim_common.h:57
dim_long dic_add_dns(char *node_name, int port_number)
Definition: open_dns.c:258
void rand_tmout_init()
Definition: open_dns.c:148
int get_dns_port_number()
Definition: utilities.c:216
static DNS_CONN * DNS_ids[3]
Definition: open_dns.c:40
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: