/*
- * (C) Copyright Transarc Corporation 1989
- * Licensed Materials - Property of Transarc
+ * Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License. For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
*/
-/*------------------------------------------------------------------------
- * fsprobe_callback.c
- *
+/*
* Description:
* Implementation of the fsprobe callback routines. These are the
* server-side functions that the FileServer expects to invoke on
* 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*/
/*------------------------------------------------------------------------
- * SRXAFSCB_GetCE
+ * SRXAFSCB_GetCE64
*
* Description:
* Respond minimally to a request for returning the contents of
* 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;
struct rx_call *a_call,
afs_int32 a_index,
char **a_name,
- afs_int32 *a_hosts)
+ serverList *a_hosts)
{
return RXGEN_OPCODE;
}