rename-rx-stats-20080925
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 25 Sep 2008 18:15:41 +0000 (18:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 25 Sep 2008 18:15:41 +0000 (18:15 +0000)
LICENSE IPL10

avoid using the same name for the struct and the global so the windows debugger works usefully

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
LICENSE IPL10

avoid using the same name for the struct and the global so the windows debugger
works usefully

====================
LICENSE IPL10

avoid using the same name for the struct and the global so the windows debugger
works usefully

src/libadmin/adminutil/afs_utilAdmin.c
src/libadmin/adminutil/afs_utilAdmin.h
src/libadmin/samples/rxdebug_rx_stats.c
src/rx/rx.c
src/rx/rx.h
src/rx/rx_globals.h
src/rx/rx_prototypes.h
src/rxdebug/rxdebug.c

index f51d364..8072dcb 100644 (file)
@@ -2508,7 +2508,7 @@ util_RXDebugBasicStats(rxdebugHandle_p handle, struct rx_debugStats *stats,
  */
 
 int ADMINAPI
-util_RXDebugRxStats(rxdebugHandle_p handle, struct rx_stats *stats,
+util_RXDebugRxStats(rxdebugHandle_p handle, struct rx_statistics *stats,
                    afs_uint32 * supportedValues, afs_status_p st)
 {
     int rc = 0;
index c87550c..d51b3bc 100644 (file)
@@ -136,7 +136,7 @@ extern int ADMINAPI util_RXDebugBasicStats(rxdebugHandle_p handle,
                                           afs_status_p st);
 
 extern int ADMINAPI util_RXDebugRxStats(rxdebugHandle_p handle,
-                                       struct rx_stats *stats,
+                                       struct rx_statistics *stats,
                                        afs_uint32 * supportedStats,
                                        afs_status_p st);
 
index b8ed0af..2a3de6b 100644 (file)
@@ -68,7 +68,7 @@ main(int argc, char *argv[])
     rxdebugHandle_p handle;
     char *srvrName;
     long srvrPort;
-    struct rx_stats stats;
+    struct rx_statistics stats;
     afs_uint32 supportedStats;
     char tstr[32];
     int i;
index 1d64d76..b247984 100644 (file)
@@ -476,7 +476,7 @@ rx_InitHost(u_int host, u_int port)
     rxi_nCalls = 0;
     rx_connDeadTime = 12;
     rx_tranquil = 0;           /* reset flag */
-    memset((char *)&rx_stats, 0, sizeof(struct rx_stats));
+    memset((char *)&rx_stats, 0, sizeof(struct rx_statistics));
     htable = (char *)
        osi_Alloc(rx_hashTableSize * sizeof(struct rx_connection *));
     PIN(htable, rx_hashTableSize * sizeof(struct rx_connection *));    /* XXXXX */
@@ -6363,15 +6363,15 @@ rxi_DebugPrint(char *format, ...)
  * checking.
  */
 void
-rx_PrintTheseStats(FILE * file, struct rx_stats *s, int size,
+rx_PrintTheseStats(FILE * file, struct rx_statistics *s, int size,
                   afs_int32 freePackets, char version)
 {
     int i;
 
-    if (size != sizeof(struct rx_stats)) {
+    if (size != sizeof(struct rx_statistics)) {
        fprintf(file,
                "Unexpected size of stats structure: was %d, expected %lud\n",
-               size, sizeof(struct rx_stats));
+               size, sizeof(struct rx_statistics));
     }
 
     fprintf(file, "rx stats: free packets %d, allocs %d, ", (int)freePackets,
@@ -6649,7 +6649,7 @@ rx_GetServerDebug(osi_socket socket, afs_uint32 remoteAddr,
 
 afs_int32
 rx_GetServerStats(osi_socket socket, afs_uint32 remoteAddr,
-                 afs_uint16 remotePort, struct rx_stats * stat,
+                 afs_uint16 remotePort, struct rx_statistics * stat,
                  afs_uint32 * supportedValues)
 {
     struct rx_debugIn in;
index d3ae90a..9e0d52c 100644 (file)
@@ -809,7 +809,7 @@ struct rx_securityClass {
  * Clearly we assume that ntohl will work on these structures so sizeof(int)
  * must equal sizeof(afs_int32). */
 
-struct rx_stats {              /* General rx statistics */
+struct rx_statistics {         /* General rx statistics */
     int packetRequests;                /* Number of packet allocation requests */
     int receivePktAllocFailures;
     int sendPktAllocFailures;
index 371976c..684fea2 100644 (file)
@@ -493,7 +493,7 @@ EXT afs_kcondvar_t rx_waitingForPackets_cv;
 #endif
 EXT char rx_waitingForPackets; /* Processes set and wait on this variable when waiting for packet buffers */
 
-EXT struct rx_stats rx_stats;
+EXT struct rx_statistics rx_stats;
 
 EXT struct rx_peer **rx_peerHashTable;
 EXT struct rx_connection **rx_connHashTable;
index 617011d..b0c3652 100644 (file)
@@ -186,7 +186,7 @@ extern void rxi_ReapConnections(struct rxevent *unused, void *unused1,
                                void *unused2);
 extern int rxs_Release(struct rx_securityClass *aobj);
 #ifndef KERNEL
-extern void rx_PrintTheseStats(FILE * file, struct rx_stats *s, int size,
+extern void rx_PrintTheseStats(FILE * file, struct rx_statistics *s, int size,
                               afs_int32 freePackets, char version);
 extern void rx_PrintStats(FILE * file);
 extern void rx_PrintPeerStats(FILE * file, struct rx_peer *peer);
@@ -197,7 +197,7 @@ extern afs_int32 rx_GetServerDebug(osi_socket socket, afs_uint32 remoteAddr,
                                   afs_uint32 * supportedValues);
 extern afs_int32 rx_GetServerStats(osi_socket socket, afs_uint32 remoteAddr,
                                   afs_uint16 remotePort,
-                                  struct rx_stats *stat,
+                                  struct rx_statistics *stat,
                                   afs_uint32 * supportedValues);
 extern afs_int32 rx_GetServerVersion(osi_socket socket, afs_uint32 remoteAddr,
                                     afs_uint16 remotePort,
index 93a8389..cf0d1e7 100644 (file)
@@ -276,7 +276,7 @@ MainCommand(struct cmd_syndesc *as, void *arock)
            fprintf(stderr,
                    "WARNING: Server doesn't support retrieval of Rx statistics\n");
        } else {
-           struct rx_stats rxstats;
+           struct rx_statistics rxstats;
 
            /* should gracefully handle the case where rx_stats grows */
            code =