}
-#if FS_STATS_DETAILED
/*------------------------------------------------------------------------
* PRIVATE h_AddrInSameNetwork
*
return (0);
} /*h_AddrInSameNetwork */
-#endif /* FS_STATS_DETAILED */
/* Assumptions: called with held host */
{
struct servent *serverentry;
struct host *host;
-#if FS_STATS_DETAILED
afs_uint32 newHostAddr_HBO; /*New host IP addr, in host byte order */
-#endif /* FS_STATS_DETAILED */
host = GetHT();
if (!host)
h_Hold_r(host);
h_Lock_r(host);
h_InsertList_r(host); /* update global host List */
-#if FS_STATS_DETAILED
/*
* Compare the new host's IP address (in host byte order) with ours
* (the File Server's), remembering if they are in the same network.
newHostAddr_HBO = (afs_uint32) ntohl(host->host);
host->InSameNetwork =
h_AddrInSameNetwork(FS_HostAddr_HBO, newHostAddr_HBO);
-#endif /* FS_STATS_DETAILED */
return host;
} /*h_Alloc_r */
ObtainWriteLock(&client->lock);
client->refCount = 1;
client->host = host;
-#if FS_STATS_DETAILED
client->InSameNetwork = host->InSameNetwork;
-#endif /* FS_STATS_DETAILED */
client->ViceId = viceid;
client->expTime = expTime; /* rx only */
client->authClass = authClass; /* rx only */
out->ActiveCall = in->ActiveCall;
out->cpsCall = in->cpsCall;
out->cblist = in->cblist;
-#ifdef FS_STATS_DETAILED
out->InSameNetwork = in->InSameNetwork;
-#endif
/* special fields we save, but are not memcpy'd back on restore */
out->index = in->index;
out->ActiveCall = in->ActiveCall;
out->cpsCall = in->cpsCall;
out->cblist = in->cblist;
-#ifdef FS_STATS_DETAILED
out->InSameNetwork = in->InSameNetwork;
-#endif
}
/* index translation routines */