fsprobe: Tidy header includes
[openafs.git] / src / fsprobe / fsprobe_callback.c
index 2620af2..6414bc3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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
 #include <afsconfig.h>
 #include <afs/param.h>
 
-RCSID("$Header$");
+#include <roken.h>
 
-#include <errno.h>
-#include <stdio.h>                     /*Standard I/O stuff*/
-#include <afs/afscbint.h>              /*Callback interface defs*/
+#include <afs/afscbint.h>      /*Callback interface defs */
+#include <afs/afsutil.h>
 
 #define FSPROBE_CALLBACK_VERBOSE 0
 
@@ -36,21 +35,16 @@ int afs_cb_inited = 0;
 struct interfaceAddr afs_cb_interface;
 
 /*
- * Routines we need that don't have explicit include file definitions.
- */
-extern char *hostutil_GetNameByINet(); /*Host parsing utility*/
-
-static char mn[] = "fsprobe_callback"; /*Module name*/
-
-/*
  * Initialize the callback interface structure
  */
-static int init_afs_cb() {
+static int
+init_afs_cb(void)
+{
     int count;
 
     afs_uuid_create(&afs_cb_interface.uuid);
-    count = rx_getAllAddr(&afs_cb_interface.addr_in, AFS_MAX_INTERFACE_ADDR);
-    if ( count <= 0 )
+    count = rx_getAllAddr((afs_uint32 *) &afs_cb_interface.addr_in, AFS_MAX_INTERFACE_ADDR);
+    if (count <= 0)
        afs_cb_interface.numberOfInterfaces = 0;
     else
        afs_cb_interface.numberOfInterfaces = count;
@@ -81,33 +75,31 @@ static int init_afs_cb() {
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-afs_int32 SRXAFSCB_CallBack(rxcall, Fids_Array, CallBack_Array)
-    struct rx_call *rxcall;
-    AFSCBFids *Fids_Array;
-    AFSCBs *CallBack_Array;
-
-{ /*SRXAFSCB_CallBack*/
+afs_int32
+SRXAFSCB_CallBack(struct rx_call * rxcall, AFSCBFids * Fids_Array,
+                 AFSCBs * CallBack_Array)
+{                              /*SRXAFSCB_CallBack */
 
 #if FSPROBE_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_CallBack";    /*Routine name*/
-    char hostName[256];                                /*Host name buffer*/
-    char *hostNameResult;                      /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_CallBack";    /*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*/
+       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 /* FSPROBE_CALLBACK_VERBOSE */
 
     /*
      * Return successfully.
      */
-    return(0);
+    return (0);
 
-} /*SRXAFSCB_CallBack*/
+}                              /*SRXAFSCB_CallBack */
 
 
 /*------------------------------------------------------------------------
@@ -131,31 +123,30 @@ afs_int32 SRXAFSCB_CallBack(rxcall, Fids_Array, CallBack_Array)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-afs_int32 SRXAFSCB_InitCallBackState(rxcall)
-    struct rx_call *rxcall;
-
-{ /*SRXAFSCB_InitCallBackState*/
+afs_int32
+SRXAFSCB_InitCallBackState(struct rx_call * rxcall)
+{                              /*SRXAFSCB_InitCallBackState */
 
 #if FSPROBE_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_InitCallBackState";   /*Routine name*/
-    char hostName[256];                                        /*Host name buffer*/
-    char *hostNameResult;                              /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_InitCallBackState";   /*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*/
+       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 /* FSPROBE_CALLBACK_VERBOSE */
 
     /*
      * Return successfully.
      */
-    return(0);
+    return (0);
 
-} /*SRXAFSCB_InitCallBackState*/
+}                              /*SRXAFSCB_InitCallBackState */
 
 
 /*------------------------------------------------------------------------
@@ -182,31 +173,30 @@ afs_int32 SRXAFSCB_InitCallBackState(rxcall)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-afs_int32 SRXAFSCB_Probe(rxcall)
-       struct rx_call *rxcall;
-
-{ /*SRXAFSCB_Probe*/
+afs_int32
+SRXAFSCB_Probe(struct rx_call * rxcall)
+{                              /*SRXAFSCB_Probe */
 
 #if FSPROBE_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_Probe";       /*Routine name*/
-    char hostName[256];                                /*Host name buffer*/
-    char *hostNameResult;                      /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_Probe";       /*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*/
+       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 /* FSPROBE_CALLBACK_VERBOSE */
 
     /*
      * Return successfully.
      */
-    return(0);
+    return (0);
 
-} /*SRXAFSCB_Probe*/
+}                              /*SRXAFSCB_Probe */
 
 
 /*------------------------------------------------------------------------
@@ -230,51 +220,50 @@ afs_int32 SRXAFSCB_Probe(rxcall)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-afs_int32 SRXAFSCB_GetCE64(rxcall)
-    struct rx_call *rxcall;
-
-{ /*SRXAFSCB_GetCE64*/
+afs_int32
+SRXAFSCB_GetCE64(struct rx_call * rxcall, afs_int32 index,
+                AFSDBCacheEntry64 * ce)
+{                              /*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*/
+    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));
+           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*/
+       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);
+    return (0);
 
-} /*SRXAFSCB_GetCE64*/
+}                              /*SRXAFSCB_GetCE64 */
 
-afs_int32 SRXAFSCB_GetCE(rxcall)
-    struct rx_call *rxcall;
-
-{ /*SRXAFSCB_GetCE*/
+afs_int32
+SRXAFSCB_GetCE(struct rx_call * rxcall, afs_int32 index, AFSDBCacheEntry * ce)
+{                              /*SRXAFSCB_GetCE */
 
 #if XSTAT_FS_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_GetCE";               /*Routine name*/
-    char hostName[256];                                /*Host name buffer*/
-    char *hostNameResult;                      /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_GetCE";       /*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));
+           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*/
+       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);
+    return (0);
 
-} /*SRXAFSCB_GetCE*/
+}                              /*SRXAFSCB_GetCE */
 
 
 /*------------------------------------------------------------------------
@@ -298,28 +287,27 @@ afs_int32 SRXAFSCB_GetCE(rxcall)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-afs_int32 SRXAFSCB_GetLock(rxcall)
-    struct rx_call *rxcall;
-
-{ /*SRXAFSCB_GetLock*/
+afs_int32
+SRXAFSCB_GetLock(struct rx_call * rxcall, afs_int32 index, AFSDBLock * lock)
+{                              /*SRXAFSCB_GetLock */
 
 #if XSTAT_FS_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_GetLock";     /*Routine name*/
-    char hostName[256];                                /*Host name buffer*/
-    char *hostNameResult;                      /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_GetLock";     /*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));
+           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*/
+       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);
+    return (0);
 
-} /*SRXAFSCB_GetLock*/
+}                              /*SRXAFSCB_GetLock */
 
 
 /*------------------------------------------------------------------------
@@ -343,28 +331,27 @@ afs_int32 SRXAFSCB_GetLock(rxcall)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-afs_int32 SRXAFSCB_XStatsVersion(rxcall)
-    struct rx_call *rxcall;
-
-{ /*SRXAFSCB_XStatsVersion*/
+afs_int32
+SRXAFSCB_XStatsVersion(struct rx_call * rxcall, afs_int32 * versionNumberP)
+{                              /*SRXAFSCB_XStatsVersion */
 
 #if XSTAT_FS_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_XStatsVersion"; /*Routine name*/
-    char hostName[256];                                 /*Host name buffer*/
-    char *hostNameResult;                       /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_XStatsVersion";       /*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));
+           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*/
+       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);
+    return (0);
 
-} /*SRXAFSCB_XStatsVersion*/
+}                              /*SRXAFSCB_XStatsVersion */
 
 
 /*------------------------------------------------------------------------
@@ -388,28 +375,29 @@ afs_int32 SRXAFSCB_XStatsVersion(rxcall)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-afs_int32 SRXAFSCB_GetXStats(rxcall)
-    struct rx_call *rxcall;
-
-{ /*SRXAFSCB_GetXStats*/
+afs_int32
+SRXAFSCB_GetXStats(struct rx_call * rxcall, afs_int32 clientVN,
+                  afs_int32 collN, afs_int32 * srvVNP, afs_int32 * timeP,
+                  AFSCB_CollData * dataP)
+{                              /*SRXAFSCB_GetXStats */
 
 #if XSTAT_FS_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_GetXStats";   /*Routine name*/
-    char hostName[256];                                /*Host name buffer*/
-    char *hostNameResult;                      /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_GetXStats";   /*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));
+           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*/
+       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);
+    return (0);
 
-} /*SRXAFSCB_GetXStats*/
+}                              /*SRXAFSCB_GetXStats */
 
 /*------------------------------------------------------------------------
  * EXPORTED SRXAFSCB_InitCallBackState2
@@ -422,7 +410,7 @@ afs_int32 SRXAFSCB_GetXStats(rxcall)
  *      rxcall : Ptr to Rx call on which this request came in.
  *
  * Returns:
- *      RXGEN_OPCODE (always). 
+ *      RXGEN_OPCODE (always).
  *
  * Environment:
  *      Nothing interesting.
@@ -431,23 +419,23 @@ afs_int32 SRXAFSCB_GetXStats(rxcall)
  *      None
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_InitCallBackState2(rxcall, addr)
-struct rx_call *rxcall;
-struct interfaceAddr * addr;
+afs_int32
+SRXAFSCB_InitCallBackState2(struct rx_call * rxcall,
+                           struct interfaceAddr * addr)
 {
 
 #if FSPROBE_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_InitCallBackState2";  /*Routine name*/
-    char hostName[256];                                        /*Host name buffer*/
-    char *hostNameResult;                              /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_InitCallBackState2";  /*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*/
+       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 /* FSPROBE_CALLBACK_VERBOSE */
     return RXGEN_OPCODE;
 }
@@ -476,38 +464,34 @@ struct interfaceAddr * addr;
  *      As advertised.
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_WhoAreYou(rxcall, addr)
-struct rx_call *rxcall;
-struct interfaceAddr *addr;
+afs_int32
+SRXAFSCB_WhoAreYou(struct rx_call * rxcall, struct interfaceAddr * addr)
 {
-    int i;
-    int code = 0;
-    int        count;
 
 #if FSPROBE_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_WhoAreYou";           /*Routine name*/
-    char hostName[256];                                        /*Host name buffer*/
-    char *hostNameResult;                              /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_WhoAreYou";   /*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*/
+       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 /* FSPROBE_CALLBACK_VERBOSE */
 
-    if ( rxcall && addr )
-    {
-       if (!afs_cb_inited) init_afs_cb();
+    if (rxcall && addr) {
+       if (!afs_cb_inited)
+           init_afs_cb();
        *addr = afs_cb_interface;
     }
 
     /*
      * Return successfully.
      */
-    return(0);
+    return (0);
 }
 
 
@@ -531,30 +515,29 @@ struct interfaceAddr *addr;
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_InitCallBackState3(rxcall, uuidp)
-struct rx_call *rxcall;
-afsUUID *uuidp;
+afs_int32
+SRXAFSCB_InitCallBackState3(struct rx_call * rxcall, afsUUID * uuidp)
 {
 #if FSPROBE_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_InitCallBackState2";  /*Routine name*/
-    char hostName[256];                                        /*Host name buffer*/
-    char *hostNameResult;                              /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_InitCallBackState2";  /*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*/
+       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 /* FSPROBE_CALLBACK_VERBOSE */
 
     /*
      * Return successfully.
      */
-    return(0);
+    return (0);
 }
+
 
 /*------------------------------------------------------------------------
  * EXPORTED SRXAFSCB_ProbeUuid
@@ -579,29 +562,29 @@ afsUUID *uuidp;
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_ProbeUuid(rxcall, uuidp)
-struct rx_call *rxcall;
-afsUUID *uuidp;
+afs_int32
+SRXAFSCB_ProbeUuid(struct rx_call * rxcall, afsUUID * uuidp)
 {
     int code = 0;
 
 #if FSPROBE_CALLBACK_VERBOSE
-    static char rn[] = "SRXAFSCB_ProbeUuid";           /*Routine name*/
-    char hostName[256];                                        /*Host name buffer*/
-    char *hostNameResult;                              /*Ptr to static*/
+    static char rn[] = "SRXAFSCB_ProbeUuid";   /*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*/
+       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 /* FSPROBE_CALLBACK_VERBOSE */
 
-    if (!afs_cb_inited) init_afs_cb();
+    if (!afs_cb_inited)
+       init_afs_cb();
     if (!afs_uuid_equal(uuidp, &afs_cb_interface.uuid))
-       code = 1; /* failure */
+       code = 1;               /* failure */
     return code;
 }
 
@@ -627,11 +610,9 @@ afsUUID *uuidp;
  *      As advertised.
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_GetServerPrefs(
-    struct rx_call *a_call,
-    afs_int32 a_index,
-    afs_int32 *a_srvr_addr,
-    afs_int32 *a_srvr_rank)
+afs_int32
+SRXAFSCB_GetServerPrefs(struct rx_call * a_call, afs_int32 a_index,
+                       afs_int32 * a_srvr_addr, afs_int32 * a_srvr_rank)
 {
     *a_srvr_addr = 0xffffffff;
     *a_srvr_rank = 0xffffffff;
@@ -660,11 +641,16 @@ int SRXAFSCB_GetServerPrefs(
  *      As advertised.
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_GetCellServDB(
-    struct rx_call *a_call,
-    afs_int32 a_index,
-    char **a_name,
-    serverList *a_hosts)
+afs_int32
+SRXAFSCB_GetCellServDB(struct rx_call * a_call, afs_int32 a_index,
+                      char **a_name, serverList * a_hosts)
+{
+    return RXGEN_OPCODE;
+}
+
+afs_int32
+SRXAFSCB_GetCellByNum(struct rx_call * a_call, afs_int32 a_cellnum,
+                     char **a_name, serverList * a_hosts)
 {
     return RXGEN_OPCODE;
 }
@@ -689,9 +675,8 @@ int SRXAFSCB_GetCellServDB(
  *      As advertised.
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_GetLocalCell(
-    struct rx_call *a_call,
-    char **a_name)
+afs_int32
+SRXAFSCB_GetLocalCell(struct rx_call * a_call, char **a_name)
 {
     return RXGEN_OPCODE;
 }
@@ -722,12 +707,48 @@ int SRXAFSCB_GetLocalCell(
  *     As advertised.
  *------------------------------------------------------------------------*/
 
-int SRXAFSCB_GetCacheConfig(
-    struct rx_call *a_call,
-    afs_uint32 callerVersion,
-    afs_uint32 *serverVersion,
-    afs_uint32 *configCount,
-    cacheConfig *config)
+afs_int32
+SRXAFSCB_GetCacheConfig(struct rx_call * a_call, afs_uint32 callerVersion,
+                       afs_uint32 * serverVersion, afs_uint32 * configCount,
+                       cacheConfig * config)
+{
+    return RXGEN_OPCODE;
+}
+
+afs_int32
+SRXAFSCB_TellMeAboutYourself(struct rx_call * rxcall,
+                            struct interfaceAddr * addr,
+                            Capabilities * capabilities)
+{
+#if FSPROBE_CALLBACK_VERBOSE
+    static char rn[] = "SRXAFSCB_TellMeAboutYourself"; /*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 /* FSPROBE_CALLBACK_VERBOSE */
+
+    if (rxcall && addr) {
+       if (!afs_cb_inited)
+           init_afs_cb();
+       *addr = afs_cb_interface;
+    }
+
+    /*
+     * Return successfully.
+     */
+    return (0);
+}
+
+int SRXAFSCB_GetDE(struct rx_call *a_call, afs_int32 a_index,
+                  afs_int32 addr, afs_int32 inode, afs_int32 flags,
+                  afs_int32 time, char ** fileName)
 {
     return RXGEN_OPCODE;
 }