FACT++  1.0
int get_nodes ( char *  node_ptr)

Definition at line 1097 of file didMarkus.c.

References DNS_SERVER_INFO::node, item::server, Server_head, and sll_get_next().

Referenced by get_server_node().

1098 {
1099 DNS_SERVER_INFO *ptr;
1100 int n_nodes = 0;
1101 SERVER *servp;
1102 
1103  node_ptr[0] = '\0';
1104  servp = Server_head;
1105  while( (servp = (SERVER *)sll_get_next((SLL *)servp)) )
1106  {
1107  ptr = &servp->server;
1108  if(strstr(node_ptr,ptr->node) <= (char *)0)
1109  {
1110  strcat(node_ptr,ptr->node);
1111  strcat(node_ptr,"\n");
1112  n_nodes++;
1113  }
1114  }
1115  return(n_nodes);
1116 }
Definition: did.h:42
char node[MAX_NODE_NAME]
Definition: dim.h:338
SERVER * Server_head
Definition: did.h:55
SLL * sll_get_next(SLL *item)
Definition: sll.c:50
Definition: dim.h:536
DNS_SERVER_INFO server
Definition: did.h:44

+ Here is the call graph for this function:

+ Here is the caller graph for this function: