From b742b1eda90cd5e842407e8bd2f040e9f6e0054e Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 30 Apr 2001 23:03:33 +0000 Subject: [PATCH 1/1] remove-incomplete-dns-patch-20010430 this shouldn't have leaked in yet --- src/auth/cellconfig.c | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/src/auth/cellconfig.c b/src/auth/cellconfig.c index 6261974..48850d6 100644 --- a/src/auth/cellconfig.c +++ b/src/auth/cellconfig.c @@ -38,10 +38,6 @@ #include "cellconfig.h" #include "keys.h" -#ifdef AFS_DNS -#include "DNS_AFS.h" -#endif /* AFS_DNS */ - static ParseHostLine(); static ParseCellLine(); static afsconf_OpenInternal(); @@ -559,53 +555,6 @@ struct afsconf_cell *acellInfo; { int cnLen, ambig; char tbuffer[64]; -#ifdef AFS_DNS - ///////////////////////////////////////////// - //TRY A DNS QUERY FOR THAT CELL FIRST! - - struct afsconf_entry DNSce; - char *DNStmpStrp; /* a temp string pointer */ - struct hostent *thp; - - - DNSce.cellInfo.numServers=0; - DNSce.next = NULL; - DNStmpStrp = getAFSServer(acellName); - while(DNStmpStrp != NULL) { - strcpy(DNSce.cellInfo.hostName[DNSce.cellInfo.numServers],DNStmpStrp); - thp = gethostbyname(DNStmpStrp); - if (!thp) - thp = DNSgetHostByName(DNStmpStrp); - if (thp) { - memcpy(&DNSce.cellInfo.hostAddr[DNSce.cellInfo.numServers].sin_addr.s_addr, thp->h_addr, - sizeof(long)); - DNSce.cellInfo.hostAddr[DNSce.cellInfo.numServers].sin_family = AF_INET; - /* sin_port supplied by connection code */ - } - DNSce.cellInfo.numServers++; /* add the server to the VLDB server list */ - DNStmpStrp = getAFSServer(acellName); - }; - - if (DNSce.cellInfo.numServers>0) { - strcpy(&(DNSce.cellInfo.name),acellName); - *acellInfo = DNSce.cellInfo; /* structure assignment */ - if (aservice) { - LOCK_GLOBAL_MUTEX - tservice = afsconf_FindService(aservice); - UNLOCK_GLOBAL_MUTEX - if (tservice < 0) { - return AFSCONF_NOTFOUND; /* service not found */ - } - for(i=0;inumServers;i++) { - acellInfo->hostAddr[i].sin_port = tservice; - } - }; - return 0; - }; - ///////////////////////////////////////////// -#endif /* AFS_DNS */ - - LOCK_GLOBAL_MUTEX if (adir) afsconf_Check(adir); if (acellName) { -- 1.9.4