Definition at line 1239 of file dns.c.
References node::conn_id, dll_get_next(), Dns_conns, Memory::free(), Memory::malloc(), MAX_NAME, MAX_NODE_NAME, MAX_TASK_NAME, DNS_SERVER_INFO::n_services, DNS_CONNECTION::n_services, DNS_SERVICE_INFO::name, DNS_SERVER_INFO::node, DNS_SERVER_INFO::pid, serv::serv_id, serv::serv_name, DNS_DID::server, DNS_DID::services, node::servp, SRC_DIS, DNS_SERVICE_INFO::status, DNS_SERVER_INFO::task, and DNS_SERVICE_INFO::type.
Referenced by get_dns_server_info(), and main().
1241 static int curr_allocated_size = 0;
1242 static DNS_DID *dns_info_buffer;
1252 if(connp->src_type !=
SRC_DIS)
1258 if(n_services == -1)
1262 if(!curr_allocated_size)
1265 curr_allocated_size = max_size;
1267 else if (max_size > curr_allocated_size)
1269 free(dns_info_buffer);
1271 curr_allocated_size = max_size;
1273 dns_server_info = &dns_info_buffer->
server;
1274 dns_service_info = dns_info_buffer->
services;
1277 dns_server_info->
pid = htovl(connp->pid);
1278 dns_server_info->
n_services = htovl(connp->n_services);
1284 dns_service_info->
status = htovl(1);
1285 if(servp->
serv_id & 0x10000000)
1286 dns_service_info->
type = htovl(1);
1288 dns_service_info->
type = htovl(0);
1291 *bufp = (
int *)dns_info_buffer;
DllExp DIM_NOSHARE DNS_CONNECTION * Dns_conns
DLL * dll_get_next(DLL *head, DLL *item)
DNS_SERVICE_INFO services[1]