Fix minor build errors, and rename the dumpId argument of butc's
[openafs.git] / src / fsprobe / fsprobe_callback.c
index f5e9c64..2620af2 100644 (file)
  *     need to be ``visible'' to anyone else.
  *------------------------------------------------------------------------*/
 
+#include <afsconfig.h>
 #include <afs/param.h>
+
+RCSID("$Header$");
+
 #include <errno.h>
 #include <stdio.h>                     /*Standard I/O stuff*/
 #include <afs/afscbint.h>              /*Callback interface defs*/
@@ -206,7 +210,7 @@ afs_int32 SRXAFSCB_Probe(rxcall)
 
 
 /*------------------------------------------------------------------------
- * SRXAFSCB_GetCE
+ * SRXAFSCB_GetCE64
  *
  * Description:
  *     Respond minimally to a request for returning the contents of
@@ -226,6 +230,29 @@ afs_int32 SRXAFSCB_Probe(rxcall)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
+afs_int32 SRXAFSCB_GetCE64(rxcall)
+    struct rx_call *rxcall;
+
+{ /*SRXAFSCB_GetCE64*/
+
+#if XSTAT_FS_CALLBACK_VERBOSE
+    static char rn[] = "SRXAFSCB_GetCE64";             /*Routine name*/
+    char hostName[256];                                /*Host name buffer*/
+    char *hostNameResult;                      /*Ptr to static*/
+
+    if (rxcall != (struct rx_call *)0) {
+       hostNameResult =
+           hostutil_GetNameByINet((afs_int32)(rxcall->conn->peer->host));
+       strcpy(hostName, hostNameResult);
+       fprintf(stderr, "[%s:%s] Called from host %s, port %d\n",
+               mn, rn, hostName, rxcall->conn->peer->port);
+    } /*Valid rxcall param*/
+#endif /* XSTAT_FS_CALLBACK_VERBOSE */
+
+    return(0);
+
+} /*SRXAFSCB_GetCE64*/
+
 afs_int32 SRXAFSCB_GetCE(rxcall)
     struct rx_call *rxcall;
 
@@ -637,7 +664,7 @@ int SRXAFSCB_GetCellServDB(
     struct rx_call *a_call,
     afs_int32 a_index,
     char **a_name,
-    afs_int32 *a_hosts)
+    serverList *a_hosts)
 {
     return RXGEN_OPCODE;
 }