Definition at line 1718 of file dns.c.
References count, Curr_n_services, dll_get_next(), i, Memory::malloc(), MAX_HASH_ENTRIES, MAX_NAME, red_serv::serv_name, service_exists(), node::servp, serv::state, and red_serv::state.
Referenced by set_rpc_info().
1724 char tmp[
MAX_NAME], *ptr, *ptr1, *dptr, *dptr1;
1725 int match,
count = 0;
1730 if(!strchr(wild_name,
'*'))
1735 if(servp1->
state == 1)
1755 while( (ptr1 = strchr(ptr,
'*')) )
1766 if( (ptr1 = strchr(ptr,
'*')) )
1768 tmp[ptr1-ptr] =
'\0';
1770 if( (dptr1 = strstr(dptr, tmp)) )
1777 dptr1 += (int)strlen(tmp);
1790 tmp[ptr1-ptr] =
'\0';
1791 if(!strncmp(dptr, tmp, strlen(tmp)))
1793 dptr += (int)strlen(tmp);
1803 if(strcmp(dptr, ptr))
1806 strcat(tmp,
"/RpcIn");
1807 if(strcmp(dptr, tmp))
1812 if(servp->
state == 1)
1814 ptr = (
char *)servp - (2 *
sizeof(
void *));
DNS_SERVICE * service_exists(char *name)
DLL * dll_get_next(DLL *head, DLL *item)
static RED_DNS_SERVICE * Service_hash_table[MAX_HASH_ENTRIES]
static DNS_SERVICE ** Service_info_list
static int Curr_n_services