libafscp: Windows TellMeAboutYourSelf response
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 12 Nov 2012 02:53:13 +0000 (21:53 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 12 Nov 2012 18:50:34 +0000 (10:50 -0800)
The address list and uuid are computed in init_afs_cb().  There
is no need for special Windows processing within TellMeAboutYourSelf.

Change-Id: Ica4d2edb69ac9000713b016996a2c58e8b65ee9c
Reviewed-on: http://gerrit.openafs.org/8429
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>

src/libafscp/afscp_callback.c

index ab98381..e37221c 100644 (file)
@@ -557,36 +557,11 @@ SRXAFSCB_TellMeAboutYourself(struct rx_call * a_call,
                             struct interfaceAddr * addr,
                             Capabilities * capabilities)
 {
-#ifdef AFS_NT40_ENV
-    int code;
-    int cm_noIPAddr;           /* number of client network interfaces */
-    int cm_IPAddr[CM_MAXINTERFACE_ADDR];       /* client's IP address in host order */
-    int cm_SubnetMask[CM_MAXINTERFACE_ADDR];   /* client's subnet mask in host order */
-    int cm_NetMtu[CM_MAXINTERFACE_ADDR];       /* client's MTU sizes */
-    int cm_NetFlags[CM_MAXINTERFACE_ADDR];     /* network flags */
-    int i;
-
-    cm_noIPAddr = CM_MAXINTERFACE_ADDR;
-    code = syscfg_GetIFInfo(&cm_noIPAddr,
-                           cm_IPAddr, cm_SubnetMask, cm_NetMtu, cm_NetFlags);
-    if (code > 0) {
-       /* return all network interface addresses */
-       addr->numberOfInterfaces = cm_noIPAddr;
-       for (i = 0; i < cm_noIPAddr; i++) {
-           addr->addr_in[i] = cm_IPAddr[i];
-           addr->subnetmask[i] = cm_SubnetMask[i];
-           addr->mtu[i] = cm_NetMtu[i];
-       }
-    } else {
-       addr->numberOfInterfaces = 0;
-    }
-#else
     if (a_call && addr) {
        if (!afs_cb_inited)
            init_afs_cb();
        *addr = afs_cb_interface;
     }
-#endif
     if (capabilities != NULL) {
        afs_uint32 *dataBuffP;
        afs_int32 dataBytes;