windows-multi-check-servers-20080207
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 20:27:47 +0000 (20:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 20:27:47 +0000 (20:27 +0000)
LICENSE MIT

for multi must compute the host string from the ip address for each server

src/WINNT/afsd/cm_server.c

index c02f970..27bcfa4 100644 (file)
@@ -380,6 +380,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                     tsp->capabilities = 0;
                 }
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is up with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -417,6 +418,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 if (code != VRESTARTING)
                     cm_ForceNewConnections(tsp);
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is down with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -506,6 +508,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 tsp->downTime = 0;
                 tsp->capabilities = 0;
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is up with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -543,6 +546,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 if (code != VRESTARTING)
                     cm_ForceNewConnections(tsp);
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is down with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -657,6 +661,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 tsp->downTime = 0;
                 tsp->capabilities = 0;
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is up with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",
@@ -694,6 +699,7 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
                 if (code != VRESTARTING)
                     cm_ForceNewConnections(tsp);
 
+                afs_inet_ntoa_r(tsp->addr.sin_addr.S_un.S_addr, hoststr);
                 osi_Log3(afsd_logp, "cm_MultiPingServer server %s (%s) is down with caps 0x%x",
                           osi_LogSaveString(afsd_logp, hoststr), 
                           tsp->type == CM_SERVER_VLDB ? "vldb" : "file",